text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
module es { export class MathHelper { public static readonly Epsilon: number = 0.00001; public static readonly Rad2Deg = 57.29578; public static readonly Deg2Rad = 0.0174532924; /** * 表示pi除以2的值(1.57079637) */ public static readonly PiOver2 = Math.PI ...
the_stack
import {Constructor, PolyDictionary} from '../../../../types/GlobalTypes'; import {CoreString} from '../../../../core/String'; import {BaseNodeType} from '../../_Base'; import {NodeEvent} from '../../../poly/NodeEvent'; import {NodeContext} from '../../../poly/NodeContext'; import {NameController} from '../NameControll...
the_stack
import { AVLTree, MapEntry, RNG, VMContext } from ".."; let tree: AVLTree<u32, u32>; let _closure_var1: u32; let _closure_rng: RNG<u32>; function random(n: i32): u32[] { const a = new Array<u32>(n); _closure_rng = new RNG<u32>(2 * n); return a.map<u32>((_): u32 => _closure_rng.next()); } function range(start: ...
the_stack
import { BigNumber } from 'bignumber.js'; import { EventEmitter } from 'events'; import { FilecoinSnapApi } from '@nodefactory/filsnap-types'; declare class ActiveSync { Base: TipSet; Target: TipSet; Stage: SyncStateStage; Height: ChainEpoch; Start: string; End: string; Message: ...
the_stack
import AudioTrackController from '../../../src/controller/audio-track-controller'; import Hls, { MediaPlaylist } from '../../../src/hls'; import { AttrList } from '../../../src/utils/attr-list'; import { LevelDetails } from '../../../src/loader/level-details'; import { Events } from '../../../src/events'; import * as ...
the_stack
import {assert} from 'chai'; import * as CHANNEL from 'vega-lite/build/src/channel'; import * as MARK from 'vega-lite/build/src/mark'; import {TitleParams} from 'vega-lite/build/src/title'; import * as TYPE from 'vega-lite/build/src/type'; import {DEFAULT_QUERY_CONFIG} from '../src/config'; import {SpecQueryModel, Spec...
the_stack
import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic } from "homebridge"; import { PLATFORM_NAME, PLUGIN_NAME } from "./settings"; import { DeviceInfo, Device, EMPTY_DEVICEINFO } from "./yeedevice"; import { YeeAccessory} from "./yeeaccessory"; import { Discovery } fro...
the_stack
import { existsSync, mkdirSync, writeFile } from 'fs' import { basename, dirname, resolve } from 'path' import { createFilter, CreateFilter } from 'rollup-pluginutils' import type { Plugin } from 'rollup' export interface CSSPluginOptions { exclude?: Parameters<CreateFilter>[1] failOnError?: boolean include?: P...
the_stack
import * as d3 from 'd3'; import * as React from 'react'; import { connect } from 'react-redux'; import IconCfg from '#app/components/IconPicker/iconCfg'; import Menu from '#app/modules/Explore/NebulaGraph/Menu'; import { IRootState } from '#app/store'; import { INode, IPath } from '#app/utils/interface'; import './i...
the_stack
declare module 'metro' { //#region metro/src/Assets.js type AssetDataWithoutFiles = { readonly __packager_asset: true; readonly fileSystemLocation: string; readonly hash: string; readonly height: number | null | undefined; readonly httpServerLocation: string; readonly name: string; read...
the_stack
import { fakeAsync, TestBed, tick, flush, waitForAsync } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { IgxTooltipModule, IgxTooltipTargetDirective, IgxTooltipDirective } from './tooltip.directive'; impo...
the_stack
import { InputNumber } from 'antd'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; import * as Styled from './box-editor.style'; import * as typings from './box-editor.type'; export class BoxEditor extends React.Component<typings.Props, typings.State> { public static defaultProps = new typing...
the_stack
/// <reference types="node" /> export = ImageKit; declare global { namespace ImageKit { type TransformationPosition = 'path' | 'query'; /** * Type of files to include in result set. Accepts three values: * all - include all types of files in result set * image - only sea...
the_stack
module P { /** Returns a new "Deferred" value that may be resolved or rejected. */ export function defer<Value>(): Deferred<Value> { return new DeferredI<Value>(); } /** Converts a value to a resolved promise. */ export function resolve<Value>(v: Value): Promise<Value> { return defer<Value>().resol...
the_stack
import { DefinitionNode, DirectiveDefinitionNode, DirectiveLocationEnum, DirectiveNode, DocumentNode, FieldDefinitionNode, GraphQLError, InputValueDefinitionNode, parse, SchemaDefinitionNode, Source, TypeNode, valueFromASTUntyped, ValueNode, NamedTypeNode, ArgumentNode, StringValueNode...
the_stack
import invariant from "invariant"; import { NotEnoughBalance, NotEnoughBalanceInParentAccount, InvalidAddressBecauseDestinationIsAlsoSource, RecommendUndelegation, NotSupportedLegacyAddress, } from "@ledgerhq/errors"; import { BigNumber } from "bignumber.js"; import { fromTransactionRaw } from "./transaction"...
the_stack
import * as Express from 'express'; import * as httpstatus from 'http-status'; // local dependencies import * as store from '../db/store'; import * as Types from '../db/db-types'; import * as limits from '../db/limits'; import * as objectstore from '../objectstore'; import * as errors from './errors'; import * as auth ...
the_stack
import { Request, Response } from 'express' import { JsonController, Param, Body, Req, Res, Get, Post, Put, Delete, UseBefore } from 'routing-controllers' import _ from 'lodash' import moment from 'moment' import BaseController from '~/src/controller/api/base' import { cleanProjectConfig } from '~/src/controller/proxy...
the_stack
import { version as v } from "../package.json"; const version: string = v; type ErrCb = ( indexes: [from: number, to: number][], explanation: string, isFixable: boolean ) => void; interface Obj { [key: string]: any; } interface Opts { from: number; to: number; offset: number; leadingWhitespaceOK: boo...
the_stack
import { maxBy, max } from "lodash-es"; import { strSimilarity } from "../util"; /**MOD上的裂罅属性 */ export interface RivenPropertyValue { id: string; name: string; value: number; } /** * 裂罅属性条目 * * 符号标记说明,如: DSR-Z 即为伤害多重射速负后座 */ export interface RivenProperty { id: string; name: string; eName: string; s...
the_stack
import { Conic } from './Conic'; import { Container } from '@pixi/display'; import { Point, Matrix, Transform } from '@pixi/math'; import { Renderer, Texture } from '@pixi/core'; import { ConicRenderer } from './ConicRenderer'; import mat3 from 'gl-mat3'; const tempMatrix = new Matrix(); /** * Draws a segment of con...
the_stack
import React, {useState, useEffect, useContext} from "react"; import {ModelingContext} from "../../../../util/modeling-context"; import {Modal, Input, Select, Icon, Card, Dropdown} from "antd"; import {DownOutlined} from "@ant-design/icons"; import DropDownWithSearch from "../../../common/dropdown-with-search/dropdownW...
the_stack
import { schemas, SchemaValidator } from '@0x/json-schemas'; import { assetDataUtils, orderCalculationUtils, SignedOrder } from '@0x/order-utils'; import { RFQTFirmQuote, RFQTIndicativeQuote, TakerRequestQueryParams } from '@0x/quote-server'; import { ERC20AssetData } from '@0x/types'; import { BigNumber } from '@0x/ut...
the_stack
import { PeerSource } from './PeerSource'; import { PeeringAgentBase } from './PeeringAgentBase'; import { SecureNetworkAgent, SecureNetworkEventType, ConnectionIdentityAuthEvent, IdentityLocation, IdentityAuthStatus, SecureMessageReceivedEvent } from '../network/SecureNetworkAgent'; import { Agent, AgentId } f...
the_stack
import { assert } from "chai"; import { skip, suite, test } from "mocha-typescript"; import * as path from "path"; import { CompletionItemKind, CompletionRequest, DefinitionRequest, DiagnosticSeverity, DidOpenTextDocumentNotification, DidOpenTextDocumentParams, DidSaveTextDocumentNotification, DidSaveTextDocumentParams...
the_stack
import { PageContent } from "../pageModel"; import { SENTINEL_CONTENT, MAX_BUFFER_LENGTH } from "../contentTree/tree"; import { SENTINEL_STRUCTURE } from "../structureTree/tree"; import { chunks, TokenType } from "tiny-html-lexer"; import { EMPTY_TREE_ROOT } from "../tree/tree"; import { KeyValueStr, TagType } from ".....
the_stack
import * as protos from '../protos/protos'; import * as assert from 'assert'; import * as sinon from 'sinon'; import {SinonStub} from 'sinon'; import {describe, it, beforeEach, afterEach} from 'mocha'; import * as instancegroupmanagersModule from '../src'; import {PassThrough} from 'stream'; import {GoogleAuth, proto...
the_stack
import type {Mutable, Proto, ObserverType} from "@swim/util"; import type {FastenerOwner, FastenerFlags} from "@swim/component"; import type {Model} from "../model/Model"; import type {AnyTrait, Trait} from "./Trait"; import {TraitRelationInit, TraitRelationClass, TraitRelation} from "./TraitRelation"; /** @internal *...
the_stack
import { EventEnvelope, EventItem, TransportMakeRequestResponse } from '@sentry/types'; import { createEnvelope, PromiseBuffer, resolvedSyncPromise, serializeEnvelope } from '@sentry/utils'; import { TextEncoder } from 'util'; import { createTransport } from '../../../src/transports/base'; const ERROR_ENVELOPE = crea...
the_stack
import React, {MouseEvent, RefObject, useEffect, useRef, useState} from 'react'; import {useForceUpdate} from '../../basic/utils'; import { DRAG_DEVIATION, FILLER_MIN_WIDTH, HEADER_HEIGHT, MAX_COLUMN_WIDTH, MIN_COLUMN_WIDTH, RESIZE_DEVIATION, ROW_HEIGHT, ROW_NO_WIDTH } from '../constants'; import {useGridEventB...
the_stack
module TDev.RT { //? Browse and review scripts from the bazaar //@ skill(3) export module Bazaar { //? Returns a user object for a specified user id //@ cachedAsync returns(User) export function user_of(id: string, r: ResumeCtx) { User.getJsonAsync(id).done(us...
the_stack
import chalk from 'chalk'; import { isEmpty, difference } from 'lodash'; import ora = require('ora'); import { ValidConfigOptions } from '../options/options'; import { HandledError } from '../services/HandledError'; import { exec } from '../services/child-process-promisified'; import { getRepoPath } from '../services/e...
the_stack
import { Observable } from 'rxjs'; import { ConfirmAuBecsDebitPaymentData, ConfirmAuBecsDebitSetupData, ConfirmBancontactPaymentData, ConfirmBancontactPaymentOptions, ConfirmCardPaymentData, ConfirmCardPaymentOptions, ConfirmEpsPaymentData, ConfirmEpsPaymentOptions, ConfirmFpxPaymentData, ConfirmFp...
the_stack
import { Component, Prop, Vue, Watch } from 'vue-property-decorator'; import Mixin from './../Mixin'; import HeaderType from '@/pages/datamart/common/components/HeaderType.vue'; import alertConvergenceForm from '@/pages/dmonitorCenter/components/convergenceForm/alertConvergenceForm.vue'; import alertTriggerForm from '@...
the_stack
import ts from 'typescript'; // import { createFunctionInlineTransformer } from './inlineWrappedFunctions'; import { matchWrappedInvocation, matchWrapping } from './patterns'; import { createProgramFromSource } from './createTSprogram'; import { InlineContext } from './inlineWrappedFunctions'; const deriveNewFuncName ...
the_stack
import { formatStats } from './formatStats'; import { formatDate } from './formatDate'; export function transformData(data, groupAccessor, ordinalAccessor, valueAccessor) { // transform data to below format // [{label: "2018", "A": 23, "B": 7, "C": 11}, {label: ..}] const dataArr = []; data.forEach(obj => { ...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/workspaceConnectionsMappers"; import * as Parameters from "../models/parameters"; import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; /** Class representin...
the_stack
import { IsoPoint } from "../../../engine/lib/IsoPoint" import { Matrix } from "../../../engine/lib/util/Matrix" import { PRIORITY } from "../room.constants" import { RoomEngine } from "../Room.engine" import { Wall } from "./Wall" const WALL_HEIGHT = 92 const WALL_SIZE = 32 const WALL_THICKNESS = 8 export type Point...
the_stack
import { CfnResource, IConstruct } from '@aws-cdk/core'; import { NagPack, NagMessageLevel, NagPackProps } from '../nag-pack'; import { APIGWAccessLogging, APIGWAssociatedWithWAF, APIGWAuthorization, APIGWExecutionLoggingEnabled, APIGWRequestValidation, } from '../rules/apigw'; import { AppSyncGraphQLRequestL...
the_stack
import * as path from 'path'; import * as fs from 'fs'; import glob from 'glob'; import chalk from 'chalk'; import * as shell from 'shelljs'; import { patchTSModule } from './patcher'; import { getModuleAbsolutePath, getTSModule, getTSPackage, mkdirIfNotExist, TSModule, TSPackage } from './file-utils'; import { appRo...
the_stack
/* eslint-disable */ import * as jspb from "google-protobuf"; export class ComposeUpRequest extends jspb.Message { getProjectname(): string; setProjectname(value: string): ComposeUpRequest; getWorkdir(): string; setWorkdir(value: string): ComposeUpRequest; clearFilesList(): void; getFilesLi...
the_stack
import { logger } from './logger'; import AWS from 'aws-sdk'; import _ from 'lodash'; import { SUPPORTED_SERVICES, AWSSegmentParsers } from './aws-segments/index'; import BBPromise from 'bluebird'; import { IamPolicyDocument, IamStatement } from './aws-segments/iam-policy'; import crypto from 'crypto'; import fs from '...
the_stack
import { AsnConvert } from "@peculiar/asn1-schema"; import { JsonParser, JsonSerializer } from "@peculiar/json-schema"; import { BufferSourceConverter, Convert } from "pvtsutils"; import * as core from "webcrypto-core"; import { Debug } from "./debug"; import { Browser, BrowserInfo } from "./helper"; import { CryptoKey...
the_stack
import { BigNumber } from '@ethersproject/bignumber'; import { arrayify, hexlify } from '@ethersproject/bytes'; import { TransactionReceipt } from '@ethersproject/abstract-provider'; import { core } from '@optics-xyz/ts-interface'; import { OpticsContext } from '..'; import { delay } from '../../utils'; import { Disp...
the_stack
'use strict'; import { expect } from 'chai'; import * as ComponentFactory from '../../../../src/lib/device/componentFactory'; const PREFIX = 'PREFIX/'; describe('./lib/device/componentFactory.ts', () => { describe('buildButton()', () => { it('should set default label', () => { const param = { name: 'butt...
the_stack
import { UserAccount, UserAccountOptions } from '../models/user-account'; import fetch, { Response } from 'node-fetch'; import { convertToMediaPost, convertToMediaPosts, MediaPost, MediaPostOptions, } from '../models/post'; import { Utils } from '../modules/utils/utils'; import { IResult } from '../models/http-...
the_stack
import { Bounds, Epsg, Stac, StacCollection, StacLink, StacProvider, TileMatrixSet, TileMatrixSets, } from '@basemaps/geo'; import { extractYearRangeFromName, FileConfig, FileConfigPath, Projection, fsa, titleizeImageryName, CompositeError, } from '@basemaps/shared'; import { MultiPolygon,...
the_stack
import * as faker from 'faker/locale/en' // Ported from the original Postman implementation for dynamic-variables // https://github.com/postmanlabs/postman-collection/blob/develop/lib/superstring/dynamic-variables.js export class PostmanDynamicVarGenerator { dynamicGenerators: any constructor() { // locale l...
the_stack
const code_CarriageReturn = "\r".charCodeAt(0); const code_NewLine = "\n".charCodeAt(0); const code_Space = " ".charCodeAt(0); const code_Tab = "\t".charCodeAt(0); const code_Slash = "/".charCodeAt(0); const code_Backslash = "\\".charCodeAt(0); const code_Star = "*".charCodeAt(0); const code_Hash = "#".charCodeAt(0); c...
the_stack
import moment = require("moment"); import { BasicClient } from "../BasicClient"; import { Candle } from "../Candle"; import { CandlePeriod } from "../CandlePeriod"; import { ClientOptions } from "../ClientOptions"; import { CancelableFn } from "../flowcontrol/Fn"; import { throttle } from "../flowcontrol/Throttle"; imp...
the_stack
function test_dropdown_static() { $.fn.dropdown.settings.error!.method = 'method'; $.fn.dropdown.settings.namespace = 'namespace'; $.fn.dropdown.settings.name = 'name'; $.fn.dropdown.settings.silent = false; $.fn.dropdown.settings.debug = true; $.fn.dropdown.settings.performance = true; $.fn...
the_stack
import { Injectable } from '@angular/core'; import { CoreError } from '@classes/errors/error'; import { CoreSite, CoreSiteWSPreSets } from '@classes/site'; import { CoreCourseCommonModWSOptions } from '@features/course/services/course'; import { CoreCourseLogHelper } from '@features/course/services/log-helper'; import ...
the_stack
import { Aws, CfnResource, Construct, Duration, Stack, Tags } from '@aws-cdk/core'; import { Code, Function as LambdaFunction, Runtime } from '@aws-cdk/aws-lambda'; import { Effect, PolicyStatement, PolicyDocument, Role, ServicePrincipal, Policy } from '@aws-cdk/aws-iam'; import { IBucket } from '@aws-cdk/aws-s3'; impo...
the_stack
export type FetchResult = { /** * Offset the opcode was read from */ offset: number; /** * Overflow detected? */ overflow: boolean; /** * Opcode fetched */ opcode: number; } /** * This class represents the output of a single disassembly item */ export interface DisassemblyItem { /**...
the_stack
import { CUSTOM_ELEMENTS_SCHEMA, EventEmitter, SimpleChange, Component } from '@angular/core'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; import { MockComponent } from 'ng2-mock-component'; import { using } from 'app/testing/spec-helpe...
the_stack
import AbstractSyntaxContent from "./AbstractSyntaxContent"; import LibProvider from "../libProvider"; const libProvider = new LibProvider(); export default class SyntaxContentOscript extends AbstractSyntaxContent { public getSyntaxContentItems(): any { const items = {}; const structureGlo...
the_stack
import { SmartBuffer, SmartBufferOptions } from '../src/smartbuffer'; import { ERRORS, isFiniteInteger, checkEncoding, checkOffsetValue, checkLengthValue, checkTargetOffset } from '../src/utils'; import { assert } from 'chai'; import 'mocha'; describe('Constructing a SmartBuffer', () => { describe('Constructing with...
the_stack
declare class PHASEAmbientMixerDefinition extends PHASEMixerDefinition { static alloc(): PHASEAmbientMixerDefinition; // inherited from NSObject static new(): PHASEAmbientMixerDefinition; // inherited from NSObject readonly inputChannelLayout: AVAudioChannelLayout; readonly orientation: simd_quatf; constructo...
the_stack
import { PdfDocument, PdfPage, PdfStandardFont, PdfTrueTypeFont, PdfGrid } from './../../../src/index'; import { PdfSolidBrush, PdfColor, PdfFont, PdfFontFamily, PdfStringFormat } from './../../../src/index'; import { RectangleF, PdfPen, PdfGraphicsState, PdfFontStyle, PdfTextAlignment,PdfPath, PointF, PdfFillMode , Pd...
the_stack
import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, NgZone, OnDestroy, OnInit, ViewChild, } from '@angular/core' import Color from 'color' import {FlatTreeControl} from '@angular/cdk/tree' import {MatTreeFlatDataSource, MatTreeFlattener} from '@angular/material/tree' import {DataStore, Dat...
the_stack
import { generateId } from '@/common/js/util'; import { validateRules } from '@/common/js/validate'; import customRender from '@/components/customrender/bkDataCustomRender'; import popContainer from '@/components/popContainer'; import { Component, Emit, Prop, PropSync, Ref, Vue, Watch } from 'vue-property-decorator'; i...
the_stack
/// <reference types="node" /> declare module 'wiring-pi' { // Setup export function wiringPiSetup(): number; export function wiringPiSetupGpio(): number; export function wiringPiSetupPhys(): number; export function wiringPiSetupSys(): number; export function setup(mode: string): number; //...
the_stack
* @module WebGL */ /* eslint-disable no-restricted-syntax */ /** Ordered list of render passes which produce a rendered frame. * [[RenderCommands]] organizes its [[DrawCommands]] into a list indexed by RenderPass. * @see [[Pass]] for the type from which the RenderPass for a [[Primitive]] is derived. * @internal *...
the_stack
import { existsSync, readFileSync } from "fs"; import { isAbsolute, resolve } from "path"; import { Stream } from "stream"; import { CallCredentials as grpcCallCredentials, CallOptions, Channel, ChannelCredentials, Client as GRPCClient, ClientOptions as GRPCClientOptions, credentials as grpcCredentials, ...
the_stack
import { Canvas } from '@antv/g-canvas'; import { World } from '@antv/g-webgpu'; import { Compiler } from '@antv/g-webgpu-compiler'; import React, { useEffect, useState } from 'react'; import ReactDOM from 'react-dom'; const gCode = ` import { globalInvocationID } from 'g-webgpu'; const MAX_EDGE_PER_VERTEX; const VER...
the_stack
import React, { useState, useReducer, useMemo } from 'react'; import { Button, Upload } from 'antd'; import { ArrowDownOutlined, PlusOutlined } from '@ant-design/icons'; import FormRender, { useForm } from 'form-render'; import JSZip from 'jszip'; import { useSize } from 'ahooks'; import { saveAs } from 'file-saver'; i...
the_stack
import { Box, Checkbox, Chip, createStyles, FormControlLabel, Grid, IconButton, Menu, MenuItem, TextField, Theme, withStyles, } from "@material-ui/core"; import { WithStyles } from "@material-ui/core/styles"; import Typography from "@material-ui/core/Typography"; import MoreVertIcon from "@mater...
the_stack
import { Application, AppRole, AppRoleAssignment, OAuth2PermissionGrant, PermissionScope, RequiredResourceAccess, ResourceAccess, ServicePrincipal } from '@microsoft/microsoft-graph-types'; import { AxiosRequestConfig } from 'axios'; import { Cli, Logger } from '../../../../cli'; import Command from '../../../../Comman...
the_stack
// geometry constants const TILE_WIDTH = 80 const TILE_HEIGHT = 36 const HEX_GRID_SIZE = 200 // hex grid is 200x200 interface Point { x: number; y: number; } interface Point3 { x: number; y: number; z: number; } interface BoundingBox { x: number; y: number; w: number; h: number; }...
the_stack
import { AccountSet, AccountDelete, CheckCancel, CheckCash, CheckCreate, DepositPreauth, EscrowCancel, EscrowCreate, EscrowFinish, OfferCancel, OfferCreate, PaymentChannelClaim, PaymentChannelCreate, PaymentChannelFund, SetRegularKey, SignerListSet, TrustSet, } from '../../../src/XRP/G...
the_stack
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * 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 * * Un...
the_stack
namespace dragonBones { /** * @private */ export class BinaryDataParser extends ObjectDataParser { private _binaryOffset: number; private _binary: ArrayBuffer; private _intArrayBuffer: Int16Array; private _frameArrayBuffer: Int16Array; private _timelineArrayBuff...
the_stack
import hl=require("../../parser/highLevelAST"); import core=require("../../parser/wrapped-ast/parserCoreApi"); export interface Annotable extends core.BasicNode{ /** * Most of RAML model elements may have attached annotations decribing additional meta data about this element **/ annotations(...
the_stack
import type { QueryClient } from "../client.ts"; import { Query, QueryArguments, QueryArrayResult, QueryConfig, QueryObjectConfig, QueryObjectResult, QueryResult, ResultType, templateStringToQuery, } from "./query.ts"; import { isTemplateString } from "../utils/utils.ts"; import { PostgresError, Trans...
the_stack
/** * @license Copyright © 2013 onwards, Andrew Whewell * All rights reserved. * * Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyri...
the_stack
/// <reference types="cheerio" /> import { ReactElement, Component, AllHTMLAttributes as ReactHTMLAttributes, SVGAttributes as ReactSVGAttributes, } from 'react'; export type HTMLAttributes = ReactHTMLAttributes<{}> & ReactSVGAttributes<{}>; export class ElementClass extends Component<any, any> {} /*...
the_stack
import path from 'path'; import url from 'url'; import glob from 'glob-promise'; import chalk from 'chalk'; import { promises as fs, existsSync } from 'fs'; import { launch, Browser, Page } from 'puppeteer'; import PromisePool from 'es6-promise-pool'; import resemble from 'resemblejs'; import { Spec, SpecResult, SpecDe...
the_stack
import type { Device, Cursor } from "spotify-types"; import type { Client } from "../Client"; import type { CamelCaseObjectKeys, CurrentPlayback, RecentlyPlayed } from "../Interface"; import { createCurrentPlayback, createCurrentlyPlaying, createDevice, createRecentlyPlayed } from "../structures/Pl...
the_stack
import * as React from "react"; import { IModelApp, NotifyMessageDetails, OutputMessagePriority } from "@itwin/core-frontend"; import { DialogButtonDef, DialogButtonType, DialogItem, DialogItemValue, DialogLayoutDataProvider, DialogPropertyItem, DialogPropertySyncItem, PropertyChangeResult, PropertyChangeStatus, Pr...
the_stack
declare module 'tls' { import * as net from 'net'; const CLIENT_RENEG_LIMIT: number; const CLIENT_RENEG_WINDOW: number; interface Certificate { /** * Country code. */ C: string; /** * Street. */ ST: string; /** * Loca...
the_stack
import classNames from "classnames"; import * as React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, Keys } from "../../common"; import { DISPLAYNAME_PREFIX, IntentProps, Props } from "../../common/props"; import { clamp } from "../../common/utils"; import ...
the_stack
import * as d3 from 'd3'; import * as _ from "lodash" import * as R from 'ramda' import * as tp from '../etc/types'; import * as rsp from '../api/responses'; import '../etc/xd3' import { API } from '../api/mainApi' import { UIConfig } from '../uiConfig' import { TextTokens, LeftTextToken, RightTextToken } from './TextT...
the_stack
import { kea } from 'kea' import { router } from 'kea-router' import { identifierToHuman, setPageTitle } from 'lib/utils' import posthog from 'posthog-js' import { sceneLogicType } from './sceneLogicType' import { eventUsageLogic } from 'lib/utils/eventUsageLogic' import { preflightLogic } from './PreflightCheck/logic'...
the_stack
declare module 'perf_hooks' { import { AsyncResource } from 'node:async_hooks'; type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http'; interface NodeGCPerformanceDetail { /** * When `performanceEntry.entryType` is equal to 'gc', `the performance.kind` property ...
the_stack
import { css } from '@emotion/react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import classnames from 'classnames'; import cloneDeep from 'lodash.clonedeep'; import now from 'lodash.now'; import React from 'react'; import { Edge, EdgeChildProps, } from 'reaflow'; import { SetterOrUpdater,...
the_stack
import { createModel } from '@rematch/core'; import { message } from 'antd'; import intl from 'react-intl-universal'; import service from '#assets/config/service'; import { configToJson, getGQLByConfig } from '#assets/utils/import'; interface ITag { props: any[]; name: string; } interface IVertexConfig { name:...
the_stack
import { Ray, Vector2 } from "@oasis-engine/math"; import { Canvas } from "../../Canvas"; import { Engine } from "../../Engine"; import { Entity } from "../../Entity"; import { CameraClearFlags } from "../../enums/CameraClearFlags"; import { HitResult } from "../../physics"; import { PointerPhase } from "../enums/Point...
the_stack
import { PropertyValues, ReactiveElement } from "lit"; import { customElement, property, state } from "lit/decorators"; import { applyThemesOnElement } from "../../../common/dom/apply_themes_on_element"; import "../../../components/entity/ha-state-label-badge"; import "../../../components/ha-svg-icon"; import type { ...
the_stack
import test, { Macro } from 'ava'; import { fc, testProp } from 'ava-fast-check'; import * as bitcoreLibCash from 'bitcore-lib-cash'; import { crackHdPrivateNodeFromHdPublicNodeAndChildPrivateNode, decodeHdKey, decodeHdPrivateKey, decodeHdPublicKey, deriveHdPath, deriveHdPrivateNodeChild, deriveHdPrivate...
the_stack
import { Sdk, ISdk as t } from 'nger-core'; export declare class NativeSDk extends Sdk { getAccountInfoSync(): t.AccountInfo; getBatteryInfoSync(): t.GetBatteryInfoSyncResult; getExtConfigSync(): t.ExtInfo; getLaunchOptionsSync(): t.LaunchOptionsApp; getMenuButtonBoundingClientRect(): t.Rect; ge...
the_stack
import { SourceFile, Node, TextContentNode, Token } from "./nodes"; import { Position } from "./types"; import { isTextContentKind, isTokenKind, SyntaxKind, tokenToString } from "./tokens"; import { Scanner } from "./scanner"; import { NullDiagnosticMessages } from "....
the_stack
import type { Fn2, ICopy, IEmpty, NumericArray } from "@thi.ng/api"; import { nomixin } from "@thi.ng/api/decorators/nomixin"; import { IGrid2DMixin } from "@thi.ng/api/mixins/igrid"; import { isNumber } from "@thi.ng/checks/is-number"; import { isString } from "@thi.ng/checks/is-string"; import { assert } from "@thi.n...
the_stack
namespace gdjs { export type HotReloaderLog = { message: string; kind: 'fatal' | 'error' | 'warning' | 'info'; }; export type ChangedRuntimeBehavior = { oldBehaviorConstructor: Function; newBehaviorConstructor: Function; behaviorTypeName: string; }; /** * Reload scripts/data of an exp...
the_stack
import { IFunctionIdentifier, ITerminalOptions as IPublicTerminalOptions } from 'xterm'; import { IEvent, IEventEmitter } from 'common/EventEmitter'; import { IDeleteEvent, IInsertEvent } from 'common/CircularList'; import { IParams } from 'common/parser/Types'; import { IOptionsService, IUnicodeService } from 'common/...
the_stack
import { Abi, abiContract, AbiErrorCode, ParamsOfEncodeMessage, ResultOfProcessMessage, ResultOfRunTvm, signerKeys, TonClient, TvmErrorCode, } from "@tonclient/core"; import { Account } from "../account"; import { ContractPackage, contracts } from "../contracts"; import { expect, t...
the_stack
import { NxFormfieldHintDirective } from './hint.directive'; import { Component, Type, ViewChild, ChangeDetectionStrategy, Directive } from '@angular/core'; import { ComponentFixture, fakeAsync, TestBed, tick, inject, waitForAsync } from '@angular/core/testing'; import { FormGroup, ReactiveFormsModule } from '@angular/...
the_stack
export interface Breakpoints { /** * Tablet: 740px */ medium: number; /** * Desktop: 980px */ large: number; /** * Desktop HD: 1200px */ xLarge: number; /** * Desktop Full HD: 1800px */ max: number; } export interface AccordionCardStyling { /** * Border color in closed stat...
the_stack
import { SnapshotVersion } from '../core/snapshot_version'; import { ResourcePath } from '../model/path'; import { debugAssert, hardAssert } from '../util/assert'; import { BATCHID_UNKNOWN } from '../util/types'; import { decodeResourcePath, encodeResourcePath } from './encoded_resource_path'; import { dbDocumen...
the_stack
import test, { Macro } from 'ava'; import { fc, testProp } from 'ava-fast-check'; import { bigIntToBinUint256BEClamped, bigIntToBinUint64LE, bigIntToBinUint64LEClamped, bigIntToBinUintLE, bigIntToBitcoinVarInt, binToBigIntUint256BE, binToBigIntUint64LE, binToBigIntUintBE, binToBigIntUintLE, binToHe...
the_stack
'use strict' import { Address as AddressType } from './types/Address' import { ArrayType } from './types/ArrayType' import { Bool as BoolType } from './types/Bool' import { DynamicByteArray as BytesType } from './types/DynamicByteArray' import { FixedByteArray as BytesXType } from './types/FixedByteArray' import { Enu...
the_stack