text stringlengths 10 953k |
|---|
import { MutationFn, MutationResult } from "react-apollo";
import { ConfirmButtonTransitionState } from "./components/ConfirmButton/ConfirmButton";
import { AddressType } from "./customers/types";
import i18n from "./i18n";
import { PartialMutationProviderOutput, UserError } from "./types";
import {
AuthorizationKeyT... |
// Importing dependencies...
import { InputType, Field, Int } from '@nestjs/graphql';
// Input types for resolver when creating a list
// Input type is being used in the argument called input in createList(input) function.
@InputType()
export class InputValues {
@Field()
readonly name: String;
@Field()
readonl... |
import { AsyncIterator, EmptyIterator, SingletonIterator } from "asynciterator";
import { inject, injectable } from "inversify";
import IPath from "../../interfaces/IPath";
import ILocationResolver from "../../query-runner/ILocationResolver";
import IResolvedQuery from "../../query-runner/IResolvedQuery";
import TYPES ... |
import Paragraph from '../tools/paragraph/dist/bundle';
import Module from '../__module';
import * as _ from '../utils';
import {
BlockToolConstructable,
EditorConfig,
InlineTool,
InlineToolConstructable, Tool,
ToolConfig,
ToolConstructable,
ToolSettings
} from '../../../types';
import BoldInlineTool from... |
// This file is ran as a background script |
/**
* Used sizes for transform package into array buffer
*/
export enum Size {
/**
* Empty data type size
*/
Empty = 0,
/**
* Byte data type size
*/
Byte = 1,
/**
* Unsigned byte data type size
*/
UByte = 1,
/**
* Signed short int data type size
*/
ShortInt = 2,
/**
* ... |
import InstagramIcon from '@material-ui/icons/Instagram';
import LinkIcon from '@material-ui/icons/Link';
import TwitterIcon from '@material-ui/icons/Twitter';
import YouTubeIcon from '@material-ui/icons/YouTube';
import React, { Component } from 'react';
import RootStyle from '../../../App.module.scss';
interface Pro... |
import * as twgl from 'twgl.js';
import createModuleProg from './createModuleProg';
import createUnitQuad2d from './createUnitQuad2D';
const drawImageVert = `#version 300 es
in vec4 position;
out vec2 uv;
uniform mat4 matrix;
void main() {
gl_Position = matrix * position;
uv = position.xy * 0.5 + 0.5;
}
`;
co... |
import { MockMethod } from 'vite-plugin-mock';
import { resultError, resultSuccess } from '../_util';
function createFakeUserList() {
return [
{
userId: '1',
username: 'admin',
realName: 'admin',
desc: 'manager',
password: '123456',
token: 'fakeToken1',
roles: [
... |
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { RouterModule } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';
import { AuthService } from './auth.service';
describe('AuthService', () => {
beforeEach(() =... |
import { beASupersetOfTemplate, exactlyMatchTemplate, expect, haveResource } from '@aws-cdk/assert';
import ec2 = require('@aws-cdk/aws-ec2');
import cdk = require('@aws-cdk/cdk');
import { Test } from 'nodeunit';
import { HostedZone, PrivateHostedZone, PublicHostedZone, TxtRecord } from '../lib';
export = {
'defaul... |
import Document, { Head, Main, NextScript } from 'next/document';
import settings from '../shared/settings';
export default class MyDocument extends Document {
public render() {
return (
<html>
<Head>
<meta charSet="utf-8" />
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
... |
import { OmegaUp } from '../omegaup';
import { types } from '../api_types';
import T from '../lang';
import Vue from 'vue';
import problem_Edit from '../components/problem/Edit.vue';
import * as ui from '../ui';
import * as api from '../api';
OmegaUp.on('ready', () => {
const payload = types.payloadParsers.ProblemEd... |
import { Nullable } from 'simplytyped';
import * as fl from './fantasy-land';
export const binder = <T extends Function>(context: any, f: T): T => f.bind(context); // tslint:disable-line ban-types
export type Nil = null | undefined;
export interface MatchType<T, R> {
some?: (v: T) => R;
none?: () => R;
}
ex... |
import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { MatTable } from '@angular/material/table';
import { ListUserDataSource, ListUserItem } from './list-user-datasource';
@Comp... |
import { NgModule } from '@angular/core';
import { EffectsModule as StoreEffectsModule } from '@ngrx/effects';
import { RouterStateSerializer, StoreRouterConnectingModule } from '@ngrx/router-store';
import { StoreModule as StoreProviderModule } from '@ngrx/store';
import { StoreDevtoolsModule } from '@ngrx/store-devt... |
export * from './dialog.component';
export * from './dialog.module';
export * from './dialog.providers';
export * from './dialog.service'; |
import React from 'react';
/**
* @public
*/
//# sourceMappingURL=ellipsisHorizontalIcon.d.ts.map |
import copy from 'fast-copy';
import * as _ from 'lodash';
import { DimError } from '../bungie-api/bungie-service-helper';
import {
equip as d1equip,
equipItems as d1EquipItems,
transfer as d1Transfer
} from '../bungie-api/destiny1-api';
import {
equip as d2equip,
equipItems as d2EquipItems,
transfer as d2T... |
import { EventData, Page } from "tns-core-modules/ui/page";
import { View } from "tns-core-modules/ui/core/view";
let view: View;
export function pageLoaded(args: EventData) {
const page = <Page>args.object;
view = page.getViewById<View>("view");
}
export function onAnimate(args: EventData) {
view.classN... |
import { SFC, HTMLProps, ReactNode } from 'react';
export interface ModalBoxBodyProps extends HTMLProps<HTMLDivElement> {
children: ReactNode;
id: string;
}
declare const ModalBoxBody: SFC<ModalBoxBodyProps>;
export default ModalBoxBody; |
import * as L from 'leaflet';
declare namespace LPlus {
namespace GeometryUtil {
function geodesicArea(latlngs: Coordinate[]): number;
}
namespace Control {
class Search {
constructor(options: any);
}
class mouseCoordinate {
constructor(options: an... |
import * as React from 'react';
import { SVGIconProps } from '../createIcon';
export declare const InfinityIconConfig: {
name: 'InfinityIcon',
height: 512,
width: 640,
svgPath: 'M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78... |
import { Component, OnInit } from '@angular/core';
import {RangeValidatorDirective} from "../shared/validation/rangeValidator.directive";
@Component({
selector: 'bsp-about',
templateUrl: './about.component.html',
styleUrls: ['./about.component.css']
})
export class AboutComponent implements OnInit {
tempp: str... |
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { FileUploader } from "./file-uploader.component";
import { FileComponent } from "./file.component";
import { ButtonModule } from "@rocketsoftware/carbon-components-angular/button";
import { LoadingModule } from "@rocketso... |
import { useEffect, useState } from 'react'
type WindowSize = {
innerHeight: number
innerWidth: number
outerHeight: number
outerWidth: number
}
const getSize = (): WindowSize => {
lastSize = {
innerHeight: window.innerHeight,
innerWidth: window.innerWidth,
outerHeight: windo... |
import * as React from 'react';
import * as moment from 'moment';
import { IPipeline, ICronTrigger } from 'core/domain';
import { Popover } from 'core/presentation/Popover';
import { SETTINGS } from 'core/config/settings';
import { later } from 'core/utils/later/later';
import { timestamp } from 'core/utils/timeFormat... |
// Copyright 2017-2020 @polkadot/ui-staking authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import React, { useState } from 'react';
import { Input, InputAddress, Modal, TxButton } from '@polkadot/react-components';... |
import bitCount from './bitCount';
/**
* Returns sign change due to putting the blade blades represented
* by <code>a<code> and <code>b</code> into canonical order.
*/
export default function canonicalReorderingSign(a: number, b: number): number {
// Count the number of basis vector flips required to
// get ... |
import * as t from 'io-ts';
import { RTTI_Extension, IExtension } from './RTTI_Extension';
import { RTTI_CodeableConcept, ICodeableConcept } from './RTTI_CodeableConcept';
import { RTTI_Reference, IReference } from './RTTI_Reference';
export interface ISubstanceReferenceInformation_Classification {
/**
* Unique id ... |
import axios from 'axios';
const api = axios.create({
baseURL: 'http://192.168.15.6:3333'
})
export default api; |
import { BadgeMode, BadgeTone } from '../../types';
/**
* @internal
*/
export interface BadgeStyleProps {
$mode: BadgeMode;
$tone: BadgeTone;
}
//# sourceMappingURL=types.d.ts.map |
import { Controller, Post, UseInterceptors, UploadedFile, Res, Param } from '@nestjs/common';
import { FileInterceptor } from '@nestjs/platform-express';
import { Response } from 'express';
import { multerOptions } from './multer-options.function';
import { isNullOrUndefined } from 'util';
import { UploadService } from... |
import {
executeMultipleTransactions,
LP_STORAGE_AMOUNT,
ONE_YOCTO_NEAR,
refFiViewFunction,
REF_FI_CONTRACT_ID,
Transaction,
wallet,
RefFiFunctionCallOptions,
refFiManyFunctionCalls,
} from './near';
import BN from 'bn.js';
import db from '../store/RefDatabase';
import { ftGetStorageBalance, TokenMeta... |
import * as React from "react";
import classNames from "classnames";
import IFieldProps from "./IFieldProps";
import IFieldEventProps from "./IFieldEventProps";
import Label from "../typography/Label";
import Row from "../layout/Row";
export interface IOptionProps extends IFieldProps, IFieldEventProps {
onChange?: nu... |
import styles from './index.module.scss';
interface ShareButtonProps {
className?: string;
[x: string]: any;
}
export default function ShareButton({ className = '', ...restProps }: ShareButtonProps) {
return <a {...restProps} className={`${className} ${styles.share}`} />;
} |
import * as _ from 'lodash'
import * as PropTypes from 'prop-types'
import * as React from 'react'
import { AutoControlledComponent, childrenExist, customPropTypes } from '../../lib'
import MenuItem from './MenuItem'
import menuRules from './menuRules'
import menuVariables from './menuVariables'
class Menu extends Au... |
import {createStore} from "redux";
import {initialState, reducer} from "./AppActions";
declare global {
interface Window {
[key: string]: any;
}
}
export const appStore = createStore(
reducer,
initialState,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
); |
import type { Vector3 } from 'three';
import type { Coordinate3d, CoordinateXYZ } from './Coordinates';
let scaleFactor = 1.0;
/**
* Set the number of units per AU.
*/
export function setScaleFactor(val: number) {
scaleFactor = val;
}
/**
* Get the number of units per AU.
*/
export function getScaleFactor(): ... |
export interface AuthError {
type: AuthErrorType;
data: string;
}
export type AuthErrorType = 'auth_error' | 'two_factor'; |
import { Media, MediaProps } from '@mj-website/api-interfaces';
import { IQuery, Pagination } from '@mj-website/criteria';
import { Result } from '@mj-website/monads';
import { MediaRepository } from '../domain/MediaRepository';
export class MediaPersistenceService {
constructor(private _repository: MediaRepository)... |
import * as React from 'react'
import { TeamsProcessedSvgIconSpec } from '../types'
export default {
icon: ({ classes }) => (
<svg role="presentation" focusable="false" viewBox="8 8 16 16" className={classes.svg}>
<g>
<path
className={classes.outlinePart}
d="M21.5 18H21v-1.5c0-.... |
import { Collection } from "../../util/collection.ts";
import type { Bot } from "../../bot.ts";
import { DiscordChannel } from "../../types/discord.ts";
/** Returns a list of guild channel objects. */
export async function getChannels(bot: Bot, guildId: bigint) {
const result = await bot.rest.runMethod<DiscordChanne... |
import { Injectable } from '@angular/core';
import { Location } from '@angular/common';
import {
ActivatedRouteSnapshot,
CanDeactivate,
RouterStateSnapshot,
UrlTree,
Router,
} from '@angular/router';
import { MatDialog } from '@angular/material/dialog';
import { Observable } from 'rxjs';
export interface OnB... |
import React from "react";
import { useHistory } from "react-router-dom";
import {
Avatar,
Card,
CardContent,
Divider,
Grid,
List,
ListItem,
ListItemAvatar,
ListItemText
} from "@material-ui/core";
import { SitePage } from "../components/SitePage";
import diceIcon from "./diceIcon.png";
import gcaIcon... |
/*
* Copyright (C) 2017-present Capaprice Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
/* eslint-disable no-unused-expressions */
import {
GraphQLSchema,
DocumentNode,
GraphQLError,
ExecutionArgs,
GraphQLResolveInfo,
OperationTypeNode,
GraphQLObjectType,
getOperationAST,
print,
SelectionSetNode,
ExecutionResult,
} from 'graphql';
import { ExecuteMeshFn, GetMeshOptions, Requester, Su... |
import * as React from 'react';
import {Renderer, RendererProps} from '../factory';
import {Action} from '../types';
export interface ButtonToolbarProps extends RendererProps {
buttons: Array<Action>;
}
export default class ButtonToolbar extends React.Component<ButtonToolbarProps, object> {
static propsList: ... |
import Collection from './Collection.js'
import langM from "../../models/profile.js";
interface obj {
id: string;
description: string;
flags: string[];
achievements: string[];
color: string;
}
class ProfileManager {
collection: Collection<string, obj>
constructor() {
this.collect... |
import { PageHeader } from "@/components"
export default function Branding() {
return (
<PageHeader title="Branding" color="orange" />
)
} |
/**
* Created by pratik on 27/11/17.
*/
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { ModuleWithProviders, NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { CommonDataService } from '../services/data/common.data... |
import * as assert from 'assert'
import { liftA2, liftA3, liftA4, applyFirst, applySecond } from '../src/Apply'
import { option, some, none } from '../src/Option'
import { either, right, left } from '../src/Either'
describe('Apply', () => {
const r1 = right<string, number>(1)
const r2 = right<string, number>(2)
... |
export const YuqueFilled = {
name: 'yuque-filled',
svgString: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.9-8.1-195-3-195-3s87.4 55.6 52.4 154.7c-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 6... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr_CA" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Zeronecoin</source>
<translation>A propos de Zeronecoin</translat... |
export class AppConfig
{
public readonly apiUrl = "https://localhost:44390/api/";
}; |
<TS language="am" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>አድራሻ ወይም መለያ ስም ለመቀየር ቀኙን ጠቅ ያድርጉ</translation>
</message>
<message>
<source>Create a new address</source>
<translation>አዲስ... |
import React, { FunctionComponent, ReactElement } from 'react';
import SplitPane from 'react-split-pane';
import { debouncedResizeChart } from '../common/tauChartRef';
import { useSessionChartType } from '../stores/editor-store';
import QueryEditorChart from './QueryEditorChart';
import QueryEditorChartToolbar from './... |
export default {
$schema: "http://json-schema.org/schema#",
title: "Paragraph",
description: "A paragraph component's schema definition.",
type: "object",
id: "@microsoft/fast-components-react-msft/paragraph",
formPluginId: "@microsoft/fast-components-react-msft/paragraph",
properties: {
... |
import { Sha256 } from "@aws-crypto/sha256-js";
import { ImagebuilderClientConfig } from "./ImagebuilderClient";
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
/**
* @internal
*/
export const getRuntimeConfig = (config: ImagebuilderClientConfig = {}) => {
const browserDefaul... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule,ReactiveFormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { FormLoginComponent } from './form-login/form-login.... |
import { Inject, Injectable } from '@nestjs/common';
import { InjectConnection } from '@nestjs/typeorm';
import { LanguageCode } from '@vendure/common/lib/generated-types';
import { pick } from '@vendure/common/lib/pick';
import { ID } from '@vendure/common/lib/shared-types';
import { ChildProcess, fork } from 'child_p... |
import 'symbol-observable';
import 'core-js';
import 'regenerator-runtime/runtime';
import 'whatwg-fetch'; // fetch polyfill needed for PhantomJs rendering
import './polyfills/old-mediaquerylist'; // Safari < 14 does not have mql.addEventListener()
import 'file-saver';
import 'jquery';
import _ from 'lodash'; // esli... |
/**
*
*
* OpenAPI spec version: 20160918
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ... |
import {
EditorState,
ContentBlock,
Modifier,
SelectionState,
ContentState,
} from "draft-js";
const getCurrentContentBlock = (editorState: EditorState): ContentBlock => {
const selection = editorState.getSelection();
const contentBlock = editorState
.getCurrentContent()
.getBlockForKey(selection.getStartKey... |
import { async, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
import { BehaviorSubject, of } from 'rxjs';
import { User } from './shared/user.interface';
import { AuthService } from './shared/auth.service';
import {... |
import storage from '../model/storage';
import { iterateAllProblem, iterateAllProblemInDomain } from '../pipelineUtils';
export const description = 'Sync problem filelist from s3 service';
export async function run({ domainId }, report: Function) {
const cb = async (pdoc) => {
report({ message: `${pdoc.do... |
import * as React from 'react';
import * as cn from 'classnames';
import { Omit } from '_helpers';
import MuiToggleButtonGroup, { ToggleButtonGroupProps } from '@material-ui/lab/ToggleButtonGroup';
import { StylesProps, provideStyles } from './ToggleButtonGroup.style';
type IProps = Omit<ToggleButtonGroupProps, 'clas... |
export const createOptionKeyGetter = (brushName: string) => (option: string) =>
`${brushName}-${option}` |
export { default } from './TabScrollButton';
export * from './TabScrollButton'; |
<TS language="es_AR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click derecho para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { LockRequestProto } from '../../types';
export default class LockRequestMessage {
timeOut: number;
token: string | undefined;
static fromProto(message: LockRequestProto): LockRequestMessage;
private static validateOutgoing;
private static validateIncoming;
constructor(timeOut: number, to... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="tr" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Yeetcoin</source>
<translation>Yeetcoin hakkında</translation>
<... |
/* Hungarian locals for vue-tailwind */
import { CustomLocale } from '../types/locale';
export const Hungarian: CustomLocale = {
firstDayOfWeek: 1,
weekdays: {
shorthand: ['V', 'H', 'K', 'Sz', 'Cs', 'P', 'Szo'],
longhand: [
'Vasárnap',
'Hétfő',
'Kedd',
'Szerda',
'Csütörtök',
... |
import State from './state';
import BASE_LOGO from '../../../assets/icons/ava.png';
import Button from '../../button/button';
import Header from '../header';
export default class StartGameState extends State<Header> {
public createButton(
onButtonClick?: () => void,
onSecondButtonClick?: () => void,
avat... |
import { Pool, PoolClient } from 'pg';
import { PostgresDataAdapter } from './postgres-data-adapter';
import { PostgresSql } from '../sql/postgres-sql';
import { RelationalTransactionAdapter } from '../../relational/adapter/relational-transaction-adapter';
import { RelationalDataAdapter } from '../../relational/adapter... |
import express from 'express';
// * Use to handle async like simple ts command instead of express next
import 'express-async-errors';
import { json } from 'body-parser';
// * Used for creating cookie
import cookieSession from 'cookie-session';
import { currentUserRouter } from './routes/current-user';
import { sig... |
export interface TaxonomyInfo {
code: string;
desc: string;
license: string;
primary: boolean;
state: string;
} |
import React, { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useDispatch } from 'react-redux';
import styled from 'styled-components';
import { Button, Radio, Typography } from '@mui/material';
import { createAuthority } from '../../../api/authorityApi';
import { ButtonWithProgress ... |
/* tslint:disable */
/* eslint-disable */
/**
* Gravitee.io - Management API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.... |
// @strict: true
// @target: es6
const FOO_SYMBOL = Symbol('Foo');
declare global {
interface Promise<T> {
[FOO_SYMBOL]?: number;
}
}
export function foo<T>(p: Promise<T>) {
p[FOO_SYMBOL] = 3;
} |
/**
* @module node-opcua-secure-channel
*/
/**
* SequenceNumberGenerator manages a monotonically increasing sequence number.
* @class SequenceNumberGenerator
* @constructor
*
* @see OPC Unified Architecture, Part 6 - $6.4.2 page 36 -
*
* The SequenceNumber shall also monotonically increase for all messages an... |
/**
* Created by Alex on 24/05/2015.
*/
export class TriviaViewViewModel{
activate(model: any){
console.log(model);
}
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { InjectRepository } from '@nestjs/typeorm';
import { Strategy, ExtractJwt } from 'passport-jwt';
import { User } from '../entity&repository/user.entity';
import { UserRepository } from '../en... |
export * from './DownloadLayout'; |
<TS language="es_DO" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Crear una nueva dirección</translation>
</message>
<message>
<source>&New</source>
<translation>Nuevo</translation>
</message>
... |
import { isArray, isObject } from './unit';
export type CompositeObject<T, R> = T & R;
export const keysOfObject = <T>(obj: T): (keyof T)[] =>
Object.keys(obj) as (keyof T)[];
export const deepFilterObjectKeys = <T, R extends string>(
obj: T,
omitKeys: Set<R>,
): Omit<T, R> => {
const filteredObj = {} as Omi... |
type QueueOneWrapper<T extends (...args: any[]) => Promise<void>> = (...args: Parameters<T>) => void
/**
* Esnures that the wrapped function can not be called until its returned promise is pending.
* If the wrapper is called before that and there is no call queued,
* the call will be queued and executed when the pr... |
import { Column, Entity, PrimaryColumn } from 'typeorm';
@Entity()
export class User {
@PrimaryColumn({ type: 'varchar' })
id!: string;
@Column()
username!: string;
@Column()
email!: string;
@Column()
password!: string;
} |
import { getPageYOffset } from './window/pageYOffset'
import { scrollTo } from './scrollTo'
/**
* Scroll smoothly to target, accounting for header height.
*
* @param target Link or hash target.
* @param offset Vertical pixel offset.
* @param complete Completion callback.
*/
function scrollToTarget(
target:... |
import { useEffect, useRef, useState } from 'react';
import { InitialValues, onChangeArgs, Product } from '../interfaces/interfaces';
interface useProductArgs {
product: Product;
onChange?: (args: onChangeArgs) => void;
value?: number;
initialValues?: InitialValues;
}
export const useProduct = ({ onCh... |
/**
* 导入 ant design 的图标
* 按需引入
*/
// export { default as AccountBookFill } from '@ant-design/icons/lib/fill/AccountBookFill';
// export { default as AlipayCircleFill } from '@ant-design/icons/lib/fill/AlipayCircleFill';
// export { default as AlipaySquareFill } from '@ant-design/icons/lib/fill/AlipaySquareFill';
//... |
// tests based on http://jasmine.github.io/2.2/introduction.html
describe("A suite", () => {
it("contains spec with an expectation", () => {
expect(true).toBe(true);
});
});
describe("A suite is just a function", () => {
var a: boolean;
it("and so is a spec", () => {
a = true;
... |
import { TestFunctionUsage } from '../src/testFunctionUsage';
import { testFunctionAsync, testFunction, calledFunction } from './fixtures/functions';
import {
expectedArguments_SingleCall,
testArguments_SingleCall,
testArguments_TripleCall,
expectedArguments_TooManyCalls,
expectedArguments_WrongValu... |
export class Invoice {
id: string;
InvoiceNo: string;
InvoiceDate: Date;
NetTotal: number;
GrossTotal: number;
TaxPayable: number;
} |
import { createSelector, MemoizedSelector, ActionReducerMap } from '@ngrx/store';
import { fromCart,fromCartReducer } from '@daffodil/cart';
export interface CartState {
cart: fromCartReducer.State;
}
export interface State {
cart: CartState
}
export const reducers : ActionReducerMap<CartState> = {
cart: from... |
export class RegisterUser {
$key: string;
name: string;
nip: string;
division: string;
program: string;
phone: string;
email: string;
} |
'use strict'
export interface SecureClient {
init(
publicApiKey: string,
options: SecureClientOptions
): void
associate(
authToken: string,
resolve?: () => void,
reject?: (e?: any) => void
): void
kyb(): KYB
kyc(): KYC
consumer_kyc(): ConsumerVerificationFlowContract
form(): Se... |
import { Hooks } from "./hooks";
import { AttachData } from "./helpers/attachto";
import { VNodeStyle } from "./modules/style";
import { On } from "./modules/eventlisteners";
import { Attrs } from "./modules/attributes";
import { Classes } from "./modules/class";
import { Props } from "./modules/props";
import { Datase... |
export enum CustomNode {
ConsoleOutputDisableExpressionNode = 'ConsoleOutputDisableExpressionNode',
DebugProtectionFunctionCallNode = 'DebugProtectionFunctionCallNode',
DebugProtectionFunctionIntervalNode = 'DebugProtectionFunctionIntervalNode',
DebugProtectionFunctionNode = 'DebugProtectionFunctionNode... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.