text
stringlengths
3.08k
15.5k
<filename>src/extension.ts import * as vscode from 'vscode'; import * as js2flowchart from "js2flowchart"; const flowcharts = { 'JS Flowchart': 'null', }; export function activate(context: vscode.ExtensionContext) { context.subscriptions.push( vscode.commands.registerCommand('ShowJSFlowchart.start', () => { Fl...
<reponame>nikolaymatrosov/yc-ts-sdk<gh_stars>1-10 /// <reference types="node" /> import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; export declare const pro...
import chalk from 'chalk'; import * as lodash from 'lodash'; import { Writable } from 'stream'; import * as util from 'util'; import { WordWrapOptions, stringWidth, wordWrap } from '../utils/format'; import { enforceLF } from '../utils/string'; import { ColorFunction, Colors, DEFAULT_COLORS } from './colors'; export...
import {FC} from 'react'; import Base, {actionsProps} from '@app/Base'; import {request, useSetting, showNotification} from '@app/lib/help'; import RowCenter from '@app/Component/RowCeneter'; interface SeasonProps { href: string; img: string; meta: string; title: string; update: string; } const RowCell: FC<...
<filename>ui-components/src/authentication/UserContext.tsx<gh_stars>0 import { createContext, createElement, useReducer, FunctionComponent, useEffect, useContext, } from "react" import { createAction, createReducer } from "typesafe-actions" import { clearToken, getToken, getTokenTtl, setToken } from "./toke...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import * as yargs from 'yargs'; import seedrandom from 'seedrandom'; import { ...
import { createApp, defineComponent, h, nextTick } from 'vue' const appPromises: Promise<unknown>[] = [] /* CSS */ import '@/css' /* Dark Mode */ import '@/darkmode' /* GraphQL */ import { createApollo, provideClient as provideGraphQLClient } from '@/graphql' const client = createApollo() /* NProgress */ import NP...
<reponame>koburzasty/Subwallet-Extension-V2<filename>packages/extension-koni-base/src/api/staking/subsquidStaking.ts<gh_stars>0 // Copyright 2019-2022 @polkadot/extension-koni authors & contributors // SPDX-License-Identifier: Apache-2.0 import axios from 'axios'; import { APIItemState, StakingItem, StakingRewardItem...
import type {GeometryAttributes, ConvertedAttributes, GroupedByFeatureIdAttributes} from '../types'; import {concatenateTypedArrays} from '@loaders.gl/loader-utils'; const VALUES_PER_VERTEX = 3; const POSITIONS_AND_NORMALS_PER_TRIANGLE = 9; /** * Generate geometry attributes with faceRange and featureCount * @param...
import { NumberFormatOptions } from '../internationalization'; import { extend, isNullOrUndefined, isBlazor, getValue } from '../util'; import { ParserBase as parser, NumericOptions } from './parser-base'; import { IntlBase as base } from './intl-base'; const formatRegex: RegExp = /(^[ncpa]{1})([0-1]?[0-9]|20)?$/i; con...
import { ButtonClassNameContract } from "@microsoft/fast-components-class-name-contracts-msft"; import { ComponentStyles, CSSRules } from "@microsoft/fast-jss-manager"; import { applyFocusVisible, directionSwitch, format, subtract, toPx, } from "@microsoft/fast-jss-utilities"; import { Desi...
<reponame>MetisoftSolutions/metisoft-deploy-tools import * as _ from 'lodash'; import * as path from 'path'; import { Promise } from 'es6-promise'; import * as request from 'request'; import * as fileUtil from '../util/fileUtil'; import * as processUtil from '../util/processUtil'; let __originalVersion = ''; let __up...
<reponame>jvstein/node-opcua import * as fs from "fs"; import * as should from "should"; import { AddressSpace, SessionContext } from "../.."; import { generateAddressSpace } from "../../nodeJS"; const context = SessionContext.defaultContext; import * as nodesets from "node-opcua-nodesets"; import { HistoryData, Rea...
/* eslint-disable */ import { ASN1ConstructionError as _ConstructionError, ASN1Element as _Element, ASN1TagClass as _TagClass, OCTET_STRING, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; /* START_OF_SYMBOL_DEFINITION OtherPrimeInfo */ /** * @summary OtherPrimeInfo *...
<reponame>aqibibrahim/opensrpweb import { ParsedHierarchyNode, RawHierarchyNode, RawHierarchyNodeMap, RawOpenSRPHierarchy, TreeNode, } from './types'; import { cloneDeep } from 'lodash'; import cycle from 'cycle'; import TreeModel from 'tree-model'; import { OpenSRPService } from '@opensrp/react-utils'; impor...
import 'cypress-file-upload' import { TestDB, firebase, Auth } from './db/firebase' import { deleteDB } from 'idb' export enum UserMenuItem { Profile = 'Profile', Settings = 'Settings', LogOut = 'Logout', } declare global { namespace Cypress { interface Chainable { deleteIDB(name: string): Promise<b...
/* * Copyright 2017 Next Century Corporation * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
<reponame>nikolaymatrosov/nodejs-sdk<gh_stars>0 /* eslint-disable */ import { messageTypeRegistry } from "../../../../../typeRegistry"; import Long from "long"; import _m0 from "protobufjs/minimal"; export const protobufPackage = "yandex.cloud.ai.vision.v1"; export interface Polygon { $type: "yandex.cloud.ai.vision...
<reponame>ZigZagT/react-querybuilder import { AnyCase } from '../../types'; type TokenType = | 'AndExpression' | 'BetweenPredicate' | 'BitExpression' | 'Boolean' | 'BooleanExtra' | 'CaseWhen' | 'ComparisonBooleanPrimary' | 'ComparisonSubQueryBooleanPrimary' | 'ExpressionList' | 'ForceIndexHint' |...
import {Pipeline} from '../../../../models/pipeline'; import {Metrics, Step} from '../../../../models/step'; import {Graph} from '../../../shared/components/graph/types'; import {Icon} from '../../../shared/components/icon'; import {totalRate} from '../total-rate'; type Type = '' | 'cat' | 'code' | 'container' | 'dedu...
/* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable no-useless-escape */ /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import Command from "../../struct/Command"; import { Message, MessageEmbed, TextChannel } from "di...
import 'colors'; import fs from 'fs-extra'; import path from 'path'; import consoleHorizontalRule from '@/lib/helpers/consoleHorizontalRule'; import fileDiff from '@/lib/diff/fileDiff'; import { COMPARE_DIRECTORY, MAX_CACHE_COUNT } from '@/constants/CachePaths'; class GeneratedComparison { public getCacheBaseDir (...
/* * Copyright 2022 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
<gh_stars>100-1000 import React from 'react'; import ReactDOM from 'react-dom'; import { HotEditorElement } from './types'; let bulkComponentContainer = null; /** * Warning message for the `autoRowSize`/`autoColumnSize` compatibility check. */ export const AUTOSIZE_WARNING = 'Your `HotTable` configuration includes ...
import WebSocket from 'ws' import encryptSecret from './encryptSecret' export enum ASRFormat { LINEAR16 = 'PCM16LE' } export interface SpokestackASRConfig { /** * clientID and clientSecret are required to use Spokestack's public API * These API keys are free and can be generated * in your spokestack.io a...
<gh_stars>0 import * as _ from 'lodash'; import * as C from './constants'; const transforms = { string: value => '' + value, number: parseInt, boolean: value => !!value, price: value => parseInt((1000 * value).toFixed(0)), userString: value => ('' + (value || '')).substring(0, 100), userText: v...
<reponame>simardo/adventofcode2018<filename>src/day_21/puzzle.ts import { DAY_21_INPUT } from './input'; console.log('DAY 21'); type Opcode = { code: string; a: number; b: number; o: number; } function addr(a: number, b: number, o: number, register: number[]): number[] { // console.log('addr'); ...
import { BigWigReader, HeaderData } from "bigwig-reader"; import { Tile } from "../track"; export type BigLoader = { header: HeaderData, reader: BigWigReader, lodMap: Array<number>, lodZoomIndexMap: Array<number | null>, } export class UCSCBig { /** * Generate a BigWig loader instance for a ...
import { normalize } from 'path' import { CodeAction, createConnection, InitializeParams, ProposedFeatures, TextDocuments, TextDocumentSyncKind, } from 'vscode-languageserver' import { TextDocument } from 'vscode-languageserver-textdocument' import { HostWithDocumentsStore } from '../ide' import { buildAndR...
<reponame>normano/content-type /*! * content-type * Copyright(c) 2015 <NAME> * MIT Licensed */ /** * RegExp to match *( ";" parameter ) in RFC 7231 sec 3.1.1.1 * * parameter = token "=" ( token / quoted-string ) * token = 1*tchar * tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" * ...
<reponame>signagelab/smil-player import get = require('lodash/get'); import set = require('lodash/set'); import isNil = require('lodash/isNil'); import isObject = require('lodash/isObject'); import { RegionAttributes } from '../../../models/xmlJsonModels'; import { debug, generateElementId, removeDigits } from './gene...
<reponame>sransara/lay-zers import tippy from 'tippy.js' import * as tippyg from 'tippy.js' import 'tippy.js/dist/tippy.css' const selectableModeElems = document.getElementsByClassName("selectable-mode") Array.from(selectableModeElems).forEach((elem) => { elem.addEventListener('click', (event) => { Array.f...
import * as React from 'react'; import { observer } from 'mobx-react'; import { Tyr } from 'tyranid/client'; import { Form, Row, Col, message } from 'antd'; import { FormInstance } from 'antd/lib/form'; import { FormLayout, useForm, FormProps } from 'antd/lib/form/Form'; import { TyrActionFnOpts } from '../core'; i...
<reponame>zcong1993/cache-manager<gh_stars>0 import * as debug from 'debug' import { ICacheBackend, GetterFunc, Iserializer } from './types' import { isEmpty } from './utils' import { JsonSerizlizer } from './serializer' const debugCache = debug('cache') export type ResolveFn = (res: any) => void export interface C...
#!/usr/bin/env node import * as LibFs from 'mz/fs'; import * as LibPath from 'path'; import * as program from 'commander'; import * as isImage from 'is-image'; import * as shell from 'shelljs'; import * as readdirSorted from 'readdir-sorted'; import * as sizeOf from 'image-size'; const pkg = require('../package.json...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import * as calder from 'calder-gl'; import { range, throttle } from 'lodash'; import { fitCurve } from 'fit-curve'; import { mat4, vec4, vec3 } from 'gl-matrix'; import { List } from 'immutable'; import { StateObject } from './serializable_models/state'; // tslint:disable-next-line:import-name import Bezier = require...
<gh_stars>0 import validateEnv from 'valid-env' import program from 'commander' import chalk from 'chalk' import cron from 'node-cron' import debugFn from 'debug' import { TrelloClient, TrelloCard, TrelloLabel } from '@openlab/trello-client' import { redCross } from './consts' import { promisifiedRedis } from './prom...
<filename>projects/ng-kaart/src/lib/kaart/tekenen/waypoint-ops.ts import { HttpClient } from "@angular/common/http"; import { array, option, strmap, tuple } from "fp-ts"; import { concat, Function1, Function2 } from "fp-ts/lib/function"; import * as rx from "rxjs"; import { map, mergeMap } from "rxjs/operators"; impor...
import { MouseEventHandler, ReactNode, useContext, useState } from 'react'; import { Users } from '../../interfaces/main'; import RouteContext, { Route } from '../context/RouteContext'; import { classNames } from '../lib/utils/reactHelper'; import DesktopOnly from './DesktopOnly'; import MobileOnly from './MobileOnly';...
import { Chip, CircularProgress, Divider, Grid, IconButton, List, ListItem, ListItemSecondaryAction, ListItemText, TextField, Typography, } from '@material-ui/core'; import ContactsIcon from '@material-ui/icons/Contacts'; import CreateIcon from '@material-ui/icons/Create'; import DeleteIcon from '@material-u...
import * as Bull from 'bull'; import config from '../config'; import { injectable, inject } from 'inversify'; import { ObjectID } from 'mongodb'; import { getConnection } from 'typeorm'; import { Track, TRACK_STATUS_ACTIVE } from '../entities/track'; import { User } from '../entities/user'; import { TrackServiceType, T...
<gh_stars>0 import { docxReader } from './office/docxReader'; import { xlsxReader } from './office/xlsxReader'; import { pptxReader } from './office/pptxReader'; import { ReadingOption } from './option'; export function getVer(): string { return '0.3.5' } export function cnm(data: string | object, row?: number) { ...
import React, { Component } from 'react'; // App import { Card } from 'react-bootstrap'; import { observer } from "mobx-react"; import { StatementEntry } from '@/renderer/common/dtos'; import wikiStore from '@/renderer/data/store'; import dayjs from 'dayjs'; interface ShowOutputProperties { errors: string; state...
<filename>packages/env-tests/src/shared/attestation.ts<gh_stars>0 import { notEmpty } from '@celo/base' import { Address, CeloTransactionParams } from '@celo/connect' import { ContractKit } from '@celo/contractkit' import { ActionableAttestation, AttestationsWrapper, } from '@celo/contractkit/lib/wrappers/Attestati...
import { format, addDays } from "date-fns"; export class SepSchedule { id: string; // server side primary key specialEventId: string; // server side foreign key locationId: string; // server side foreign key eventStart: Date; eventEnd: Date; serviceStart: Date; serviceEnd: Date; liquorS...
import { XComfortBridgeClient } from "./bridgeclient"; export interface XDevice { deviceId : number; name : string; type : string; update(payload:any):any; log() : any; } export class XLight implements XDevice { deviceId : number; type : string = "XLight"; name : string; dimma...
<gh_stars>0 import type { Query as FfiQuery } from './polar_wasm_api'; const createInterface = require('readline')?.createInterface; import { parseQueryEvent } from './helpers'; import { DuplicateInstanceRegistrationError, InvalidCallError, InvalidIteratorError, } from './errors'; import { Host } from './Host';...
<reponame>neamatmim/react-multi-carousel import { CarouselInternalState, CarouselProps } from "../types"; /* getOriginalCounterPart gets the index of the original children. For example, we have an array [clones, originalChildren, clones]; Before making the clones, an item's index is 0, but after the clone, the index ...
/* * << * Davinci * == * Copyright (C) 2016 - 2017 EDP * == * 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 b...
<reponame>VDGone/hms-cordova-plugin /* Copyright 2020. Huawei Technologies Co., Ltd. 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 https://www.apache.o...
<reponame>caseykennedy/bob-extension<gh_stars>0 import {browser, WebRequest} from "webextension-polyfill-ts"; import normalTLDs from "../static/normal-tld.json"; import OnBeforeRequestDetailsType = WebRequest.OnBeforeRequestDetailsType; import {consume, getTorrentDataURL, torrentSVC} from "../util/webtorrent"; const ma...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { initializeIcons } from '@uifabric/icons'; import { IconButton } from 'office-ui-fabric-react/lib/Button'; import { Stack } from 'office-ui-fabric-react/lib/Stack'; import { TextField } from 'office-ui-fabric-react/lib/TextField'; impor...
<gh_stars>100-1000 // Copyright 2015-2021 Swim.inc // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
/* eslint-disable */ import { ASN1Element as _Element, ASN1TagClass as _TagClass, GeneralizedTime, OPTIONAL, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { GeneralName, _decode_GeneralName, _encode_GeneralName, } from "../CertificateExtensions/Gener...
/* * Copyright 2019 <NAME> <<EMAIL>> * Copyright 2019 Institute of the Czech National Corpus, * Faculty of Arts, Charles University * * 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 ...
<reponame>FissoreD/TER-M1-M1S2 import { Teacher, teachers } from "./teacher/Teacher.js"; import { HTML_L_star } from "./html_interactions/HTML_L_star.js"; import { HTML_NL_star } from "./html_interactions/HTML_NL_star.js"; import { Automaton } from "./automaton/Automaton.js"; import { L_star } from "./learners/L_star.j...
<gh_stars>100-1000 import { HttpErrorResponse } from '@angular/common/http'; import { Action } from '@ngrx/store'; import { Project } from './project.model'; export enum ProjectActionTypes { GET_ALL = 'PROJECT::GET_ALL', GET_ALL_SUCCESS = 'PROJECT::GET_ALL::SUCCESS', GET_AL...
<reponame>Dom-Roth/composable<filename>frontend/ui-picasso/app/stores/defi/polkadot/crowdloanRewards/CrowdloanRewardsUpdater.tsx import { PalletsContext } from "@/defi/polkadot/context/PalletsContext"; import { ParachainContext } from "@/defi/polkadot/context/ParachainContext"; import { useKusamaAccounts, usePicassoPro...
<reponame>airime/barista /** * @license * Copyright 2020 Dynatrace LLC * 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 require...
import { CommonModule } from '@angular/common'; import { Component, EventEmitter, Input, Output } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; import { RouterTestingModule } from '@a...
<filename>src/shared/dfsp-backend-requests.ts /***** License -------------- Copyright © 2020 Mojaloop Foundation The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obta...
<filename>src/music/track.ts import { getInfo } from 'ytdl-core'; import { AudioResource, createAudioResource, demuxProbe } from '@discordjs/voice'; import { raw as ytdl } from 'youtube-dl-exec'; import { CommandContext } from '../models/command_context'; import { Message, User } from 'discord.js'; export interface Tr...
import { isInput, isNonNullType, isListType, isNamedType } from './../graphql'; import { ValidationSchemaPluginConfig } from '../config'; import { InputValueDefinitionNode, NameNode, TypeNode, GraphQLSchema, InputObjectTypeDefinitionNode, EnumTypeDefinitionNode, } from 'graphql'; import { DeclarationBlock, ...
import {Router, Request, Response} from 'express'; import * as jwt from 'jsonwebtoken'; import { LoggerController, StaticLogger, LogFrom } from '../core/logger-controller.core'; import { GenericDBRequester } from '../database/dbconnector/generic.dbrequester'; import { Employee } from '../model/employee.model'; export...
// tslint:disable:max-classes-per-file completed-docs /** * リポジトリ */ import { MongoRepository as AccountRepo } from './repo/account'; import { MongoRepository as AccountActionRepo } from './repo/accountAction'; import { MongoRepository as AccountingReportRepo } from './repo/accountingReport'; import { MongoRepository...
// @ts-ignore import PrismicRichText, { Elements } from 'prismic-richtext' import React, { createElement } from 'react' import { Linking, StyleProp, Text, TextProps, TextStyle, TouchableOpacity, View, } from 'react-native' import { HTMLTags, LinkType, RichTextContent, RichTextDefaultStyles, Ric...
/** * @license * Copyright (C) 2016 The Android Open Source Project * * 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 require...
<gh_stars>1-10 import { select as d3select, hierarchy as d3hierarchy, partition as d3partition, scaleSqrt as d3scaleSqrt, scaleOrdinal as d3scaleOrdinal, arc as d3arc, schemeCategory10 as d3schemeCategory10, hsl as d3hsl, format as d3format, } from 'd3' import { Chess } from 'chess.js' interface Open...
/* eslint-disable sort-keys, no-magic-numbers, complexity */ import React, { PureComponent } from 'react'; import { AreaSeries, LinearGradient, LineSeries, XYChart, CrossHair, WithTooltip, } from '@data-ui/xy-chart'; import { chartTheme, ChartTheme } from '@data-ui/theme'; import { Margin, Dimension } from...
import React, { useMemo } from 'react' import { StyleSheet, View, Image, Text } from 'react-native' import { ListItem, Icon } from 'react-native-elements' import moment from 'moment' import Colors from '../../common/Colors' import Fonts from '../../common/Fonts' import { RFValue } from 'react-native-responsive-fontsize...
<reponame>Dimas625/tessera<filename>tessera-frontend/src/ts/models/items/item.ts import { logger, TemplateFunction, compile_template, events } from '../../util' import * as core from '../../core' import Model from '../model' import Query, { QueryDictionary } from '../data/query' import { make } from './factory' const...
/** * 3D Foundation Project * Copyright 2019 Smithsonian Institution * * 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 requir...
<gh_stars>1-10 import { Observable } from './observable.js' type WithReturnType<T extends (...args: any) => any, RT> = T extends (...args: infer P) => RT ? (...args: P) => RT : never; const EPSILON = 0.00001; type Interpolator = (value0: number, value1: number, x: number) => number; export function linearInterpolat...
import React, {useState} from 'react'; import { Button, Card, H6, ControlGroup, HTMLSelect, InputGroup, Spinner, RadioGroup, Radio, } from '@blueprintjs/core'; import { ContentPaneProps } from '../../models/ContentPaneProps'; import { ApiHelper, ApiResponse } from '../../util/ApiHelper'; import * as fhir from '../.....
import { ArgumentValidator, printObject, SortedArray } from "@umbra-test/umbra-util"; import { ExpectationData, GetInternalMocker, MockType } from "./InternalMocker"; import { MockableFunction, StrictnessMode } from "./Mock"; import { StacktraceUtils } from "./StackTraceParser"; type ArgumentMatcher = ArgumentVal...
<gh_stars>0 import { Game, LocationType, Deck, Locations, Games, Card, Rule, Pile, Rank, SuitColors, BoardType, } from '../solitaireTypes'; import { moveCards } from '../card'; import { CaseType, match, check, is } from '../funcUtils'; import _ from 'lodash'; import { asCard, as, asPile, getPile }...
<reponame>p2p-org/polkadot-profit-transformer import { ApiPromise, WsProvider } from '@polkadot/api' import { environment } from '../environment' import { IBlockEraParams, IEraData, TBlockHash } from '../services/staking/staking.types' import { ActiveEraInfo, BlockHash, EraIndex, EventIndex, EventRecord, Ex...
import { Directive, Input, DoCheck, OnChanges, EmbeddedViewRef, IterableChangeRecord, IterableChanges, IterableDiffer, IterableDiffers, SimpleChanges, TemplateRef, ViewRef, ViewContainerRef, forwardRef, isDevMode} from '@angular/core'; import { NgForOfContext } from "@angular/common"; interface TrackByFunction<T> { (...
<filename>src/app/game/gameobjects/DangerousObject.ts import { Sprite } from "pixi.js"; import RunningGame from "../gamelogic/RunningGame"; // I cant believe this is how you do enums in TS... unbelievable.. enum SnailType { BlueSnail, OrangeSnail } export default class DangerousObject extends PIXI.Sprite { ...
/// <reference path="../../../typings.d.ts" /> import * as Knex from 'knex'; import * as fastify from 'fastify'; import * as HttpStatus from 'http-status-codes'; import * as moment from 'moment'; const crypto = require('crypto'); import { IsLoginModel } from '../../models/isonline/login'; const loginModel = ...
import { AxiosResponse } from 'axios'; import { VmJson } from '../__json__/vm-json'; import { OperatingSystem } from '../__json__/operating-system-type'; import { VmStatus } from '../__json__/vm-status-type'; import { PerfCounterJson, PerfSamplesSeriesJson } from '../../mixins/perf-samples/__json__/perf-samples'; impor...
import { formatEther, formatUnits, parseUnits } from "@ethersproject/units"; import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/dist/src/signer-with-address"; import { utils } from "ethers"; import { internalTask, task, types } from "hardhat/config"; import { IERC20Factory } from "../types/ethers-contracts/IE...
<filename>index.ts // Hand-written interfaces for https://github.com/scriptin/jmdict-simplified 3.0.1 export type Tag = string; export interface Kanji { common: boolean; text: string; tags: Tag[]; } export interface Kana { common: boolean; text: string; tags: Tag[]; appliesToKanji: string[]; } export typ...
import * as Discord from "discord.js"; import { IBotCommandHelp } from "../api"; import { ApiRequestHandler } from "../handlers/apiRequestHandler"; import { TicketReceive } from "../models/ticket/ticketReceive"; import { ChannelHandler } from "../handlers/channelHandler"; import BaseCommand from "../baseCommand"; impor...
<gh_stars>0 import { renderData, changeData } from './renderData' import { symbolAttr } from '../config' import { IEleTree, ITreeData } from '../interface' import { EleTree } from '../eleTree' // 通过id查找数据和索引 export function getNodeDataById<D extends ITreeData>(thisTree: EleTree<D>, id: string | number): D | null { ...
import { DimStore } from '../inventory/store-types'; import { toCuratedRolls } from './curated-roll-reader'; import { CuratedRoll, DimWishList } from './curatedRoll'; import { D2Item, DimPlug, DimItem } from '../inventory/item-types'; import * as _ from 'lodash'; /** * An inventory curated roll - for an item instance...
import { useEffect,useState,useRef } from 'react'; import { EditorState } from '@codemirror/state'; import { EditorView, keymap, highlightActiveLine} from '@codemirror/view'; import { defaultKeymap } from '@codemirror/commands'; import { history,historyKeymap} from '@codemirror/history'; import { indentOnInput /*synta...
<filename>src/index.ts import { Command, Handler } from './command'; import { Option } from './option'; import { Description } from './commandLine'; type ErrorType = 'ReferenceError' | 'ArgumentError' | 'DuplicateError'; export type CommandArgs = string[]; export type OptionArgs = string[] | boolean; export interfac...
import { writeFile } from 'fs' import { get } from 'https' import { parse } from '@fast-csv/parse' import { MULTIPLIER, getLatestDate } from './utils' // @ts-ignore import { main, dates } from './country.json' const latestDate = getLatestDate(dates) const selectKeys = (keys: string[]) => (obj: Record<string, any>) =>...
/* * -* *- *- *- *- *- *- * * ** -* -* -* - *- *- *-* - ** - *- - * *- */ /* * _ _ +\ */ /* - | |_ ___ ___ ___ ___ ___ ___ ___ _| |___ ___ ___ ___ + */ /* + | _| _| .'| |_ -| _| -_| | . | -_| | _| -_| /* */ /* * ...
import fse from 'fs-extra'; import path from 'path'; import { newConfig } from './config'; import { findAreas } from './areas'; import { findHousesForSale } from './housesForSale'; import { findHousesToLet } from './housesToLet'; import { calcMonthlyPaymentAmount, sortByRankInDescOrder } from './math'; import { calcRan...
import { array, bigint, lazy, object, optional, Schema, string, } from '../schema'; import { Address, addressSchema } from './address'; import { Card, cardSchema } from './card'; import { CustomerPreferences, customerPreferencesSchema, } from './customerPreferences'; import { CustomerTaxIds, customerT...
<reponame>romnn/wasm-audio-effect-rack<gh_stars>1-10 export enum MidiDeviceType { UNKNOWN, INPUT, OUTPUT, } export enum MidiDeviceState { UNKNOWN, DISCONNECTED, CONNECTED, } export enum MidiDeviceConnectionState { UNKNOWN, OPEN, CLOSED, PENDING, } export enum MidiSystemMessage { // System commo...
<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { FormArray, FormControl, FormGroup } from '@angular/forms'; import { BehaviorSubject, combineLatest, Observable, Subscriber, Subscription } from 'rxjs'; import { map, switchMap, tap } from 'rxjs/operators'; import { AdminService } from 'src/app/admi...
import file = require('../lib/FileUtil'); import service = require('../service/index'); import Project = require('../project'); import path = require('path'); import utils = require('../lib/utils') import modify = require("./upgrade/ModifyProperties"); import doT = require('../lib/doT'); import projectAction = require(...
<filename>src/osuApi/osuApiService.ts import Beatmap, {createBeatmapFromOsuApi} from '../server/models/beatmap'; import OsuBeatmapset from './models/beatmapset'; import fetch, {Headers} from 'cross-fetch'; import OsuBeatmap from './models/beatmap'; /** * The url of the osu! API. */ const apiUrl: string = 'https://os...
<reponame>navikt/finn-kandidat<gh_stars>0 import { erGyldigFnr } from '../pages/før-du-begynner/fnr-input/fnrUtils'; import { ArbeidstidBehov, FysiskBehov, GrunnleggendeBehov, ArbeidsmijøBehov } from '../types/Behov'; const config = { antallKandidater: 200, tidligstSistEndret: new Date(2019, 0, 1), tidlig...
import * as React from 'react'; import classNames from 'classnames'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import Row from '../row'; import Col from '../col'; import { WrappedFormUtils } from './Form'; import { FIELD_META_PROP } from './constants'; export interface FormItemLabelColOption { sp...
<gh_stars>100-1000 import util from 'util'; import Web3 from 'web3'; import { addressesAreEqual, combineHexStrings, stripHexPrefix, } from './BytesHelper'; import { SigningMethod, TypedSignature, address, } from './types'; export enum SIGNATURE_TYPES { NO_PREPEND = 0, DECIMAL = 1, HEXADECIMAL = 2, }...