text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { createSelector } from 'reselect' import last from 'lodash/last' import uniq from 'lodash/uniq' import { selectors as stepFormSelectors } from '../../step-forms' import { getDefaultsForStepType } from '../../steplist/formLevel/getDefaultsForStepType' import { SubstepIdentifier, TerminalItemId, PRESAVED_ST...
the_stack
import { mat3, mat4, quat, vec3, vec4 } from 'gl-matrix'; import { createVec3, getAngle } from '../../utils/math'; // import Landmark from './Landmark'; export enum CAMERA_TYPE { ORBITING = 'ORBITING', EXPLORING = 'EXPLORING', TRACKING = 'TRACKING', } export enum CAMERA_TRACKING_MODE { DEFAULT = 'DEFAULT', ...
the_stack
import './setup'; import { Container } from '../src/container'; import { inject, autoinject } from '../src/injection'; describe('injection', () => { it('instantiates class without injected services', () => { class App { } const container = new Container(); const app = container.get(App); expect(app...
the_stack
import {useEffect, useMemo, useRef} from "react"; import { QueryClient, useInfiniteQuery, useMutation, useQueryClient, } from "react-query"; import { DocumentData, FieldPath, FirebaseFirestore, Query, QueryDocumentSnapshot, } from "@firebase/firestore-types"; import {useFirestore} f...
the_stack
import * as THREE from 'three'; import type {Point2D} from '../types'; import ScatterChart from '../ScatterChart'; import fragmentShader from './fragment.glsl'; import vertexShader from './vertex.glsl'; const CANVAS_MAX_WIDTH = 16384; const CANVAS_MAX_HEIGHT = 16384; const VERTEX_COUNT_PER_LABEL = 6; type Position2D...
the_stack
import {Component, HostListener, Input, OnChanges, ViewEncapsulation} from '@angular/core'; import * as d3 from 'd3'; import {DistributionDataDTO} from '../../models/distribution-data.model'; import '../util/chart-label-util'; import ChartLabelUtil from '../util/chart-label-util'; import {MeasurandColorService} from '....
the_stack
import { i18n } from '../i18n/i18n'; import { utils } from '../utils/utils'; import { EditorTag } from '../types/editor_tag'; import { DataType } from '../types/data_type'; import { MetaDataDTO } from './dto/meta_data_dto'; import { MetaEntity, MetaEntityAttr } from './meta_entity'; import { ValueEditor } from './val...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [mediaconnect](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalmediaconnect.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/late...
the_stack
import { $Values } from 'utility-types'; import { Channel } from 'redux-saga'; import { all, call, fork, put, takeLatest } from 'redux-saga/effects'; import { getExtensionHash, Extension, ClientType, ROOT_DOMAIN_ID, ColonyClient, ColonyRole, TokenClientType, } from '@colony/colony-js'; import { AddressZer...
the_stack
import { checkEqual } from '../check.ts'; import { Profile } from '../config.ts'; import { GraphqlQuery } from './graphql.ts'; export class CfGqlClient { static DEBUG = false; static URL_TRANSFORMER: (url: string) => string = v => v; readonly profile: Profile; constructor(profile: Profile) { ...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement, Operator } from "../shared"; /** * Statement provider for service [ram](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsresourceaccessmanager.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/lat...
the_stack
import { vec3 } from "gl-matrix"; import { AttenuationRolloff } from "./AttenuationRolloff"; import { Dimension } from "./Dimension"; import { Direction } from "./Direction"; import type { ReflectionCoefficients } from "./ReflectionCoefficients"; import type { RoomDimensions } from "./RoomDimensions"; import type { Roo...
the_stack
import { expectByte, expectFloat32, expectInt32, expectLong, expectNonNull, expectObject, expectShort, expectUnion, limitedParseDouble, limitedParseFloat32, parseBoolean, strictParseByte, strictParseDouble, strictParseFloat32, strictParseInt32, strictParseLong, strictParseShort, } from...
the_stack
declare namespace GoogleAdsScripts { namespace AdsApp { /** * Access to ad group-level video criteria. For example, to access all video keywords in an ad group: * * var videoKeywordIterator = videoAdGroup.videoTargeting().keywords().get(); * while (videoKeywordI...
the_stack
import { sp } from '@pnp/sp'; import * as strings from 'ColumnFormatterWebPartStrings'; import { DefaultButton, PrimaryButton } from 'office-ui-fabric-react/lib/Button'; import { CommandBar } from 'office-ui-fabric-react/lib/CommandBar'; import { IContextualMenuItem } from 'office-ui-fabric-react/lib/ContextualMenu'; i...
the_stack
import cm = require('./common'); import ctxm = require('./context'); import agentifm = require('vso-node-api/interfaces/TaskAgentInterfaces'); import buildifm = require('vso-node-api/interfaces/BuildInterfaces'); import fcifm = require('vso-node-api/interfaces/FileContainerInterfaces'); import testifm = require('vso-no...
the_stack
import * as Clutter from 'clutter'; import * as GnomeDesktop from 'gnomedesktop'; import * as GObject from 'gobject'; import * as Shell from 'shell'; import { MsWorkspace } from 'src/layout/msWorkspace/msWorkspace'; import { PrimaryBorderEffect } from 'src/layout/msWorkspace/tilingLayouts/baseResizeableTiling'; import ...
the_stack
"use strict"; // // TGALoader // class TGALoader { static version = 1; gd : WebGLGraphicsDevice; src : string; data : Uint8Array; onload : { (data: Uint8Array, width: number, height: number, ...
the_stack
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * Operations * __NOTE__: An instance of this class is automatically created for an * instance of the MachineLearningWorkspacesManagementClient. */ export inter...
the_stack
import React from 'react'; import ReactDOM from 'react-dom'; import {StreamEvent} from '../Event/StreamEvent'; import {PrefCoverFragment} from './Pref/PrefCoverFragment'; import {LibraryStreamsFragment} from './Stream/LibraryStream/LibraryStreamsFragment'; import {SystemStreamsFragment} from './Stream/SystemStream/Syst...
the_stack
const BG_VERSION = 17 const NEED_DROPPER_VERSION = 12 const DEFAULT_COLOR = '#b48484' interface BgSettings { autoClipboard: boolean autoClipboardNoGrid: boolean enableColorToolbox: boolean enableColorTooltip: boolean enableRightClickDeactivate: boolean dropperCursor: string plus: boolean ...
the_stack
import { allDocsAtom, deletedDocsAtom, docAtom, pathExpanderAtom, } from "@/atoms/firestore"; import { actionDeleteCollection, actionDeleteDoc, actionNewDocument, } from "@/atoms/firestore.action"; import { navigatorPathAtom } from "@/atoms/navigator"; import { actionExportCollectionCSV, actionExportC...
the_stack
import axios from 'axios'; import nock from 'nock'; import { act, renderHook } from '@testing-library/react-hooks'; import { mockAccounts, mockSettings } from '../__mocks__/mock-state'; import { useNotifications } from './useNotifications'; import { AuthState } from '../types'; describe('hooks/useNotifications.ts', (...
the_stack
import { expect } from '@0x/contracts-test-utils'; import { BigNumber, hexUtils } from '@0x/utils'; import 'mocha'; import { Connection, Repository } from 'typeorm'; import { getDBConnectionAsync } from '../src/db_connection'; import { TransactionEntity } from '../src/entities'; import { TransactionStates } from '../s...
the_stack
declare module 'vscode' { /** * Defines a problem pattern */ export interface ProblemPattern { /** * The regular expression to find a problem in the console output of an * executed task. */ regexp: RegExp; /** * The match group index of the filename. * * Defaults to 1 if omitted. */ ...
the_stack
import * as iam from '@aws-cdk/aws-iam'; import * as secretsmanager from '@aws-cdk/aws-secretsmanager'; import { Construct } from 'constructs'; import { IEngine } from './engine'; import { EngineVersion } from './engine-version'; import { IParameterGroup, ParameterGroup } from './parameter-group'; /** * The extra opt...
the_stack
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config-base'; interface Blob {} declare class Greengrass...
the_stack
import { ExposedPromise } from '../../utils/exposed-promise' import { Logger } from '../../utils/Logger' import { generateGUID } from '../../utils/generate-uuid' import { BeaconEvent, BeaconEventHandlerFunction, BeaconEventType, WalletInfo } from '../../events' import { BEACON_VERSION } from '../../constants' import {...
the_stack
import fs from 'fs'; import path from 'path'; import {WritingMode, shapeIcon, shapeText, fitIconToText, PositionedIcon, Shaping} from './shaping'; import Formatted, {FormattedSection} from '../style-spec/expression/types/formatted'; import ResolvedImage from '../style-spec/expression/types/resolved_image'; import expec...
the_stack
import { XMLBuilderCB, AttributesObject, PIObject, DTDOptions, XMLBuilder, XMLBuilderCBOptions, XMLBuilderCreateOptions, DefaultXMLBuilderCBOptions, ExpandObject, XMLBuilderCBCreateOptions, XMLBuilderOptions, BaseCBWriterOptions } from "../interfaces" import { applyDefaults, isString, isObject } from "@oozcitak/u...
the_stack
import axios from 'axios'; import fs from 'fs-extra'; import path from 'path'; import temp from 'temp'; import { minimalConfig } from './minimalConfig'; import { loggerSpy } from '../testhelpers/loggerSpy'; import readlineSync from 'readline-sync'; import { isSupportedFHIRVersion, ensureInputDir, findInputDir, ...
the_stack
import {parallel} from './change-detection'; import {TestElement} from './test-element'; /** An async function that returns a promise when called. */ export type AsyncFactoryFn<T> = () => Promise<T>; /** An async function that takes an item and returns a boolean promise */ export type AsyncPredicate<T> = (item: T) =>...
the_stack
import { IUserDataSyncService, SyncStatus, IUserDataSyncStoreService, SyncResource, IUserDataSyncLogService, IUserDataSynchroniser, UserDataSyncErrorCode, UserDataSyncError, ISyncResourceHandle, IUserDataManifest, ISyncTask, IResourcePreview, IManualSyncTask, ISyncResourcePreview, MergeState, Change, IUserDataSyncSto...
the_stack
import * as path from 'path'; import { DebugProtocol } from 'vscode-debugprotocol'; import { ISetBreakpointsArgs, ILaunchRequestArgs, IAttachRequestArgs, IInternalStackTraceResponseBody, IScopesResponseBody, IInternalStackFrame } from '../debugAdapterInterfaces'; import { MappedPosition, ISourcePathDetails } from ...
the_stack
import * as nls from 'vs/nls'; import * as Objects from 'vs/base/common/objects'; import { IJSONSchema, IJSONSchemaMap } from 'vs/base/common/jsonSchema'; import commonSchema from './jsonSchemaCommon'; import { ProblemMatcherRegistry } from 'vs/workbench/contrib/tasks/common/problemMatcher'; import { TaskDefinitionRe...
the_stack
import type { OverrideBundleDefinition } from '@polkadot/types/types'; // structs need to be in order /* eslint-disable sort-keys */ const definitions: OverrideBundleDefinition = { types: [ { // on all versions minmax: [0, undefined], types: { AccountInfo: 'AccountInfoWithDualRefCount'...
the_stack
import {ModelAttributes} from './galleries/AbstractGallery'; import {getIcon} from './Utility'; export declare interface ItemOptions { lightbox?: boolean; selectable?: boolean; activable?: boolean; gap?: number; showLabels?: 'hover' | 'never' | 'always'; } export interface ItemTitle { title: s...
the_stack
declare module 'stripe' { namespace Stripe { /** * The Capability object. */ interface Capability { /** * The identifier for the capability. */ id: string; /** * String representing the object's type. Objects of the same type share the same value. */ ...
the_stack
import { Event } from 'vs/base/common/event'; import { withNullAsUndefined } from 'vs/base/common/types'; import { URI, UriComponents } from 'vs/base/common/uri'; import { IChannel } from 'vs/base/parts/ipc/common/ipc'; import { IWorkbenchConfigurationService } from 'vs/workbench/services/configuration/common/configura...
the_stack
import { LoginConfig, OriginData, WhiteLabelData } from "@toruslabs/openlogin-jrpc"; import { ExtraLoginOptions } from "@toruslabs/openlogin-utils"; export declare const iframeDOMElementID = "openlogin-iframe"; export declare const modalDOMElementID = "openlogin-modal"; export declare const storeKey = "openlogin_store"...
the_stack
import dirTree from 'directory-tree'; import Path from 'path'; import fs from 'fs'; import web3 from 'web3'; import * as bunyan from 'bunyan'; import { FileObject, Match, Status, Tag, MatchLevel, FilesInfo, MatchQuality, ContractData } from '../utils/types'; import { checkChainId } from '../utils/utils'; import { Logge...
the_stack
import { IBlueprintExternalMessageQueueObj } from './message' import { PackageInfo } from './packageInfo' import { IBlueprintPart, IBlueprintPartInstance, IBlueprintPiece, IBlueprintPieceInstance, IBlueprintResolvedPieceInstance, IBlueprintRundownDB, IBlueprintMutatablePart, IBlueprintSegmentDB, IBlueprintPiec...
the_stack
import type { Error } from '../types' import type { ProtocolData } from '../protocol/types' import type { Mount, Slot, Axis, Direction, SessionUpdate } from './types' export interface LegacyConnectAction { type: 'robot:LEGACY_CONNECT' payload: { name: string } meta: { robotCommand: true } } export i...
the_stack
import React from 'react' import MultiPicker from '../../picker/MultiPicker' import Picker from '../../picker/Picker' import DatePickerProps from './DatePickerProps' import defaultLocale from './locale/en_US' function getDaysInMonth(date: any) { return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate() }...
the_stack
import { resolve } from 'path' // a import fetch = require('node-fetch') import express = require('express') import multer = require('multer') import path = require('path') import fs = require('fs') import mkdirp = require('mkdirp') import * as BlinkDiff from 'blink-diff' import { Role } from '../packages/shared/comms/...
the_stack
import { promisify } from 'bluebird'; import * as jscodeshift from 'jscodeshift'; import { ASTNode, ASTPath } from 'jscodeshift'; import { Collection } from 'jscodeshift/src/Collection'; import * as minimist from 'minimist'; import { fs } from 'mz'; import * as protobuf from 'protobufjs'; import { pbjs, pbts } from 'pr...
the_stack
import {GaxiosOptions} from 'gaxios'; import {describe, it} from 'mocha'; import * as assert from 'assert'; import * as querystring from 'querystring'; import {Headers} from '../src/auth/oauth2client'; import { ClientAuthentication, OAuthClientAuthHandler, getErrorFromOAuthErrorResponse, } from '../src/auth/oaut...
the_stack
import { TestBed, fakeAsync, tick, waitForAsync } from '@angular/core/testing'; import { SortingDirection } from '../../data-operations/sorting-expression.interface'; import { IgxTreeGridComponent } from './tree-grid.component'; import { IgxGridCell, IgxTreeGridModule } from './public_api'; import { IgxTreeGridCellComp...
the_stack
import { Stack, Duration } from '@aws-cdk/core'; import { LambdaToSagemakerEndpoint, LambdaToSagemakerEndpointProps } from '../lib'; import * as defaults from '@aws-solutions-constructs/core'; import * as lambda from '@aws-cdk/aws-lambda'; import * as iam from '@aws-cdk/aws-iam'; import '@aws-cdk/assert/jest'; // ----...
the_stack
import { BlocksoftBlockchainTypes } from '../../BlocksoftBlockchainTypes' import DogeUnspentsProvider from '../../doge/providers/DogeUnspentsProvider' import Database from '@app/appstores/DataSource/Database'; import BlocksoftCryptoLog from '../../../common/BlocksoftCryptoLog' import BlocksoftDict from '@crypto/common...
the_stack
import { ViewBasedJSONModel } from './viewbasedjsonmodel'; import { toArray, filter } from '@lumino/algorithm'; import { Transform } from './transform'; import * as moment from 'moment'; /** * An object that defines a data transformation executor. */ export abstract class TransformExecutor { /** * Apply a tr...
the_stack
import * as vscode from 'vscode'; import {BaseView} from '../../views/baseview'; import {ZSimRemote} from './zsimremote'; import {Settings} from '../../settings'; import {Utility} from '../../misc/utility'; import {LogCustomCode} from '../../log'; import {GlobalStorage} from '../../globalstorage'; import {readFileSync}...
the_stack
import * as msRest from "@azure/ms-rest-js"; export const ResponseBase: msRest.CompositeMapper = { serializedName: "ResponseBase", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "_type", clientName: "_type" }, uberParent: "ResponseBase", className: "Response...
the_stack
import { EdgeError } from 'edge-error' import { TagToken, utils as lexerUtils } from 'edge-lexer' import { EdgeBuffer, expressions, Parser } from 'edge-parser' import { TagContract } from '../Contracts' import { StringifiedObject } from '../StringifiedObject' import { isSubsetOf, unallowedExpression, parseJsArg } from...
the_stack
import { expect } from 'chai'; import { Tests } from 'test/lib/tests'; describe('UI interactions', () => { describe('Environments menu', () => { const tests = new Tests('ui'); it('Verify environments men item content', async () => { await tests.helpers.assertHasActiveEnvironment('FT env'); await...
the_stack
declare module 'pilotjs/vendors/Emitter' { // ==== ./vendors/Emitter.js ==== type EventListener = (...args: any[]) => any; namespace Emitter { export class Event<T = any, D = undefined, R = any> { target: T; details: D; result?: R; constructor(type: string | Object | Event); isDefaultPrevented()...
the_stack
import { async, ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { GraphVizComponent } from './graph-viz.component'; import { NO_ERRORS_SCHEMA } from '@angular/core'; import { MockTranslatePipe } from 'tests/unit-test-utils'; import { GraphDetailService } from './graph-detail.service'; ...
the_stack
'use strict'; import { isObject } from 'chord/base/common/checker'; import { decodeHtml } from 'chord/base/browser/htmlContent'; import { IAudio } from 'chord/music/api/audio'; import { ISong } from 'chord/music/api/song'; import { ILyric } from 'chord/music/api/lyric'; import { IAlbum } from 'chord/music/api/album';...
the_stack
import { Binding, Expression } from 'aurelia-binding'; import { GlobalValidationConfiguration } from './config'; import { Validator } from './validator'; import { validateTrigger } from './validate-trigger'; import { getPropertyInfo } from './property-info'; import { ValidationRenderer, RenderInstruction } from '....
the_stack
import {runInEachFileSystem} from '../../src/ngtsc/file_system/testing'; import {loadStandardTestFiles} from '../../src/ngtsc/testing'; import {NgtscTestEnvironment} from './env'; const testFiles = loadStandardTestFiles(); runInEachFileSystem(() => { describe('ngtsc incremental compilation (semantic changes)', () ...
the_stack
import * as aws from "@pulumi/aws"; import * as pulumi from "@pulumi/pulumi"; import * as cloudwatch from "../cloudwatch"; export namespace metrics { type S3MetricName = "BucketSizeBytes" | "NumberOfObjects" | "AllRequests" | "GetRequests" | "PutRequests" | "DeleteRequests" | "Hea...
the_stack
/*! * Copyright (c) 2020 Ron Buckton (rbuckton@chronicles.org) * * This file is licensed to you under the terms of the MIT License, found in the LICENSE file * in the root of this repository or package. */ import { CharacterCodes, SyntaxKind, stringToToken, isProseFragmentLiteralKind } from "./tokens"; i...
the_stack
import {Constructor, valueof} from '../../../types/GlobalTypes'; import {Camera} from 'three/src/cameras/Camera'; import {CoreTransform} from '../../../core/Transform'; import {ObjNodeRenderOrder} from './_Base'; import {ThreejsCameraControlsController} from './utils/cameras/ControlsController'; import {LayersControlle...
the_stack
export async function createPoints(upper: int) { "use speedyjs"; const array = [ 9860, 14152, 9396, 14616, 11252, 14848, 11020, 13456, 9512, 15776, 10788, 13804, 10208, 14384, 11600, 13456, 11252, 14036, 10672, 15080, 11136...
the_stack
import * as React from 'react'; import { Rule, SymbolizerKind, WellKnownName } from 'geostyler-style'; import { Data } from 'geostyler-data'; import { Radio, Form, Button, InputNumber, Tooltip } from 'antd'; import en_US from '../../locale/en_US'; import AttributeCombo from '../Filter/AttributeCombo/AttributeCombo'; i...
the_stack
(function beautify_script_init():void { "use strict"; const script = function beautify_script(options:any):string { let scolon:number = 0, news:number = 0; const data:data = options.parsed, lexer:string = "script", scopes:scriptScopes = prettydiff.scopes, ...
the_stack
export default function kaboom(conf?: KaboomConf): KaboomCtx; export type KaboomCtx = { // assets loadRoot(path?: string): string, loadSprite( id: string, src: SpriteLoadSrc, conf?: SpriteLoadConf, ): Promise<SpriteData>, loadSound( id: string, src: string, ): Promise<SoundData>, loadFont( id: strin...
the_stack
import { axios } from '../axios-instance'; import { Firewall, FirewallInboundRule, FirewallOutboundRule } from '../models/firewall'; export class FirewallService { constructor() {} /** * Create a new Cloud Firewall * * ### Example * ```js * import { DigitalOcean } from 'digitalocean-js'; ...
the_stack
import { abortAbleAll, IAbortAblePromise } from 'lineupengine'; import { ANOTHER_ROUND } from '../internal/scheduler'; import { IForEachAble, lazySeq, boxplotBuilder, categoricalStatsBuilder, categoricalValueCacheBuilder, dateStatsBuilder, dateValueCacheBuilder, IAdvancedBoxPlotData, ICategoricalStati...
the_stack
import * as long from "long"; import * as microtime from "microtime"; import { Device as HidDevice, devices as hidDevices, HID } from "node-hid"; import { Subject } from "rxjs"; import * as usbDetect from "usb-detection"; import { privateData } from "../../../shared/lib"; import { MotionData, MotionDataWithTimestamp } ...
the_stack
import { ReactiveElement, PropertyValues, ReactiveControllerHost, } from '@lit/reactive-element'; import { MutationController, MutationControllerConfig, } from '../mutation_controller.js'; import {generateElementName, nextFrame} from './test-helpers.js'; import {assert} from '@esm-bundle/chai'; // Note, sinc...
the_stack
import { CPU } from "./cpu"; import { Memory } from "./memory"; import { Cartridge, Mirroring } from "./cartridge"; import { PPU } from "./ppu"; import { FPSController } from "./fps_controller"; import { VideoScreen } from "./video"; import { InputController } from "./input_controller"; import { BitHelper } from...
the_stack
import { withSlots, stagedComponent } from '@fluentui-react-native/use-slot'; import { mergeProps } from '@fluentui-react-native/merge-props'; import { buildUseSlots } from './buildUseSlots'; import toJson from 'enzyme-to-json'; import { mount } from 'enzyme'; import { CSSProperties } from 'react'; // types for web ty...
the_stack
import { Browser, EventHandler, createElement, EmitType } from '@syncfusion/ej2-base'; import { ILoadedEventArgs, ILoadEventArgs } from '../../src/linear-gauge/model/interface'; import { LinearGauge } from '../../src/linear-gauge/linear-gauge'; import {profile , inMB, getMemoryProfile} from '../common.spec'; import { ...
the_stack
import {assert, assertInstanceof} from '../assert.js'; import * as dom from '../dom.js'; import {Box, Line, Point, Size, Vector, vectorFromPoints} from '../geometry.js'; import {I18nString} from '../i18n_string.js'; import {speak} from '../toast.js'; import {Rotation, ViewName} from '../type.js'; import * as util from ...
the_stack
import { mat4 } from 'gl-matrix'; import Buffers, { IOBuffer } from '../buffers/buffers'; import OrbitCamera from '../camera/orbit-camera'; import CanvasTimer from '../canvas/canvas-timer'; import { ContextMode, ContextVertexBuffers } from '../context/context'; import Common from '../core/common'; import Subscriber fro...
the_stack
/// <reference types="node" /> export = massive; declare function massive( connection: massive.ConnectionInfo | string, loaderConfig?: massive.Loader, driverConfig?: object ): Promise<massive.Database>; declare namespace massive { type UUID = string; interface AnyObject<T = any> { [key: ...
the_stack
import * as angular from 'angular'; describe('tableDirective: <uif-table />', () => { let element: JQuery; let scope: any; beforeEach(() => { angular.mock.module('officeuifabric.core'); angular.mock.module('officeuifabric.components.table'); }); beforeEach(inject(($rootScope: angular.IRootScopeServ...
the_stack
type State<K, A, B> = | DrainLeft | DrainRight | PullBoth | PullLeft<K, B> | PullRight<K, A> export class DrainLeft { readonly _tag = "DrainLeft" } export class DrainRight { readonly _tag = "DrainRight" } export class PullBoth { readonly _tag = "PullBoth" } export class PullLeft<K, B> { readonly _...
the_stack
export = sjcl; export as namespace sjcl; declare namespace sjcl { export var arrayBuffer: SjclArrayBufferModes; export var bn: BigNumberStatic; export var bitArray: BitArrayStatic; export var codec: SjclCodecs; export var hash: SjclHashes; export var exception: SjclExceptions; export var ci...
the_stack
import { Address, Amount, ChainId, Hash, SendTransaction, SwapOfferTransaction, TokenTicker } from "@iov/bcp"; import { fromHex } from "@iov/encoding"; import Long from "long"; import { decodeAmount } from "./decodeobjects"; import { encodeMsg } from "./encodemsg"; import { encodeNumericId } from "./encodinghelpers"; ...
the_stack
* @module OrbitGT */ //package orbitgt.spatial.ecrs; type int8 = number; type int16 = number; type int32 = number; type float32 = number; type float64 = number; import { Coordinate } from "../geom/Coordinate"; import { Registry } from "./Registry"; import { Unit } from "./Unit"; /** * Class Ellipsoid defines the ...
the_stack
import { Message, SignedMessage, Signature, KeyInfo, DEFAULT_HD_PATH, TEST_DEFAULT_HD_PATH, MethodMultisig, Cid, ChainEpoch, MethodInit } from "../Types"; import { BaseWalletProvider } from "./BaseWalletProvider"; import { MultisigProviderInterface, WalletProviderInterface } from "../ProviderInterfaces"; import { Keyst...
the_stack
import { getContractAddressesForChainOrThrow } from '@0x/contract-addresses'; import { ERC1155ProxyContract, ERC20ProxyContract, ERC721ProxyContract, MultiAssetProxyContract, } from '@0x/contracts-asset-proxy'; import { ExchangeContract } from '@0x/contracts-exchange'; import { ZeroExGovernorContract } ...
the_stack
import {Component, ViewEncapsulation} from "@angular/core"; import { JigsawMenu, MenuTheme, SimpleNode, SimpleTreeData, PopupService, BreadcrumbNode, JigsawTheme } from "jigsaw/public_api"; @Component({ templateUrl: './demo.component.html', styleUrls:['demo.component.css'], encapsulation: V...
the_stack
declare function cancelAnimationFrame(requestID: number): void; /** * 在下次进行重绘时执行。 */ declare function requestAnimationFrame(callback: () => void): number; /** * 可取消由 setTimeout() 方法设置的定时器。 */ declare function clearTimeout(timeoutID: number): void; /** * 可取消由 setInterval() 方法设置的定时器。 */ declare fu...
the_stack
import type { CharRange } from "refa" import { visitRegExpAST, RegExpParser } from "regexpp" import type { Character, CharacterClass, CharacterSet, Node, Pattern, Quantifier, } from "regexpp/ast" import type { RegExpVisitor } from "regexpp/visitor" import type { RegExpContext } from "../utils" i...
the_stack
import * as $protobuf from "protobufjs"; /** Properties of a LinearReference. */ export interface ILinearReference { /** LinearReference startDistance */ startDistance?: (number|Long|null); /** LinearReference endDistance */ endDistance?: (number|Long|null); } /** Represents a LinearReference. */ ex...
the_stack
import { Component, OnInit, ViewChild, ViewChildren, QueryList } from '@angular/core'; import { AccountService } from '../account.service'; import { HttpErrorResponse } from '@angular/common/http'; import { MessageService } from 'src/app/shared/message/message.service'; import { VariableInputComponent } from 'src/app/s...
the_stack
import {} from "jasmine"; import { Default } from "../../../src/Default/default"; import { ContainerWindow } from "../../../src/window"; import { Container } from "../../../src/container"; class MockWindow { public listener: any; public name: string = "Name"; public focus(): void { } public show(): vo...
the_stack
import * as jv from "jsverify" import * as assert from "./asserts" import * as inst from "./instances" import { hashCode, is, HK, Left, Right, Either, Option, EitherModule } from "../../src/" import { Equiv } from "funland-laws" import { setoidCheck, monadCheck } from "../../../../test-common" describe("Either", () =>...
the_stack
export default class Sprite { width: number; height: number; all: any = {}; backup: any = []; backup_position: number; copy_sprite: any = {}; sprite_name_counter: number; constructor(public config) { this.config = config; this.width = config.sprite_x; this.height = config.sprite_y; this...
the_stack
import { ApplicationDataListResponse, ErrorResponse, ApplicationData, AttachmentListResponse, Attachment, BoundaryListResponse, CascadeDeleteJob, Boundary, BoundaryOverlapResponse, CropListResponse, Crop, CropVarietyListResponse, CropVariety, FarmerListResponse, Farmer, FarmOperationData...
the_stack
import { Injectable } from '@angular/core'; import { CoreSites } from '@services/sites'; import { CoreSite, CoreSiteWSPreSets } from '@classes/site'; import { CoreWSExternalWarning } from '@services/ws'; import { makeSingleton, Translate } from '@singletons'; import { CoreError } from '@classes/errors/error'; const RO...
the_stack
import { RouteInfo, RouteManagerContext, StackContext, StackContextState, ViewItem, generateId, getConfig, } from '@ionic/react'; import React from 'react'; import { matchPath } from 'react-router-dom'; import { clonePageElement } from './clonePageElement'; interface StackManagerProps { routeInfo: Rou...
the_stack
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent } from '@angular/common/http'; import { Inject, Injectable, InjectionToken, Optional } from '@angular/core'; import { APIClientInterface } from './api-client.interface'; import { Observable } from 'rxjs';import { DefaultHttpOptions, HttpOptions } fro...
the_stack
import * as EE from 'events'; import * as nls from 'vscode-nls'; const localize = nls.loadMessageBundle(); type NodeV8MessageType = 'request' | 'response' | 'event'; export class NodeV8Message { seq: number; type: NodeV8MessageType; public constructor(type: NodeV8MessageType) { this.seq = 0; this.type = type...
the_stack
import {html} from '@polymer/polymer'; import './styles'; export const template = html` <style include="vz-projector-styles"></style> <style> :host { transition: height 0.2s; } .ink-button { border: none; border-radius: 2px; font-size: 13px; padding: ...
the_stack
import crypto from 'crypto'; import { EventEmitter } from 'events'; import invariant from 'invariant'; import pProps from 'p-props'; import warning from 'warning'; import { JsonObject } from 'type-fest'; import { SlackOAuthClient } from 'messaging-api-slack'; import { camelcaseKeysDeep } from 'messaging-api-common'; ...
the_stack
import { fakeAsync, tick } from '@angular/core/testing'; import { IonContent } from '@ionic/angular'; import { Spectator } from '@ngneat/spectator'; import { KirbyAnimation } from '../../../animation/kirby-animation'; import { TestHelper } from '../../../testing/test-helper'; import { IconComponent } from '../../icon/...
the_stack