text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import {Observable} from '@layr/observable'; import {assertNoUnknownOptions} from 'core-helpers'; import {possiblyAsync} from 'possibly-async'; import {isNavigatorInstance, normalizeURL, stringifyURL, parseQuery} from './utilities'; declare global { interface Function { matchURL: (url: URL | string) => {identif...
the_stack
import { strictEqual } from 'assert'; import { Readable } from 'stream'; // 3p import { Config, ConfigNotFoundError, createService, streamToBuffer } from '@foal/core'; import { FileDoesNotExist } from '@foal/storage'; import * as S3 from 'aws-sdk/clients/s3'; // FoalTS import { S3Disk } from './s3-disk.service'; // ...
the_stack
import "jsdom-global/register"; import React from "react"; // eslint-disable-line import { describe, it } from "mocha"; import { expect } from "chai"; import { SubAppDef, SubAppContainer, envHooks } from "@xarc/subapp"; import { Provider } from "react-redux"; import { render, waitFor, screen } from "@testing-library/re...
the_stack
import { JsPlumbDefaults, TypeDescriptor, JsPlumbInstance, AbstractConnector, Endpoint, Overlay, RedrawResult, LabelOverlay, Connection, Component, DeleteConnectionOptions, BehaviouralTypeDescriptor, SourceSelector, UIGroup } from '@jsplumb/core'; import { PointXY, Dictionary, Size, BoundingBox, Extents, Grid } from "@...
the_stack
import { DescriptorProto, EnumDescriptorProto, EnumValueDescriptorProto, FieldDescriptorProto, FileDescriptorProto, MethodDescriptorProto, OneofDescriptorProto, ServiceDescriptorProto, SourceCodeInfo_Location } from "./google/protobuf/descriptor"; import {AnyDescriptorProto} from "./...
the_stack
import { QuerySelector } from '@svgdotjs/svg.js' import { range } from './utils' import { constants } from './constants' import { Alignment, GraphcisElement, Renderer, RoughJsRenderer, SvgJsRenderer } from './renderer' import { Constructor, ReturnTypeOf, SVGuitarPlugin } from './plugin' // Chord diagram input types (c...
the_stack
declare module 'automerge' { /** * The return type of `Automerge.init<T>()`, `Automerge.change<T>()`, etc. where `T` is the * original type. It is a recursively frozen version of the original type. */ type Doc<T> = FreezeObject<T> /** * The argument pased to the callback of a `change` function is a m...
the_stack
import {AfterContentInit, Component, EventEmitter, OnInit, Output, ViewChild} from '@angular/core'; import {ActivatedRoute} from "@angular/router"; import {FormBuilder, Validators} from "@angular/forms"; import {RoleService} from "@app/services/role.service"; import {catchError, concatAll, debounceTime, distinctUntilCh...
the_stack
import { html, styles } from './perception-toolkit.template.js'; import { Marker } from '../../../defs/marker.js'; import { PerceptionToolkitConfig, PerceptionToolkitElements, PerceptionToolkitEvents, PerceptionToolkitFunctions, } from '../../../perception-toolkit/defs.js'; import { ProbableTargets } from '../...
the_stack
import { dispatch, store } from "./AppRedux"; import { AppState } from "./AppState"; import { NodeCompContent } from "./comps/NodeCompContent"; import { NodeCompRowFooter } from "./comps/NodeCompRowFooter"; import { NodeCompRowHeader } from "./comps/NodeCompRowHeader"; import { Constants as C } from "./Constants"; impo...
the_stack
import * as $ from "jquery"; import {Component, ElementRef, NgZone, OnDestroy, ViewChild} from "@angular/core"; import {downgradeComponent} from "@angular/upgrade/static"; import {EtlService} from "../../core/services"; import {NotificationService} from "../../core/services/notification.service"; import {AgentService} ...
the_stack
import { options } from '@tko/utils'; import { observable, unwrap, isObservable } from '@tko/observable'; import { applyBindings } from '@tko/bind'; import { VirtualProvider } from '@tko/provider.virtual' import { bindings as coreBindings } from '@tko/binding.core'; import { Parser } from '../dist'; ...
the_stack
import React, { Fragment, useCallback, useEffect, useMemo, useState, } from 'react'; import { View, Animated, Easing, Text, ColorValue, ScrollView, } from 'react-native'; import {styles} from './styles'; import RenderBars from './RenderBars'; import RenderStackBars from './RenderStackBars'; import...
the_stack
import React, { cloneElement } from 'react'; import { act } from 'react-dom/test-utils'; import type { ReactWrapper } from 'enzyme'; import { mount } from 'enzyme'; import Portal from 'rc-util/lib/Portal'; import KeyCode from 'rc-util/lib/KeyCode'; import type { DialogProps } from '../src'; import Dialog from '../src';...
the_stack
import { PreTrie, ExplorerFileNestingTrie, SufTrie } from 'vs/workbench/contrib/files/common/explorerFileNestingTrie'; import * as assert from 'assert'; const fakeFilenameAttributes = { dirname: 'mydir', basename: '', extname: '' }; suite('SufTrie', () => { test('exactMatches', () => { const t = new SufTrie(); t...
the_stack
import { EventEmitter, Output, Component, Input } from '@angular/core'; import { VmdirService } from './vmdir.service'; import {StringFilter, DatagridFilter } from "clarity-angular"; import { UserAccountFilter, SimpleStringFilter} from './customstringfilter'; import { SDDLParser, AccountSidsRevMap, AceRightsRevMap } fr...
the_stack
type InsecureCredentials = Array<chrome.passwordsPrivate.InsecureCredential>; export type SavedPasswordListChangedListener = (entries: Array<chrome.passwordsPrivate.PasswordUiEntry>) => void; export type PasswordExceptionListChangedListener = (entries: Array<chrome.passwordsPrivate.ExceptionEntry>) => void; exp...
the_stack
import Graph from '../implement-graph'; const div = document.createElement('div'); div.id = 'global-spec'; document.body.appendChild(div); describe('graph node states', () => { const data = { nodes: [ { id: 'node1', x: 100, y: 100, }, { id: 'node2', x: 2...
the_stack
module CorsicaTests { "use strict"; var Keys = WinJS.Utilities.Key; function waitForScrollDone(element: HTMLElement) { return new WinJS.Promise(c => { element.addEventListener("MSManipulationStateChanged", function handler(e: MSManipulationEvent) { if (e.currentState !=...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormQueue_Information { interface tab_general_Sections { email_configuration: DevKit.Controls.Section; incoming_email: DevKit.Controls.Section; queue_information: DevKit.Controls.Section; } interface tab_general extend...
the_stack
import "dashjs/dist/dash.all.debug"; import assertNever from "assert-never"; import type dashjs from "dashjs"; import { around } from "monkey-around"; import { Vault } from "obsidian"; import Plyr from "plyr"; import { parse } from "query-string"; import MediaExtended from "../mx-main"; import { recToPlyrControls } f...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { HostPools } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { DesktopVirtualizationAPIClient } from "../des...
the_stack
import * as proxyquire from 'proxyquire'; import * as sinon from 'sinon'; import anyTest, { TestFn, ExecutionContext } from 'ava'; import { EventEmitter2 } from 'eventemitter2'; import { ElementFound, Engine, FetchEnd } from 'hint'; import { HTMLElement } from '@hint/utils-dom'; import { ScriptEvents, ScriptParse, No...
the_stack
import OSS, * as $OSS from '@alicloud/oss-client'; import OpenPlatform, * as $OpenPlatform from '@alicloud/openplatform20191219'; import RPCUtil from '@alicloud/rpc-util'; import RPC, * as $RPC from '@alicloud/rpc-client'; import OSSUtil, * as $OSSUtil from '@alicloud/oss-util'; import Util, * as $Util from '@alicloud/...
the_stack
import { Storage } from '../../../src'; import { LogMock } from '../../helper/logMock'; describe('Storage Tests', () => { let dummyStorageMethods; beforeEach(() => { LogMock.mockLogs(); dummyStorageMethods = { get: jest.fn(), remove: jest.fn(), set: jest.fn(), }; // https://cod...
the_stack
// IMPORTANT // This file was generated by https://github.com/Bolisov/google-api-typings-generator. Please do not edit it manually. // In case of any problems please post issue to https://github.com/Bolisov/google-api-typings-generator // Generated from: https://www.googleapis.com/discovery/v1/apis/sqladmin/v1beta4/res...
the_stack
module android.view { import Handler = android.os.Handler; import Message = android.os.Message; import MotionEvent = android.view.MotionEvent; import VelocityTracker = android.view.VelocityTracker; import View = android.view.View; import ViewConfiguration = android.view.ViewConfiguration; /** * Detects various gesture...
the_stack
import React from 'react'; import { shallow } from 'enzyme'; import { formatWeekdayAndDay } from '../../../view_model/to_test/views/utils/base'; import { VERTICAL_GROUP_ORIENTATION } from '../../../consts'; import { OrdinaryLayout } from '../ordinary_layout'; import { viewFunction as WorkSpaceLayout, WorkSpace, } f...
the_stack
import { HttpClient } from '@angular/common/http'; import { inject } from '@angular/core'; import { EntityService, EntityState, EntityStore, getEntityType, getIDType, isDefined } from '@datorama/akita'; import { isObservable, Observable, of, throwError } from 'rxjs'; import { catchError, finalize, switchMap, tap } from...
the_stack
import { expect } from "chai"; import { IModelConnection, SnapshotConnection } from "@itwin/core-frontend"; import { ChildNodeSpecificationTypes, Ruleset, RuleTypes } from "@itwin/presentation-common"; import { Presentation } from "@itwin/presentation-frontend"; import { initialize, terminate } from "../../../Integrati...
the_stack
const CURVE = { // Params: a, b a: 0n, b: 7n, // Field over which we'll do calculations P: 2n ** 256n - 2n ** 32n - 977n, // Curve order. Specifically, it belongs to prime-order subgroup; // but our curve is h=1, so other subgroups don't exist n: 2n ** 256n - 432420386565659656852420866394968145599n, ...
the_stack
import ts from 'typescript'; import {absoluteFrom as _, FileSystem, getFileSystem, getSourceFileOrError, NgtscCompilerHost, setFileSystem} from '../../file_system'; import {runInEachFileSystem} from '../../file_system/testing'; import {IncrementalBuildStrategy, NoopIncrementalBuildStrategy} from '../../incremental'; i...
the_stack
import { GaxiosPromise } from 'gaxios'; import { Compute, JWT, OAuth2Client, UserRefreshClient } from 'google-auth-library'; import { APIRequestContext, BodyResponseCallback, GlobalOptions, GoogleConfigurable, MethodOptions } from 'googleapis-common'; export declare namespace cloudprivatecatalogproducer_v1beta1 { i...
the_stack
module InteractiveDataDisplay { export interface ViewState { [name: string]: any; } export interface Titles { [seriesName: string]: string; } export interface PlotInfo { kind: string; displayName: string; titles?: Titles; [propertyName: string]: any; ...
the_stack
import { expect } from 'chai'; import { generate, simulate } from 'simulate-event'; import { JSONObject } from '@phosphor/coreutils'; import { CommandRegistry } from '@phosphor/commands'; import { DisposableSet } from '@phosphor/disposable'; import { Message, MessageLoop } from '@phosphor/messaging'; ...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/nodeReportsMappers"; import * as Parameters from "../models/parameters"; import { AutomationClientContext } from "../automationClientContext"; /** Class representing a NodeReports. */ export class Node...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormSalesLiterature_Information { interface tab_general_Sections { description: DevKit.Controls.Section; sales_literature_information: DevKit.Controls.Section; } interface tab_general extends DevKit.Controls.ITab { Sec...
the_stack
import React, { useEffect, useState } from "react"; import { Descriptions, Card, Checkbox, Col, Divider, Button, Affix, Anchor, Spin, message } from "antd"; import apis from "@/services"; import encodeQueryParam from "@/utils/encodeParam"; import { DimensionsSetting, DimensionsItem } from "@/pages/system/dimensions/dat...
the_stack
import FormData from 'form-data' import fetch, { Response } from 'node-fetch' import { Cache as CacheManager } from 'cache-manager' import type { Logger } from '@island.is/logging' import { PkPassPayload, PkPassServiceDriversLicenseResponse, PkPassServiceErrorResponse, PkPassServiceTokenResponse, PkPassServ...
the_stack
import * as React from "react"; import { CSSProperties, useEffect } from "react"; import { useRef } from "react"; import { useState } from "react"; import FloatingScrollbar, { ScrollbarApi } from "./FloatingScrollbar"; import { handleScrollKeys } from "./component-utils"; import ReactResizeDetector from "react-resize-d...
the_stack
module android.widget { import View = android.view.View; import ViewGroup = android.view.ViewGroup; import Button = android.widget.Button; import CompoundButton = android.widget.CompoundButton; import LinearLayout = android.widget.LinearLayout; import RadioButton = android.widget.RadioButton; import AttrBinder = an...
the_stack
import { tracked } from '@glimmer/tracking'; import WalletInfo from '../wallet-info'; import { Layer2Web3Strategy, TransactionHash, TxnBlockNumber, WithdrawalLimits, } from './types'; import { BridgedTokenSymbol, ConvertibleSymbol, ConversionFunction, } from '@cardstack/web-client/utils/token'; import RSV...
the_stack
export const MediaTypes: string[] = [ 'application/1d-interleaved-parityfec', 'application/3gpdash-qoe-report+xml', 'application/3gppHal+json', 'application/3gppHalForms+json', 'application/3gpp-ims+xml', 'application/A2L', 'application/ace+cbor', 'application/activemessage', 'applic...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [datasync](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsdatasync.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/refe...
the_stack
import type {Mutable, Proto, ObserverType} from "@swim/util"; import type {FastenerOwner, Fastener} from "../fastener/Fastener"; import type {AnyComponent, Component} from "./Component"; import {ComponentRelationInit, ComponentRelationClass, ComponentRelation} from "./ComponentRelation"; /** @internal */ export type C...
the_stack
import { expect } from "chai"; import "mocha"; import nock from "nock"; // import sinon from "sinon"; import AsyncPage from "../AsyncPage"; // import { AspectDefinition } from "../generated/registry/api"; import AuthRegistryClient from "../registry/AuthorizedRegistryClient"; import JsonConnector, { JsonConnectorO...
the_stack
type Integer = RegExp; type SchemaType = |String | Number | Integer | Boolean | Object | Array < any > | SchemaDefinition | Date | SimpleSchema | SimpleSchemaGroup; type SimpleSchemaGroup = { definitions: Array < { type: SchemaType } > }; interface CleanOption { filter?: boolean; autoConvert?: boolean; ...
the_stack
import Vue, { ComponentOptions, Component, AsyncComponent, DirectiveFunction, DirectiveOptions, PropOptions, ComputedOptions, WatchOptionsWithHandler, WatchHandler } from "vue" const _hasOwnProperty = Object.prototype.hasOwnProperty const _toString = Object.prototype.toString interface IAnyObj { [propName: ...
the_stack
export namespace TTF { type CodePoint = number; type Point = { x: number; y: number; onCurve: boolean; }; type Contour = Point[]; type Glyph = { contours: Contour[]; xMin: number; yMin: number; xMax: number; yMax: number; ad...
the_stack
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * Managers * __NOTE__: An instance of this class is automatically created for an * instance of the StorSimpleManagementClient. */ export interface Managers { ...
the_stack
import { fakeAsync, inject, TestBed, tick } from '@angular/core/testing'; import { SampleBusinessNetworkService } from './samplebusinessnetwork.service'; import { AlertService } from '../basic-modals/alert.service'; import { IdentityCardService } from './identity-card.service'; import { AdminService } from './admin.ser...
the_stack
import * as assert from 'assert'; import * as fs from 'fs-extra'; import rewire = require('rewire'); import * as sinon from 'sinon'; import { CancellationToken, Progress, ProgressOptions, window, workspace } from 'vscode'; import { Constants, RequiredApps } from '../../src/Constants'; import * as helpers from '../../sr...
the_stack
import type { Animation } from '../../../interface'; import type { GestureDetail } from '../../../utils/gesture'; import { createGesture } from '../../../utils/gesture'; import { clamp, raf } from '../../../utils/helpers'; import { getBackdropValueForSheet } from '../utils'; import { calculateSpringStep, handleCanDism...
the_stack
import { makeAutoObservable, observable, ObservableMap, runInAction, toJS, values, } from 'mobx'; import { ChannelEventUpdate, ChannelPoint, PendingChannelsResponse, } from 'types/generated/lnd_pb'; import { ChannelStatus } from 'types/state'; import Big from 'big.js'; import debounce from 'lodash/deb...
the_stack
* @module Tools */ // cSpell: ignore popout import * as React from "react"; import { IModelApp, IModelConnection, Tool } from "@itwin/core-frontend"; import { UiTestExtension } from "@itwin/ui-test-extension"; import { AbstractStatusBarItemUtilities, AbstractWidgetProps, BadgeType, CommonStatusBarItem, CommonTool...
the_stack
import { themer } from '@nativescript-community/ui-material-core'; import { TabContentItem } from '@nativescript-community/ui-material-core-tabs/tab-content-item'; import { TabsPosition } from '@nativescript-community/ui-material-core-tabs/tab-navigation/index-common'; import { TabNavigation, updateBackgroundPositions...
the_stack
import Vue$1, { VueConstructor, ComponentOptions, VNode } from 'vue'; declare type Data = { [key: string]: unknown; }; declare type ComponentPropsOptions<P = Data> = ComponentObjectPropsOptions<P> | string[]; declare type ComponentObjectPropsOptions<P = Data> = { [K in keyof P]: Prop<P[K]> | null; }; de...
the_stack
* We need to merge bootstraps methods to jquery so that * the compiler wont freak out. Thats why we need the * declaration below. */ /* tslint:disable:no-namespace interface-name */ declare global { interface JQuery { tooltip(): JQuery; modal(param?: string): JQuery; tab(param?: string): ...
the_stack
import {inject} from 'aurelia-dependency-injection'; import {ObserverLocator, BindingExpression} from 'aurelia-binding'; import { BoundViewFactory, TargetInstruction, ViewSlot, ViewResources, customAttribute, bindable, templateController, View, ViewFactory } from 'aurelia-templating'; import {RepeatSt...
the_stack
import CustomError from "../Error"; import {CallbackType, DeepPartial, ObjectType} from "../General"; import Internal from "../Internal"; const {internalProperties} = Internal.General; import {Model} from "../Model"; import {custom as customDefaults, original as originalDefaults} from "./defaults"; import utils from "....
the_stack
import { expectTypeOf } from 'expect-type'; import Maybe, { Variant, Nothing, Just, Matcher } from '../src/maybe'; import * as MaybeNS from '../src/maybe'; import Result, { err, ok } from '../src/result'; import { Unit } from '../src/unit'; type Neat = { neat: string }; const length = (s: string) => s.length; descri...
the_stack
// Copyright (c) 2019 Erin Catto // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, dist...
the_stack
import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import * as React from 'react'; import { stringSorter } from 'util/CommonSorters'; import { getRouterProps } from 'util/BookmarkableTestUtils'; import { usePageableData } from 'util/FunctionalComponentUtils'; import { CloseIcon, EditIcon, SaveIcon, ...
the_stack
import {Class, AnyTiming, Timing} from "@swim/util"; import {Affinity, MemberFastenerClass, Animator} from "@swim/component"; import {AnyLength, Length, Angle, Transform} from "@swim/math"; import {AnyColor, Color} from "@swim/style"; import {Look, Feel, MoodVector, ThemeMatrix, ThemeAnimator} from "@swim/theme"; impor...
the_stack
import { Feature, FeatureCollection, Point as GeoPoint, Position, } from "geojson"; import { BaseGlLayer, IBaseGlLayerSettings } from "./base-gl-layer"; import { ICanvasOverlayDrawEvent } from "./canvas-overlay"; import * as Color from "./color"; import { LeafletMouseEvent, Map, Point, LatLng } from "leaflet";...
the_stack
import { buildStringDecoder, decodeUTF8, decodeUTF8Short, Writer } from '@deepkit/bson'; import { BenchSuite } from '../bench'; import { performance } from 'perf_hooks'; import { GetOptimizationStatus } from '../utils'; function parseUtf8(buffer: Uint8Array, size: number): string { const coded = new Uint16Array(si...
the_stack
import * as React from 'react'; import * as ReactDOM from 'react-dom'; import Grid, { HeaderRepository, IHeader, ICellRendererEvent, IHeaderRendererEvent, HeaderType, ISelectionRendererEvent, ICellEditorEvent, IGridNullifyEvent, IGridUpdateEvent } from 'react-bolivianite-grid'; import Theme from '....
the_stack
import { State } from './state'; import { letterRe, digitRe, whitespaceRe, quoteRe, controlCharsRe } from '../regex-lib'; import { throwUnhandledCaseError } from '../utils'; // For debugging: search for other "For debugging" lines // import CliTable from 'cli-table'; /** * Parses an HTML string, calling the callback...
the_stack
import * as tf from '@tensorflow/tfjs-core'; import {test_util} from '@tensorflow/tfjs-core'; const {expectArraysClose} = test_util; // tslint:disable-next-line: no-imports-from-dist import {describeWithFlags, ALL_ENVS} from '@tensorflow/tfjs-core/dist/jasmine_util'; import {WebGLMemoryInfo} from '../backend_webgl'; ...
the_stack
import test from 'tape'; import nock from 'nock'; import toReadableStream from 'to-readable-stream'; import { default as hookStd } from 'hook-std'; import * as glob from '@actions/glob'; import sinon from 'sinon'; import { default as os, tmpdir } from 'os'; import { join as joinPath } from 'path'; import { writeFileS...
the_stack
module Fayde.Data { interface IParseData { index: number; i: number; end: number; path: string; parenOpen: boolean; tickOpen: boolean; prop: string; res: DependencyProperty; cloned: boolean; expressionFound: boolean; ...
the_stack
import { Component, OnInit, OnDestroy, Input, Output, ViewChild, EventEmitter } from '@angular/core'; import { FormBuilder } from '@angular/forms'; import { CustomValidators } from './../../shared/validation/validators'; import { ProductWithLinksVO, AttrValueProductVO, ProductOptionVO, ProductAssociationVO, BrandVO, Pr...
the_stack
import eeGeoWebGL from "../../../tmp/sdk/eeGeoWebGL"; import L from "leaflet"; import EmscriptenApi from "../../private/emscripten_api/emscripten_api"; import EmscriptenCameraApi from "../../private/emscripten_api/emscripten_camera_api"; import EmscriptenMemory from "../../private/emscripten_api/emscripten_memory"; im...
the_stack
import { MongoClient } from 'mongodb'; import * as httpMocks from 'node-mocks-http'; // tslint:disable-line no-implicit-dependencies import * as Redis from 'redis'; import * as Aclify from '../src'; ['Memory', 'Redis', 'MongoDB'].forEach((store: string) => { let acl: Aclify.Acl; let redis: Redis.RedisClient; let...
the_stack
import { CSSProperties, MouseEvent, ReactNode } from 'react' import flatten from 'flat' import escapeStringRegexp from 'escape-string-regexp' import { snakeCase } from 'snake-case' import fileImgExtensions from './file-extensions' import * as constants from './constants' export type UnknownObject<T = unknown> = Record...
the_stack
import { TxData, TxDataPayable } from "../../types"; import * as promisify from "tiny-promisify"; import { classUtils } from "../../../utils/class_utils"; import { Web3Utils } from "../../../utils/web3_utils"; import { BigNumber } from "../../../utils/bignumber"; import * as TransactionUtils from "../../../utils/transa...
the_stack
import { ClassNames } from "@emotion/core"; import React from "react"; import * as typography from "../typography"; import { colors } from "../colors"; import { assertUnreachable } from "../shared/assertUnreachable"; import { useSpaceKitProvider } from "../SpaceKitProvider"; type As = React.ReactElement | keyof JSX.In...
the_stack
import {setUpFoundationTest} from '../../../../testing/helpers/setup'; import {MDCChipActionAttributes, MDCChipActionEvents, MDCChipActionFocusBehavior, MDCChipActionInteractionTrigger, MDCChipActionType} from '../constants'; import {MDCChipActionFoundation} from '../foundation'; class SelectableMDCChipActionFoundatio...
the_stack
import { IApplicationState, IMapView, UnitOfMeasure, getCurrentView, IExternalBaseLayer, Coordinate2D, ILayerInfo, getExternalBaseLayers, InitError, IBranchedMapSubState, getSelectionSet, INameValuePair, ActiveMapTool, ClientKind, ImageFormat, MapLoadIndicatorPositioning, IViewerCapabilities } from '../api/common'; imp...
the_stack
import $ from "jquery"; import "../css/jquery-ui.css"; import "../css/stylesheet.css"; import List from "./List"; import About from "./About"; import Tools from "./Tools"; import Load from "./Load"; import Save from "./Save"; import Settings from "./Settings"; import Editor from "./Editor"; import Palette from "./Pale...
the_stack
import { TSError, trim, isRegExpLike } from '@terascope/utils'; import { xLuceneFieldType, xLuceneTypeConfig, xLuceneVariables } from '@terascope/types'; import { parse } from './peg-engine'; import * as i from './interfaces'; import * as utils from './utils'; const termTypes = new Set(utils.termTypes.filt...
the_stack
import { clamp, ColorHSL, ColorLAB, ColorRGBA64, hslToRGB, interpolateRGB, labToRGB, rgbToHSL, rgbToLAB, roundToPrecisionSmall, } from '@microsoft/fast-colors'; import { isSwatchRGB, Swatch, SwatchRGB } from './swatch'; import { binarySearch } from './utilities/binary-search'; import { directionByIs...
the_stack
import { computed } from "mobx" import { getSnapshot, idProp, model, Model, modelAction, modelFlow, modelIdKey, prop, Ref, registerRootStore, rootRef, UndoEvent, UndoManager, undoMiddleware, UndoStore, withoutUndo, _async, _await, } from "../../src" import "../commonSetup" import { a...
the_stack
declare type PropertyKey = string | number | symbol; interface Array<T> { /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it find...
the_stack
import { DataTypeEncoder } from './testing-api'; import { DeepComparer } from './testing-api'; import { DataTypeParser } from './testing-api'; import { HookFinder } from './testing-api'; // These tests mostly only test the lines/branches that aren't already covered by core.spec.ts /** * DataTypeEncoder tests */ des...
the_stack
import { asyncOperation, ClassType, toFastProperties } from '@deepkit/core'; import { BehaviorSubject, Observable, Subject, Subscriber } from 'rxjs'; import { skip } from 'rxjs/operators'; import { Collection, CollectionQueryModelInterface, CollectionState } from '../collection'; import { ActionObservableTypes, ...
the_stack
import * as path from 'path'; import * as url from 'url'; import * as sinon from 'sinon'; import { EventEmitter2 } from 'eventemitter2'; import test from 'ava'; import { loadJSONFile, readFile } from '@hint/utils-fs'; import { getAsUri } from '@hint/utils-network'; import { Engine } from 'hint'; import { FetchEnd } f...
the_stack
import { fireEvent, render } from '@testing-library/react'; import React from 'react'; import { MeridiemType, TimePicker } from './TimePicker'; it('should display passed time', () => { const { container } = render( <TimePicker date={new Date(2020, 0, 5, 11, 55)} />, ); expect(container.querySelector('.iui-ti...
the_stack
import * as shell from "shelljs"; import { SNSAdapter } from "./sns-adapter"; import * as express from "express"; import * as cors from "cors"; import * as bodyParser from "body-parser"; import { ISNSAdapter } from "./types"; import { SNSServer } from "./sns-server"; import * as _ from "lodash"; import * as AWS from "...
the_stack
import { h, Fragment, mount, mountEvent, onMount, onUnmount, unmount, unmountEvent } from "./index" import * as H from "./index" import { renderAsString, getHtml, mounted, testRender } from "./test-utils" import { HarmajaOutput } from "./harmaja" import * as O from "./test-utils" function body() { let body = <body...
the_stack
import { PaymentMethod } from '@linode/api-v4'; import { makePayment } from '@linode/api-v4/lib/account'; import { APIWarning } from '@linode/api-v4/lib/types'; import classNames from 'classnames'; import { useSnackbar } from 'notistack'; import * as React from 'react'; import makeAsyncScriptLoader from 'react-async-sc...
the_stack
import _ from 'lodash' import R from 'ramda' import path from 'path' import Promise from 'bluebird' import deepDiff from 'return-deep-diff' import errors from './errors' import scaffold from './scaffold' import { fs } from './util/fs' import keys from './util/keys' import origin from './util/origin' import * as settin...
the_stack
import { Key, Converter, QueryInput } from 'aws-sdk/clients/dynamodb'; import fromPairs from 'lodash/fromPairs'; import { WrappedDocument, DocumentWithId } from '../base/common'; import { Context } from '../context'; import { unwrap, getCollection, getChildCollection, assemblePrimaryKeyValue, } from '../base/ut...
the_stack
import { Arc3d } from "../curve/Arc3d"; import { GeometryQuery } from "../curve/GeometryQuery"; import { LineString3d } from "../curve/LineString3d"; import { Geometry } from "../Geometry"; import { Angle } from "../geometry3d/Angle"; import { GrowableFloat64Array } from "../geometry3d/GrowableFloat64Array"; import { L...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace Formmsdyn_estimateline_Information { interface tab__D8123BFE_186B_4FAF_8ECE_48DD82A8DCE9_Sections { ActivityGroup: DevKit.Controls.Section; AmountGroup: DevKit.Controls.Section; BillingGroup: DevKit.Controls.Section; Da...
the_stack
import { INodeProperties, } from 'n8n-workflow'; import * as placeholders from './placeholders'; export const documentOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', type: 'options', displayOptions: { show: { resource: [ 'document', ], }, }, options: [...
the_stack
import { ExplorerApi } from "."; export type ExecutionStatus = | "NotStarted" | "Started" | "Failure" | "SuccessValue"; export interface TransactionBaseInfo { hash: string; signerId: string; receiverId: string; blockHash: string; blockTimestamp: number; transactionIndex: number; actions: Action[...
the_stack
type Options = { ignoreChildren?: boolean; whitelist?: { stylesheet?: string; media?: string }; blacklist?: { stylesheet?: string; media?: string }; document: { styleSheets: {}; }; }; type StyleSheet = any; export type MatchedCSS = { [key: number]: { before?: string; selectors?: string[]; ...
the_stack
'use strict'; import {IDisposable} from 'vs/base/common/lifecycle'; import * as editorCommon from 'vs/editor/common/editorCommon'; import {LinesLayout} from 'vs/editor/common/viewLayout/linesLayout'; import {ViewEventHandler} from 'vs/editor/common/viewModel/viewEventHandler'; import {ScrollManager} from 'vs/editor/br...
the_stack
import Cell from '../view/cell/Cell'; import MaxPopupMenu from '../gui/MaxPopupMenu'; import { getTextContent } from '../util/domUtils'; import Translations from '../util/Translations'; import Editor from './Editor'; import CodecRegistry from '../serialization/CodecRegistry'; import ObjectCodec from '../serialization/O...
the_stack