text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import i18next from "i18next"; import RequestErrorEvent from "terriajs-cesium/Source/Core/RequestErrorEvent"; import Resource from "terriajs-cesium/Source/Core/Resource"; import TileProviderError from "terriajs-cesium/Source/Core/TileProviderError"; import ImageryProvider from "terriajs-cesium/Source/Scene/ImageryProvi...
the_stack
import { createStore, createEvent, createDomain, allSettled, combine, fork, hydrate, serialize, sample, createEffect, attach, } from 'effector' it('serialize stores to object of sid as keys', () => { const $a = createStore('value', {sid: 'a'}) const $b = createStore([], {sid: 'b'}) const $c...
the_stack
import * as Immutable from "immutable"; import * as _ from "lodash"; import { Base } from "./base"; import { Index, index } from "./index"; import { Key } from "./key"; import { Time, time } from "./time"; import { TimeRange, timerange } from "./timerange"; import { ReducerFunction, ValueListMap, ValueMap } from "./t...
the_stack
import React, { Component } from 'react'; import Paper from '@material-ui/core/Paper'; import { withLocation, withNavigation } from '../../lib/routeUtil'; import { registerComponent } from '../../lib/vulcan-lib'; import { withUpdateCurrentUser, WithUpdateCurrentUserProps } from '../hooks/useUpdateCurrentUser'; import {...
the_stack
import * as React from 'react'; import copy from './copy'; import * as util from './util'; import { ControllerImpl } from './controller'; import {vm} from './vm'; import DEBUG from '../debug'; const ROOT_SELECTOR = '.edit-text'; // TODO This should be a type exported from Rust using // wasm-typescript-definition. ty...
the_stack
import React, { PureComponent, ReactElement } from 'react' import { Animated, Image, StyleSheet, PanResponder, View, Text, PanResponderInstance, ImageSourcePropType, Platform, ViewStyle, RegisteredStyle } from 'react-native' import variables from '../../common/styles/variables' import sliderStyles...
the_stack
import * as coreClient from "@azure/core-client"; /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ export interface OperationListResult { /** * List of operations supported by the resource provider * NOTE: This property will n...
the_stack
import * as napa from "../lib/index"; import * as assert from 'assert'; import * as path from 'path'; import * as t from './napa-zone/test'; describe('napajs/transport', () => { let napaZone = napa.zone.create('zone10'); describe('TransportContext', () => { let tc = napa.transport.createTransportContex...
the_stack
import React, { FC, KeyboardEvent as ReactKeyboardEvent, MouseEvent, useCallback, useEffect, useState } from "react"; import { Hit, Links, ValueHitField } from "@scm-manager/ui-types"; import styled from "styled-components"; import { useSearch } from "@scm-manager/ui-api"; import classNames from "classnames"; import { ...
the_stack
import { findRedirect, getRandStr, resolvePageRoute, setStoreItem, sleep, TCCSVersion, TDefaultPageName, TPackageCromwellConfig, } from '@cromwell/core'; import { BasePageEntity, cmsPackageName, getCmsEntity, getCmsInfo, getCmsModuleInfo, getCmsSettings, getLo...
the_stack
import { Assert, AITestClass } from "@microsoft/ai-test-framework"; import { ITelemetryItem, AppInsightsCore, IPlugin, IConfiguration, DiagnosticLogger, IAppInsightsCore, ITelemetryPluginChain, doPerf, EventsDiscardedReason, INotificationManager, IPerfEvent} from '@microsoft/applicationinsights-core-js'; import { PerfM...
the_stack
import { GlobalCarrier, ExternalArgs } from "../interfaces"; import { getKeyStart, getKeyLength } from "./hashmapUtils"; import { stringEncodeInto } from "../stringEncodeInto"; import { compareStringOrNumberEntriesInPlace, readNumberOrString, } from "../store"; import { ENTRY_TYPE } from "../entry-types"; import { ...
the_stack
import { rsDecode } from './reedsolomon'; import { BitMatrix } from '../BitMatrix'; import { Version, VERSIONS } from './version'; import { bytesDecode, DecodeResult } from './decode'; import { getMaskFunc } from '../../common/MaskPattern'; import { ErrorCorrectionLevel } from '../../common/ErrorCorrectionLevel'; expo...
the_stack
import debounce from 'lodash-es/debounce'; import Vue, { PropType } from 'vue'; import Delete16 from '@carbon/icons-vue/es/delete/16'; import Download16 from '@carbon/icons-vue/es/download/16'; import Settings16 from '@carbon/icons-vue/es/settings/16'; import createVueBindingsFromProps from '../../../.storybook/vue/cre...
the_stack
import { Animatible, getAnimatibleName, AnimationEaseCurves, AnimationProp, AnimationWrapMode, AssetContainer, Context, EaseCurve, Guid, Track } from '..'; import { ExportedPromise, Like, Patchable, readPath } from '../internal'; import { AnimationInternal } from './animationInternal'; /** Options for [[...
the_stack
export const None = Symbol("None"); export type Option<T> = ((s: (val: T) => T) => T) | typeof None; export type Some<T> = (val: T) => Option<T>; export const Some: <T>(val: T) => Option<T> = (val) => (s) => s(val); export type Result<T, E> = (o: (val: T) => E, s: (val: symbol) => E) => E; export type Err<T> = T; exp...
the_stack
import React from 'react'; import { ReactD3GraphViz } from '@hikeman/react-graphviz'; import { Row, Col, Card, Popover, Button, Divider, Progress, Modal, Tooltip} from 'antd'; import axios from 'axios'; import { config } from 'ice'; import { GraphvizOptions } from 'd3-graphviz'; import GenerateSchema from 'generate-sch...
the_stack
import * as React from "react"; import { useState } from "react"; import ServiceAndRequest from "./ServiceAndRequest"; import Messages from "./Messages"; import Setup from "./Setup"; import * as pbActions from "../../lib/local/pbActions"; import { Trie } from "../utils/trieClass"; import { parseService } from "../utils...
the_stack
import { getTypeAccessorError } from "./utils/errors"; import { Dict, NNil, Maybe, ReturnType } from "./utils/util-types"; import { transform, forEach, reduce } from "lodash"; import * as t from "io-ts"; import * as types from "./utils/types"; import * as Knex from "knex"; import _debug from "debug"; import { GraphQLIn...
the_stack
module es { export enum LoopType { none, restartFromBeginning, pingpong } export enum TweenState { running, paused, complete } export abstract class Tween<T> implements ITweenable, ITween<T> { protected _target: ITweenTarget<T>; prote...
the_stack
/* * --------------------------------------------------------- * Copyright(C) Microsoft Corporation. All rights reserved. * --------------------------------------------------------- * * --------------------------------------------------------- * Generated file, DO NOT EDIT * ------------------------------------...
the_stack
import { NodePath, types as t, builders as b, utils as u, is, Scope } from 'estree-toolkit'; import { builtinModules } from 'module'; const hasProp = (prop: string, obj: Record<string, unknown>) => ( Object.prototype.hasOwnProperty.call(obj, prop) ) const isRequireFunc = (node: t.CallExpression, scope: Scope) => (...
the_stack
import fs from 'fs'; import path from 'path'; import { globalBeforeEach } from '../../../../__jest__/before-each'; import { database as db } from '../../../../common/database'; import { selectFileOrFolder } from '../../../../common/select-file-or-folder'; import * as models from '../../../../models'; import * as modal...
the_stack
import * as pulumi from "@pulumi/pulumi"; /** * A collection of Containers */ export interface Containers { [name: string]: Container; } export type HostOperatingSystem = "linux" | "windows"; /** * HostProperties describes the kind of host where a service or task can run. */ export interface HostProperties {...
the_stack
import auth = require('./auth') import callbacks = require('./callbacks'); import childProcess = require('child_process'); import crypto = require('crypto'); import fs = require('fs'); import http = require('http'); import httpProxy = require('http-proxy'); import idleTimeout = require('./idleTimeout'); import logging ...
the_stack
import * as fs from "fs"; import {ProxyType} from "./bst-proxy"; import {LoggingHelper} from "../core/logging-helper"; import {LambdaConfig} from "./lambda-config"; import {SourceNameGenerator} from "../external/source-name-generator"; import {SpokesClient} from "../external/spokes"; import {BstMessages} from "../exter...
the_stack
* #%L * %% * Copyright (C) 2020 BMW Car IT GmbH * %% * 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 applica...
the_stack
import { Linter, LinterOptions, ProgramFactory } from './linter'; import { LintResult, FileSummary, Configuration, AbstractProcessor, DirectoryService, ConfigurationError, MessageHandler, FileFilterFactory, Severity, } from '@fimbul/ymir'; import * as path from 'path'; import * as ts...
the_stack
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** * The resource model definition representing SKU */ export interface Sku { /** * The name of the HealthBot SKU. Possible values in...
the_stack
import { krakenPrint } from './bridge'; const SEPARATOR = ' '; const INTERPOLATE = /%[sdifoO]/g; const DIMENSIONS = 3; const INDENT = ' '; const times = {}; const counts = {}; const INDEX = '(index)'; const VALUE = '(value)'; const PLACEHOLDER = ' '; // empty placeholder let groupIndent = ''; function printer(messag...
the_stack
import { LOCALE_ID } from '@angular/core'; import { createHostFactory, SpectatorHost } from '@ngneat/spectator'; import { format, startOfDay, startOfMonth } from 'date-fns'; import { zonedTimeToUtc } from 'date-fns-tz'; import { MockComponent } from 'ng-mocks'; import { CalendarComponent, IconComponent } from '..'; im...
the_stack
import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, EventEmitter, Injector, Input, OnChanges, OnDestroy, OnInit, Output } from '@angular/core'; import {MomentDatePipe} from '@common/pipe/moment.date.pipe'; import {AbstractComponent} from '@common/component/abstract.component'; import...
the_stack
import { CategoryType } from '../categoriesList'; export interface Component { name: string; title: string; url: string; categories: CategoryType[]; keywords: string[]; } // TODO review and come up with a better approach for urls // maybe we need to have enum with all routes like we had before? export const...
the_stack
import { query as q } from 'faunadb'; import { FactoryIndexesApi } from '~/types/factory/factory.indexes'; import { FactoryContext } from '~/types/factory/factory.context'; import { pathString } from '~/helpers/path'; import { index } from '.'; import { BiotaIndexName } from '~/factory/constructors'; import { ThrowErro...
the_stack
import { createElement, remove } from '@syncfusion/ej2-base'; import { Chart } from '../../../src/chart/chart'; import { getElement } from '../../../src/common/utils/helper'; import { DataLabel } from '../../../src/chart/series/data-label'; import { Legend } from '../../../src/chart/legend/legend'; import { ColumnSerie...
the_stack
import "mocha"; import {expect} from "chai"; import {parseBibFile} from "../src/bibfile/BibFile"; import {isOuterQuotedString, OuterQuotedString, QuotedString} from "../src/bibfile/datatype/string/QuotedString"; import {isNumber, mustBeArray, mustBeDefined} from "../src/util"; import {BibEntry, EntryFields} from "../s...
the_stack
let appScript = { info: { totalResults: ['大约有','約','About','大約有'], totalResults1: ['条记录','件','results','條記錄'], moreResults: ['更多结果','結果をさらに表示','More Results','更多結果'], searchToolBarMenu: [ [ '网站','ウェイブ','Website','網頁' ],[ '新闻','ニュース','News','新聞' ],[ '图片','画像','Picture','圖片' ],[ '视频',...
the_stack
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext' import Database from '@ioc:Adonis/Lucid/Database' import Customer from 'App/Models/Customer' import CustomerTitle from 'App/Models/CustomerTitle' import CustomerValidator from 'App/Validators/CustomerValidator' import { ADDRESS_TYPE } from 'types/custom...
the_stack
describe('Inputs', () => { before(() => { cy.visit('/inputs'); cy.injectAxe(); cy.get('.page-loader').should('not.exist', { timeout: 20000 }); }); it('Check A11y', () => { cy.get('ngx-input').withinEach($el => { cy.checkA11y($el, { rules: { 'color-contrast': { enabled: fal...
the_stack
// Copyright (c) 2015 Vadim Macagon // MIT License, see LICENSE file for full terms. export enum TargetStopReason { /** A breakpoint was hit. */ BreakpointHit, /** A step instruction finished. */ EndSteppingRange, /** A step-out instruction finished. */ FunctionFinished, /** The target finished executin...
the_stack
import 'fake-indexeddb/auto'; import { decodeTime } from 'ulid'; import uuidValidate from 'uuid-validate'; import Observable from 'zen-observable-ts'; import { DataStore as DataStoreType, initSchema as initSchemaType, } from '../src/datastore/datastore'; import { Predicates } from '../src/predicates'; import { Exclus...
the_stack
export type rolesValueItemType = { hidden: number, icon?: string, id: number, level: number, name: string, parentId: number, sort?: number, title?: string, } export type rolesType = { [s: string]: rolesValueItemType[] } const roles: rolesType = { admin: [ { hidden: 1, icon: "vitezuj...
the_stack
import { ChangeDetectorRef } from '@angular/core'; import { createComponentFactory, createHostFactory, Spectator, SpectatorHost, } from '@ngneat/spectator'; import { TestHelper } from '../../testing/test-helper'; import { ProgressCircleRingComponent } from './progress-circle-ring.component'; import { Progress...
the_stack
import BinomialNode from './binomial-node' import * as utils from '../../utils' /******************************************************************************* * A binomial heap is a forest of binomial trees. * * A binomial tree of degree 0 is a single node. * A binomial tree of degree k has a root node with k ch...
the_stack
interface IOutIsValid { IsValid: boolean; } interface IType { } class DependencyProperty { static UnsetValue = {}; private static _IDs: DependencyProperty[] = []; private static _LastID: number = 0; _ID: number; Name: string; GetTargetType: () => IType; OwnerType: any...
the_stack
import { Component, OnInit, Output, EventEmitter, OnDestroy } from '@angular/core'; import {ActivatedRoute, Router} from '@angular/router'; import {Subscription} from 'rxjs/Subscription'; import {WorkflowService} from '../../../../core/services/workflow.service'; import {LoggerService} from '../../../../shared/services...
the_stack
import {TokenRange} from './Parsec'; import {SubstIn} from './Kit'; import * as K from './Kit'; import * as UT from 'utility-types'; export interface NodeBase { type: string; range: TokenRange; } export interface CharNode extends NodeBase { type: 'Char'; value: string; } export interface DotNode extends Node...
the_stack
import {KeyStore, Signer} from "../../../types/ExternalInterfaces"; import {TezosNodeReader} from "../TezosNodeReader"; import {TezosNodeWriter} from "../TezosNodeWriter"; import * as TezosTypes from "../../../types/tezos/TezosChainTypes"; import {TezosContractUtils} from './TezosContractUtils'; import {ConseilQueryBui...
the_stack
export interface A { readonly name: string } export interface B { readonly id: number } export namespace N { /** get */ const v1: string; /** get */ const f1: (value: string) => number; /** get */ const f2: <T>(value: T) => number; /** get */ const f3: <T>(value: string) => T; /** ...
the_stack
import { WcCustomAction, WcCustomActionCase, WcCustomActionGrid, WcCustomActionShowMode } from '../../types/other'; import { MpEvent, MpViewContext, MpViewContextAny } from '../../types/view'; import { WeComponent } from '../mixins/component'; import { getCustomActions } from '../modules/custom-action'; import EbusMixi...
the_stack
import { Market, Order } from 'ccxt'; import * as moment from 'moment'; import { logger } from '@src/logger'; import { Influx } from '@core/Influx/Influx'; import { MEASUREMENT_INPUTS } from '@core/Influx/constants'; import { EnvConfig, Env } from '@core/Env/Env'; import { CandleSet } from '@core/Env/CandleSet'; import...
the_stack
import * as types from '@babel/types' import { ComponentPluginFactory, ComponentPlugin, ChunkType, FileType, PluginStyledComponent, } from '@teleporthq/teleport-types' import { UIDLUtils, StringUtils } from '@teleporthq/teleport-shared' import { ASTUtils } from '@teleporthq/teleport-plugin-common' import { ...
the_stack
import * as path from 'path'; import * as fs from 'fs-extra'; import chalk from 'chalk'; import webpack, { MultiStats } from 'webpack'; import { Logger } from 'npmlog'; import { AggregatedResult } from '@jest/test-result'; import { GlobalConfig } from '@jest/types/build/Config'; import * as fg from 'fast-glob'; import ...
the_stack
const {ccclass, property} = cc._decorator; class RenderBuff { texture: cc.RenderTexture = null; spriteFrame: cc.SpriteFrame = null; cameraNode: cc.Node = null; camera: cc.Camera = null; /** * 创建一个用于计算的RenderBuff(采样方式是邻近像素) * @param width * @param height * @returns...
the_stack
import * as THREE from 'three'; // @ts-ignore import julian from 'julian'; import { Ephem } from './Ephem'; import { EphemerisTable } from './EphemerisTable'; import { rescaleArray, rescaleXYZ } from './Scale'; import type { Coordinate3d } from './Coordinates'; import type { LineBasicMaterial } from 'three'; export...
the_stack
// import { ZodUndefined } from './undefined'; // import { ZodNull } from './null'; // import { ZodUnion } from './union'; import { objectUtil } from "../helpers/objectUtil.ts"; // import { mergeShapes } from "../helpers/objectUtil/merge"; import { partialUtil } from "../helpers/partialUtil.ts"; import { Scalars } from...
the_stack
import {options} from './options'; import * as colour from './colour'; import * as local from './local'; import {themes, Themes} from './themes'; import {AppTheme, ColourScheme, ColourSchemeInfo} from './colour'; import {Hub} from './hub'; import {EventHub} from './event-hub'; export type FormatBase = 'Google' | 'LLVM...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormEntry_Edit_Form { interface tab__9C558780_D2CE_4E55_8FDD_37082D8196BE_Sections { notes: DevKit.Controls.Section; } interface tab__AE8B7CDD_484B_49A8_A00D_C201927D5729_Sections { } interface tab__9C558780_D2CE_4E55_8F...
the_stack
import { Octokit } from "@octokit/rest"; import { OctokitResponse } from "@octokit/types"; import { beforeAll, expect, jest, test } from "@jest/globals"; import { git, gitConfig } from "../lib/git"; import { GitHubGlue, IGitHubUser, IPullRequestInfo } from "../lib/github-glue"; /* This test requires setup. It will ru...
the_stack
import { AfterContentInit, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ElementRef, Input, OnInit, Renderer2, ViewChild, ViewEncapsulation, ContentChildren, QueryList, NgZone, Directive, OnDestroy, HostListener, HostBinding, Optional, Self...
the_stack
import * as vscode from '@vscode/debugadapter' import { DebugProtocol as VSCodeDebugProtocol } from '@vscode/debugprotocol' import * as net from 'net' import * as xdebug from './xdebugConnection' import moment = require('moment') import * as url from 'url' import * as childProcess from 'child_process' import * as path ...
the_stack
import { testTokenization } from '../test/testRunner'; testTokenization('postiats', [ // Keywords [ { line: 'implement main(argc, argv) =', tokens: [ { startIndex: 0, type: 'keyword.pats' }, { startIndex: 9, type: '' }, { startIndex: 10, type: 'identifier.pats' }, { startIndex: 14, type: 'del...
the_stack
import { useReducer, useState } from "react"; import type { Dispatch } from "react"; import type { NewLeagueTeam } from "./types"; import type { Conf, Div, View } from "../../../common/types"; import classNames from "classnames"; import { arrayMoveImmutable } from "array-move"; import orderBy from "lodash-es/orderBy"; ...
the_stack
import { expect } from 'chai'; import fetch from 'node-fetch'; import { Application, middlewareCall, MemoryRequest, Context } from '../src'; import * as fs from 'fs'; import { Writable } from 'stream'; describe('Application', () => { it('should instantiate', () => { const application = new Application(); exp...
the_stack
import { LiskValidationError } from '@liskhq/lisk-validator'; import { EventEmitter2, ListenerFn } from 'eventemitter2'; import { Dealer, Router, Subscriber } from 'zeromq'; import { Logger } from '../logger'; import { ActionInfoForBus, ChannelType } from '../types'; import { Action } from './action'; import { BaseChan...
the_stack
import settings from 'carbon-components/es/globals/js/settings'; import { classMap } from 'lit-html/directives/class-map'; import { TemplateResult } from 'lit-html'; import { ifDefined } from 'lit-html/directives/if-defined'; import { html, property, query, customElement, LitElement } from 'lit-element'; import Chevron...
the_stack
const DEFAULT_DENO_VERSION = 'v1.14.3'; import fs from 'fs'; import yn from 'yn'; import { dirname, join, relative, resolve } from 'path'; import { tmpdir } from 'os'; import { spawn } from 'child_process'; import { Readable } from 'stream'; import once from '@tootallnate/once'; import { BuildOptions, Config, Files...
the_stack
import { EdgeMaterial, ExtrusionFeatureDefs, FadingFeature, MixinShaderProperties, UniformsType } from "@here/harp-materials"; import { chainCallbacks } from "@here/harp-utils"; import * as THREE from "three"; import { DepthPrePassProperties } from "../DepthPrePass"; const vertexShaderChunk = ` #i...
the_stack
import { defineComponent, h, ref, Ref, computed, Teleport, VNode, onUnmounted, reactive, nextTick, PropType, onMounted } from 'vue' import XEUtils from 'xe-utils' import GlobalConfig from '../../v-x-e-table/src/conf' import { useSize } from '../../hooks/size' import { getAbsolutePos, getEventTargetNode } from '../../to...
the_stack
'use strict'; import * as assert from 'assert'; import URI from 'vs/base/common/uri'; import { isMacintosh, isLinux } from 'vs/base/common/platform'; import { OutputLinkComputer } from 'vs/workbench/parts/output/common/outputLinkComputer'; import { TestContextService } from 'vs/workbench/test/workbenchTestServices'; ...
the_stack
import { describe, expect, it } from 'vitest' class TestError extends Error {} // For expect.extend interface CustomMatchers<R = unknown> { toBeDividedBy(divisor: number): R } declare global { namespace Vi { interface JestAssertion extends CustomMatchers {} interface AsymmetricMatchersContaining extends C...
the_stack
import Divider from '@material-ui/core/Divider'; import Drawer from '@material-ui/core/Drawer'; import IconButton from '@material-ui/core/IconButton'; import List from '@material-ui/core/List'; import { useTheme } from '@material-ui/core/styles'; import { Breakpoint } from '@material-ui/core/styles/createBreakpoints'; ...
the_stack
import {ComponentHarness, HarnessLoader, HarnessPredicate, parallel} from '@angular/cdk/testing'; import {createFakeEvent, dispatchFakeEvent} from '../../../cdk/testing/private'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, Type} from '@angular/core'; import {ComponentFixtu...
the_stack
import * as arrayUtil from "dojo/_base/array"; import * as config from "dojo/_base/config"; import * as declare from "dojo/_base/declare"; import * as Deferred from "dojo/_base/Deferred"; import * as lang from "dojo/_base/lang"; import * as cookie from "dojo/cookie"; import * as QueryResults from "dojo/store/util/Query...
the_stack
import { ParserSymbol } from './parsertokens/ParserSymbol'; import { Token } from './parsertokens/Token'; import { PrimitiveElement } from './PrimitiveElement'; import { Expression } from './Expression'; import { java } from 'j4ts/j4ts'; import { javaemul } from 'j4ts/j4ts'; import { FunctionConstants } from './Functio...
the_stack
import * as chai from "chai" import axios from "axios" import * as sinon from "sinon" import { BITBOX } from "../../lib/BITBOX" import { Blockchain } from "../../lib/Blockchain" import { REST_URL } from "../../lib/BITBOX" import * as util from "util" import { BlockHeaderResult } from "bitcoin-com-rest" const mockData ...
the_stack
import { encodeStringValue } from "../../tools/encoding"; import { generateUUID } from "../../tools/uuid"; import { EntryLegacyHistoryItem, EntryID, EntryPropertyType, FormatAEntry, FormatAGroup, FormatAVault, GroupID } from "../../types"; interface FormatACommandArgument { test: RegExp...
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 appstate_v1 { interface Options extends...
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 Marketplac...
the_stack
import rule from '../../src/rules/plugin-test-formatting'; import { RuleTester } from '../RuleTester'; const ruleTester = new RuleTester({ parser: '@typescript-eslint/parser', parserOptions: { sourceType: 'module', }, }); const CODE_INDENT = ' '; const PARENT_INDENT = ' '; function wrap(strings:...
the_stack
import { dirname, join } from 'path'; import { promisify } from 'util'; import { copy } from 'fs-extra'; import * as inquirer from 'inquirer'; import * as mkdirp from 'mkdirp'; import { logger, isOfficial } from '@hint/utils'; import { cwd, readFile, writeFileAsync } from '@hint/utils-fs'; import ...
the_stack
import * as React from "react" import { scaleThreshold, scaleLinear, ScaleLinear } from "d3-scale" import { interpolateLab } from "d3-interpolate" import classnames from "classnames" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { faInfoCircle } from "@fortawesome/free-solid-svg-icons/faInfoC...
the_stack
import { calcBasePosition, calcStartPosition, getFontSize, } from "../internal/canvases"; import type { ColorDef } from "../ts-types"; import type { PaddingOption } from "../internal/canvases"; const { ceil, PI } = Math; export function strokeColorsRect( ctx: CanvasRenderingContext2D, borderColors: [ Col...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormSocial_Profile { interface Header extends DevKit.Controls.IHeader { /** Identifies where the social profile originated from, such as Twitter, or Facebook. */ Community: DevKit.Controls.OptionSet; /** Shows the score th...
the_stack
import { AxiosRequestConfig } from 'axios'; import BigNumber from 'bignumber.js'; import { tronBroadcast } from '../blockchain'; import { axios, validateBody } from '../connector/tatum'; import { TATUM_API_URL } from '../constants'; import { listing } from '../contracts/marketplace'; import abi from '../contracts/trc20...
the_stack
import RadioProvider from "../../../generated/joynr/vehicle/RadioProvider"; import RadioStation from "../../../generated/joynr/vehicle/radiotypes/RadioStation"; import Country from "../../../generated/joynr/datatypes/exampleTypes/Country"; import ProviderOperation from "../../../../main/js/joynr/provider/ProviderOperat...
the_stack
'use strict'; import * as assert from 'assert'; import {BinaryKeybindings, KeyCode, KeyMod} from 'vs/base/common/keyCodes'; import {IOSupport, KeybindingResolver, NormalizedKeybindingItem} from 'vs/platform/keybinding/common/keybindingResolver'; import {IKeybindingItem} from 'vs/platform/keybinding/common/keybinding';...
the_stack
import type { SortComparator, QueryMatcher } from 'event-reduce-js'; import type { BulkWriteLocalRow, BulkWriteRow, ChangeStreamEvent, ChangeStreamOnceOptions, PreparedQuery, RxDocumentData, RxLocalDocumentData, RxLocalStorageBulkWriteResponse, RxStorageBulkWriteResponse, ...
the_stack
export const enum FieldFlags { // bottom 2 bits encode field type Type = 3, Property = 0, Attribute = 1, Ignore = 2, Assign = 3 } export type FieldData = [ string, string | null, FieldFlags ]; const // pre-seed the caches with a few special cases, so we don't need to check for ...
the_stack
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewEncapsulation } from '@angular/core'; import { Observable, of as observableOf, Subscription } from 'rxjs'; import { HostWindowService } from '../host-window.service'; import { HostWind...
the_stack
import transform from 'lodash/transform'; import throttle from 'lodash/throttle'; import CodeMirror from 'codemirror'; import * as userAgent from '../../utils/userAgent'; import { EditorDirection } from '../../types'; function stripUnit(value: number | string): number { if (typeof value !== 'string') return value; ...
the_stack
import { call, delay, put, select, takeEvery, takeLatest } from 'redux-saga/effects' import { createIdentity } from 'eth-crypto' import { Personal } from 'web3x/personal/personal' import { Account } from 'web3x/account' import { Authenticator } from 'dcl-crypto' import { ENABLE_WEB3, ETHEREUM_NETWORK, PREVIEW, setNetw...
the_stack
import IndexedFormula from './store' import { docpart } from './uri' import Fetcher from './fetcher' import Namespace from './namespace' import Serializer from './serializer' import { join as uriJoin } from './uri' import { isStore, isBlankNode } from './utils/terms' import * as Util from './utils-js' import Statement ...
the_stack
import CancellationToken from "cancellationtoken"; import caught = require("caught"); import { EventEmitter } from "events"; import { Channel, ChannelClass } from "./Channel"; import { ChannelOptions } from "./ChannelOptions"; import { ControlCode } from "./ControlCode"; import { Deferred } from "./Deferred"; import { ...
the_stack
import _ = require("../index"); declare module "../index" { interface LoDashStatic { /** * The opposite of _.before; this method creates a function that invokes func once it’s called n or more times. * * @param n The number of calls before func is invoked. * @param func T...
the_stack
import { BaseResource, CloudError } from "ms-rest-azure"; import * as moment from "moment"; export { BaseResource, CloudError }; /** * SKU parameters supplied to the create Redis operation. */ export interface Sku { /** * The type of Redis cache to deploy. Valid values: (Basic, Standard, Premium). Possibl...
the_stack
import { AnimationEvent } from '@angular/animations'; import { FocusOrigin } from '@angular/cdk/a11y'; import { Direction } from '@angular/cdk/bidi'; import { coerceBooleanProperty } from '@angular/cdk/coercion'; import { DOWN_ARROW, UP_ARROW } from '@angular/cdk/keycodes'; import { AfterContentInit, ChangeDete...
the_stack
import * as React from 'react'; import NetInfo, { NetInfoStateType } from '@react-native-community/netinfo'; import { AppState, Platform, View } from 'react-native'; import { shallow } from 'enzyme'; import { render } from 'react-native-testing-library'; import NetworkConnectivity, { RequiredProps, } from '../src/com...
the_stack
import { matchRightIncl } from "string-match-left-right"; import { arrayiffy } from "arrayiffy-if-string"; import { version as v } from "../package.json"; const version: string = v; function isObj(something: any): boolean { return ( something && typeof something === "object" && !Array.isArray(something) ); } f...
the_stack
import { PutFileEntry } from 'aws-sdk/clients/codecommit'; import * as yaml from 'js-yaml'; import { S3 } from '../aws/s3'; import { CodeCommit } from '../aws/codecommit'; import { pretty, FormatType } from './prettier'; import { RAW_CONFIG_FILE, JSON_FORMAT } from './constants'; import { DynamoDB } from '../aws/dynamo...
the_stack