text
stringlengths
3.08k
15.5k
/** * Copyright © 2019 Johnson & Johnson * * 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 agreed to i...
<reponame>telestoworld/builder import { action } from 'typesafe-actions' import { ChainId } from 'tw-schemas' import { buildTransactionPayload } from 'telestoworld-dapps/dist/modules/transaction/utils' import { Collection } from 'modules/collection/types' import { Item } from './types' // Fetch items export const FET...
import {provide, Injectable} from '@angular/core'; import {Http, Headers, Request, RequestOptions, RequestOptionsArgs, RequestMethod, Response} from '@angular/http'; import {Observable} from 'rxjs/Observable'; // Avoid TS error "cannot find name escape" declare var escape: any; export interface IAuthConfig { header...
<reponame>odockal/vscode-extension-tester import { AbstractElement } from "../AbstractElement"; import { ViewContent, ViewItem, waitForAttributeValue } from "../../../extester"; import { By, Key } from "selenium-webdriver"; /** * Page object representing a collapsible content section of the side bar view */ export c...
import React, { useState, useMemo } from 'react'; import styled from 'styled-components'; import { space, flexbox, typography, layout, border, color, boxShadow, position, grid, BorderProps, BoxShadowProps, PositionProps, } from 'styled-system'; import { throttle } from '...
import Zet from "zet"; export class Node { id: string; deps: string[]; children: Set<Node> = new Set(); ancestors: Set<string> = new Set(); /** * @param id * @param deps IDs of the nodes on which this node depends */ constructor(id: string, deps: readonly string[] = []) { this.id = id; th...
/// <reference path="../node_modules/@types/jquery/index.d.ts" /> /// <reference path="../node_modules/@types/handlebars/index.d.ts" /> /// <reference path="../node_modules/@types/q/index.d.ts" /> import { createTodo, deleteTodo, getTodos, updateTodo, updateTodos } from './http'; declare const Router: any; import * ...
import { decrypt, ecCurve, EncryptedMessage, getPubKeyPoint, IMetadata, Point, Polynomial, PolynomialID, PublicPolynomial, PublicPolynomialMap, PublicShare, PublicSharePolyIDShareIndexMap, Share, ShareDescriptionMap, ShareMap, ShareStore, StringifiedType, toPrivKeyECC, } from "@tkey/...
<reponame>KorigamiK/VIR import { AfterViewInit, ChangeDetectorRef, Component, HostBinding, OnDestroy, OnInit, ViewChild, } from '@angular/core' import {Router} from '@angular/router' import {OverlayContainer} from '@angular/cdk/overlay' import {DataStore} from '../data/data-store' import {ItemsComponent} ...
<reponame>atomist/sdm-pack-jira<filename>lib/support/commands/createBugIssue.ts /* * Copyright © 2019 Atomist, 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.a...
import errors from '../../../../../../../ui/widget/ui.errors'; import dateUtils from '../../../../../../../core/utils/date'; import { isDefined } from '../../../../../../../core/utils/type'; import dateLocalization from '../../../../../../../localization/date'; import timeZoneUtils from '../../../../../../../ui/schedul...
<filename>src/useTubular.ts<gh_stars>0 import * as React from 'react'; import { ColumnModel, CompareOperators, DataGridStorage, GridRequest, GridResponse, LocalStorage, NullStorage, sortColumnArray, TubularHttpClientAbstract, } from 'tubular-common'; import { getLocalDataSource, tbId...
/* * Copyright 2020 Spotify AB * * 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 agreed to i...
#!/usr/bin/env ts-node-script /// <reference types="node"/> import path = require('path'); import fs = require('fs'); import { BaseIntrinsic, Override, BASE_INTRINSICS, LEGACY_ALIASES, BASE_INTRINSIC_DATA } from './intrinsics-data'; const OUT_FILE_PATH = path.resolve(__dirname, '..', 'GetIntrinsic.d.ts'); const { ge...
<gh_stars>0 import { HookEvent, isResultSuccessful, ResultFilter, Run, RunSummary, SlackHook, } from '@sorry-cypress/common'; import { getDashboardRunURL } from '@src/lib/urls'; import axios from 'axios'; import { truncate } from 'lodash'; interface SlackReporterEventPayload { eventType: HookEvent; run...
<filename>src/state/trades/selectors.ts import { selectors as swapSelectors } from 'airswap.js/src/swap/redux/'; import { getFormattedSwapLightFills } from 'airswap.js/src/swaplight/redux/selectors'; import _ from 'lodash'; import _fp from 'lodash/fp'; import moment from 'moment'; import { createSelector } from 'resele...
import * as fs from 'fs'; import * as fsPath from 'path'; import {Locale} from './locale'; import {Pod} from './pod'; export interface FrontMatterResult { frontMatter?: string; body?: string; } export class DataType { static isArray(value: any) { if (Array.isArray) { return Array.isArray(value); ...
<gh_stars>100-1000 import { ReactNode } from 'react'; import { ErrorResponseDto } from '../service/response.types'; import { AbstractActions } from './AbstractActions'; import { Action, ActionType, PromiseAction, StateModifier } from './Action'; export class LoadableDefinition< StateType extends StateWithLoadables<a...
import singleton from "https://raw.githubusercontent.com/grevend/singleton/main/mod.ts"; export type VPinNumber = | 2 | 3 | 4 | 17 | 27 | 22 | 10 | 9 | 11 | 0 | 5 | 6 | 13 | 19 | 26 | 14 | 15 | 18 | 23 | 24 | 25 | 8 | 7 | 1 | 12 | 16 | 20 | 21; export enum PinDire...
import {Injectable, Input} from '@angular/core'; import {HttpClient, HttpHeaders} from "@angular/common/http"; // import {ElectronService} from "./electron.service"; // import {AppComponent} from "./app.component"; import {ElectronService} from "../../electron.service"; // import * as ff from "./process/fcoin_process....
<gh_stars>10-100 import { assert } from './assert'; function splitDomain(domain: string): string[] { // Split e.g. 'itunes.apple.com' into ['itunes', 'apple.com'], 'a.b.c.d' // into ['a', 'b', 'c.d']. // We keep base and TLD together to avoid unnecessary common lookups. const parts = domain.split('.');...
import * as tf from '@tensorflow/tfjs'; import * as tfvis from '@tensorflow/tfjs-vis'; // eslint-disable-next-line camelcase interface CarsData { Miles_per_Gallon: number; Horsepower: number; } interface InputData {mpg: number; horsepower: number;} interface ConvertedInputs { inputs: tf.Tensor<tf.Rank>; labels: t...
<gh_stars>0 /* ** Copyright 2019 Bloomberg Finance L.P. ** ** 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...
import * as yaml from 'js-yaml' import { Pipeline } from '../../pipeline' import * as nodes from '../../blocks' import { EnvironmentKey, resolveEnvironment, EnvironmentResolver } from '../../environment' import * as GLTypes from './types' let stageIndex = 0 let stages: string[] = [] let branchRestrictions: st...
import React, { Component } from 'react'; import { View, Text, AsyncStorage, ActivityIndicator, StatusBar, KeyboardAvoidingView, Dimensions, NetInfo } from 'react-native'; import { _currencies } from '../config/Data'; import { InputWithoutLabel } from '../components/TextInput/InputWithoutLabel'; import { CurrencyPicker...
/* eslint-disable react/jsx-key */ import { Anger, Brilliance, Detection, Enlightenment, Fox, Fury, Giants, Perfection, Power, Protection, Rage, Reflection, Skill, Titans, Twins, Vitriol, } from '@bibliotheca-dao/ui-lib/icons/orders'; import classNames from 'classnames'; import type { ...
<gh_stars>0 // Type definitions for @styled-system/css 5.0 // Project: https://github.com/styled-system/styled-system // Definitions by: <NAME> <https://github.com/sebald> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.1 import * as CSS from 'csstype'; /** * Omit exists i...
<filename>src/jigsaw/pc-components/checkbox/checkbox.ts /** * Created by 10177553 on 2017/3/14. */ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, forwardRef, Injector, Input, NgZone, OnInit, Output, Renderer2 } from '@angular/...
<filename>src/commands/openFileAtRevision.ts import { TextDocumentShowOptions, TextEditor, Uri } from 'vscode'; import { FileAnnotationType } from '../configuration'; import { Commands, GlyphChars, quickPickTitleMaxChars } from '../constants'; import type { Container } from '../container'; import { GitUri } from '../gi...
import { Component, ContentChild, EventEmitter, HostBinding, Input, OnInit, OnChanges, Output, TemplateRef, ViewChild, } from '@angular/core'; import { ListFlexItemDirective, ListFooterDirective, ListHeaderDirective, ListItemDirective, ListSectionHeaderDirective, } from './list.directive'...
<filename>src/index.ts import express = require("express"); import { ActionExecutor } from "./actionExecutor"; import { ActionSelector } from "./actionSelector"; import { BitcoinCoreRpc } from "./bitcoin/bitcoinCoreRpc"; import { BitcoinFeeService } from "./bitcoin/bitcoinFeeService"; import { ComitNode } from "./comit...
import { IConnection, TextDocuments, Diagnostic, createConnection, IPCMessageReader, IPCMessageWriter, InitializeParams, InitializeResult, CodeActionKind, CodeActionParams, HoverParams, CompletionItem, CompletionParams, DeclarationParams, RenameParams, DocumentFormattingParams, CodeAct...
import React, { Component, Fragment } from "react"; import { Link, RouteComponentProps } from "react-router-dom"; import { Table, Layout, Breadcrumb, PageHeader, Button, notification, Popconfirm, Row, Col, Drawer, Spin } from 'antd'; import { ExclamationCircleOutlined, EllipsisOutlined } from '@ant-design/icon...
/* * Copyright 2018- The Pixie Authors. * * 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 ag...
import * as React from 'react' import styled from '~/modules/theme' import * as IconFiles from '~/lib/iconFiles' import * as Icon from '~/components/Icon' import * as Menu from './Menu' import * as Theme from '../../modules/theme' //------------------------------------------------------------------------------ // Com...
<reponame>rox1338/wallet import { WhaleApiClient } from '@defichain/whale-api-client' import { CollateralToken, LoanScheme, LoanToken, LoanVaultActive, LoanVaultLiquidated, LoanVaultState } from '@defichain/whale-api-client/dist/api/loan' import { ActivePrice } from '@defichain/whale-api-client/dist/api/pri...
<reponame>FoxxieBot/packages /* eslint-disable no-unused-vars */ import { join } from 'path'; import { PaginatedMessage } from '@sapphire/discord.js-utilities'; export const enum Colors { PokemonBird = 0x969696, Red = 0xff5c5c, Orange = 0xf79454, Yellow = 0xffdb5c, Green = 0x5dba7d, TheCornerSt...
import Knex = require('knex'); import { QueryBuilder, Transaction } from 'knex'; import cuid from 'cuid'; import { IntrospectionFieldType } from './knex-prisma-generate'; export interface IKnexPrismaUtilProps { knex: Knex; schema: string; } interface IProps extends IKnexPrismaUtilProps { fields: { [name: string...
import { IShelterExtended, IFileExtended, logger, LOG_TYPE } from "./common"; import { Enums } from "../../src/app/shared/types/enums"; import { CLEAR_CACHE_INTERVAL, MAX_TIME } from './constants'; import { Schema, model, Document } from "mongoose"; import { IFile, IShelter } from "../../src/app/shared/types/interfaces...
// -- copyright // OpenProject is a project management system. // Copyright (C) 2012-2015 the OpenProject Foundation (OPF) // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License version 3. // // OpenProject is a fork of ChiliProject, which is a...
/** * @adonisjs/http-server * * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /// <reference path="../adonis-typings/index.ts" /> import Cache from 'tmp-cache' import { stat, Stats } from 'fs' import { Rou...
<filename>packages/extension/src/stores/root.tsx import { ChainStore } from "./chain"; import { AnalyticsStore } from "./analytics"; import { EmbedChainInfos } from "../config"; import { FiatCurrencies } from "../config.ui"; import { KeyRingStore, InteractionStore, QueriesStore, CoinGeckoPriceStore, AccountSt...
<filename>plugins/node/opentelemetry-instrumentation-knex/test/index.test.ts /* * Copyright The OpenTelemetry Authors * * 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://w...
<filename>src/lib/util.ts<gh_stars>0 import * as anchor from "@project-serum/anchor"; import { Program, Provider, web3 } from "@project-serum/anchor"; import { AccountInfo, Token, TOKEN_PROGRAM_ID } from "@solana/spl-token"; import { TokenGuard } from "../../target/types/token_guard"; import { Cluster, clusterApiUrl } ...
const jiraClient = require('jira-connector'); import { getConfigurationByKey, getGlobalStateConfiguration } from '../shared/configuration'; import { CONFIG, CREDENTIALS_SEPARATOR } from '../shared/constants'; import { printErrorMessageInOutputAndShowAlert } from '../shared/log-utilities'; import { IAddComment, IAdd...
/*--------------------------------------------------------------------------------------------- * Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *--------------------------------------------------------------...
import React, { useEffect, useState } from 'react' import { graphql, StaticQuery } from 'gatsby' import styled, { css, keyframes } from 'styled-components' import { Section, Heading } from '@components' import Media from '@components/Media/Media.Img' import ScrollIndicator from '@components/ScrollIndicator' import Lay...
import { Box, Button, Container, FormControl, FormLabel, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, Switch, Text, Textarea, useColorModeValue, useDisclosure, } from '@chakra-ui/react' import React, {useRef, useState} from 'react' import {V...
<filename>packages/server/src/models/User.ts import mongoose, { Document, Schema } from "mongoose"; import { ObjectId } from "bson"; import { TUser } from "@upswyng/types"; import removeUndefinedFields from "../utility/removeUndefinedFields"; export interface TUserDocument extends Document { _id: ObjectId; facebo...
import test from 'ava' import { nanoid } from 'nanoid' import { getConnection, getRepository } from 'typeorm' import _ from 'lodash' import { register } from '../../src/core/block' import { createDatabaseCon } from '../../src/clients/db/orm' import { DbtBlock } from '../../src/core/block/dbt' import { SqlBlock } from '...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Operative Company. All rights reserved. * Licensed under the MIT license. See LICENSE.txt in the project root for license information. * @author <NAME> <<EMAIL>> *--------------------------------------...
const appContainer = document.getElementById("app") as HTMLDivElement; // Drap and Drop Inerfaces interface Draggable { dragStartHandler(event: DragEvent): void; dragEndHandler?(event: DragEvent): void; } interface DragTarget { dragOverHandler(event: DragEvent): void; dropHandler(event: DragEvent): void; dr...
/*************************************************************************************************** * Copyright (c) Red Hat, Inc. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. *******************************************************************...
import Link from "next/link"; import { useFormInput } from "../utils"; import { FormEvent, useEffect, useState } from "react"; import { BackIcon, InfoIcon } from "../components/icons"; import { FormButton, FormMessage } from "../components/form-utils"; import { useRegisterState } from "../stores"; import { motion } fro...
<filename>lib/pxtextensions.ts import * as EventEmitter from 'eventemitter3'; export namespace pxt.extensions { export interface ReadResponse { asm?: string; code?: string; json?: string; jres?: string; } export function inIframe() { try { return windo...
import { H256 } from "codechain-sdk/lib/core/classes"; import { Client, CountResponse, DeleteDocumentResponse, SearchResponse } from "elasticsearch"; import { Account, QueryAccount } from "./actions/QueryAccount"; import { QueryBlock } from "./actions/QueryBlock"; import { QueryIndex } from "./actions/QueryIndex"; impo...
import { Game } from '../Game'; import { difficultyMatrix } from '../../constants/common'; import { saveStorageData } from '../../utils/storage'; import { sortArrayByKey } from '../../utils/common'; import { IDifficultyMatrixItem, IGameScoreboardItem } from '../../types/global'; function displayMainMenuModal(): voi...
import chokidar, { FSWatcher } from 'chokidar'; import chalk from 'chalk'; import glob from 'glob'; import bodyParser from 'body-parser'; import httpProxyMiddle from 'http-proxy-middleware'; import cors from 'cors'; import { dealPath, createMockHandler, winPath, warn, warnbg, error, errorbg, judge } from './utils/tools...
<filename>src/utils/datepicker.utils.ts<gh_stars>1-10 import { startOfMonth, startOfWeek, isValid, endOfMonth, addDays, format as date_format, parse } from "date-fns"; import {chunk, get, isString, isNaN} from 'lodash' import { DayListShape, DatePickerOutPut, MainDate, defaultConfigs } from "../interfaces/datepicker...
import React, { useState, useEffect } from "react"; import classNames from "classnames"; import style from "./style.css"; import { RouteComponentProps } from "react-router"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { SearchBar, Profile, Popover, SegmentContainer, Tod...
import { SagaIterator } from "@redux-saga/types"; import differenceInMinutes from "date-fns/differenceInMinutes"; import * as R from "ramda"; import { call, select } from "redux-saga/effects"; import { BaseEntityModel, EntityGroup, Mapping, ProjectsByIdModel, ReduxState, TimeEntriesByIdModel, TimeEntryMod...
<gh_stars>0 /** * Copyright 2020 Opstrace, 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 ...
import esbuild from '@umijs/bundler-utils/compiled/esbuild'; import { chokidar, lodash, register } from '@umijs/utils'; import assert from 'assert'; import { existsSync } from 'fs'; import { join } from 'path'; import joi from '../../compiled/@hapi/joi'; import { diff } from '../../compiled/just-diff'; import { DEFAU...
import React, {useState, useEffect} from 'react' import { Spacing, Panel, PanelHeader, PanelSection, Toast, NavigationButton, TextInput, PanelSectionHeader, Image, PlaceholderImage, Card, DescriptionList, DescriptionListItem } from '@karma.run/ui' import {MaterialIconClose, MaterialIconSaveO...
<gh_stars>0 import debug, { IDebugger } from 'debug'; import availableLocales from 'cldr-core/availableLocales.json'; import Territory from '../models/territories.model'; import { readFile } from 'fs/promises'; import { resolve } from 'path'; import { IIdentity } from '../../common/interfaces/identity.interface'; impor...
import { Text, Checkbox, Flex, Heading, UnorderedList, ListItem, Link, NumberInput, NumberInputField, NumberInputStepper, NumberIncrementStepper, NumberDecrementStepper, Select, Slider, SliderFilledTrack, SliderThumb, SliderTrack, Stack, useColorMode, } from "@chakra-ui/react"; imp...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.md in the project root for license information. *-------------------------------------------------------------------...
import { Person } from './common-interfaces'; export interface ErrorResultResponse { error: string; result: any; } /** * replaces accented characters with their closes neighbour * in english characters * @link https://stackoverflow.com/a/37511463/6441976 */ export function removeAccent<T>(str: T) { if (type...
/* * MIT License * * Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
<reponame>websega/currency-converter import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import type { RootState } from '../../../app/store'; import { EnumSymbolKeys, ExchangeRates, SupportedCurrenciesSymbols, SymbolsInfo, } from '../../../shared/api/interfaces'; import { fetchInitialData, Fetc...
<filename>src/log.ts import { Table, Column, Model, CreatedAt, IsUUID, UpdatedAt, DeletedAt, Sequelize, DataType, PrimaryKey } from 'sequelize-typescript'; import * as Rx from 'rxjs'; import * as uuid from 'uuid'; import { dbConnect, output } from './cli-helper'; import * as slaClock from './sla-clock'; import { Ta...
import {css, html, PropertyValues} from 'lit'; import {customElement, property, query} from 'lit/decorators.js'; import {HandDrawnBase, RoughObjCanvas, RoughObjSvg} from './base/hand-drawn-base'; import './hand-drawn-radio'; import {HandDrawnItem} from "./hand-drawn-item"; export interface itemEl extends HandDrawnItem...
<gh_stars>1-10 // Type definitions for @react-native-community/cli 2.0 // Project: https://github.com/react-native-community/cli // Definitions by: agathekieny <https://github.com/agathekieny> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 export interface Command { name...
import electron from 'electron'; import installExtension, { REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS, } from 'electron-devtools-installer'; import { registerWindow, unRegisterWindow } from './middlewares/forwardToRenderer'; import isMainProcess from './utils/isMainProcess'; import wakatimeIcon from './imgs/wakatime-1...
<filename>projects/clampy-js/ngx-clampy/src/lib/clamp.directive.ts import { AfterViewInit, Directive, ElementRef, Input, Renderer2, SecurityContext, Output, EventEmitter, OnDestroy, OnChanges, SimpleChanges, HostListener } from '@angular/core'; import { DomSanitizer } from '@angular/platform-bro...
<reponame>RentDynamics/rentdynamics-js import jsSHA from 'jssha'; declare var global: any; export class Client { private helpers: ClientHelpers; private options: ClientOptions; public _fetch: any; constructor(options: ClientOptions) { this.options = options; this.helpers = new Client...
import gql from 'graphql-tag'; /** * apollo graphQL query fragment to retrieve common fields for a target list view */ const FACETFIELDS = gql` fragment facetFields on Facet { facet modifier dataType binSize singleResponse:single_response count values { name count:value ...
<filename>source/ts/core/RequestValidator.ts<gh_stars>0 import * as path from 'path'; import * as sqlite3 from 'sqlite3'; import { EventEmitter } from 'events'; import { CsvDataUtil } from './CsvDataUtil'; import { DatabaseUtil, DatabaseHandle } from './DatabaseUtil'; import { DataRequest } from './DataRequest'; import...
/* * Copyright (c) 2020 Ford Motor Company * * 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...
import { getOnlineDiff, OnlineEntry } from "../util/utils"; import { Instance as Notification } from "../notification"; import windowManager from "../ui/window_manager"; import settings from "../settings"; import Log from "../util/log"; import translate, { Translation } from "../translation"; import { WatchlistCache } ...
<filename>src/core.ts import { SuperArray, Class } from "./type"; import { equality, notDefined } from "./utils"; /** * keep track of the history of value a property had */ export class History<T extends Class<any>, K extends keyof T> { private history: SuperArray<[number, T[K] | Symbol]>; constructo...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. import { Injectable, EventEmitter, Output } from "@angular/core"; import { Http, Response, Headers, RequestOptions } from "@angular/http"; import { Player, Leaderboard...
import * as chai from "chai"; import * as fs from "fs"; import * as path from "path"; import {AstVisitor} from "../../main/typescript/AstVisitor"; import {Value} from "../../main/typescript/Value"; import {MutableContext} from "../../main/typescript/MutableContext"; import {Rule} from "../../main/typescript/Rule"; impo...
import { PacketCarDamageParser, PacketCarSetupDataParser, PacketCarStatusDataParser, PacketCarTelemetryDataParser, PacketEventDataParser, PacketFinalClassificationDataParser, PacketLapDataParser, PacketLobbyInfoDataParser, PacketMotionDataParser, PacketParticipantsDataParser, PacketSessionDataPars...
<reponame>timbaileyjones/github1s<gh_stars>0 /** * @file github ref(branch or tag) utils * @author netcon */ import * as vscode from 'vscode'; import { reuseable } from './func'; import { getGithubBranchRefs, getGithubTagRefs } from '../api'; export interface RepositoryRef { name: string; ref: string; node_id: ...
<reponame>mixedCase/civil-ts<filename>src/time.ts /** * @since 0.1.0 */ import { isBoundedInteger } from "./utils"; /** * @since 0.1.0 */ export interface CivilTimeConstructorObject { hour: number; minute: number; second: number; millisecond?: number; } /** * Represents wall clock time through its hour, ...
import * as vscode from 'vscode'; import * as path from 'path'; import * as fs from "fs"; import * as plist from 'plist'; import * as json from 'format-json'; import * as YAML from 'yamljs'; import {SupportedLanguage} from './languages' export interface IConfig { replaceExistingFile : boolean } export class Fil...
import Alert from 'react-bootstrap/Alert'; import Button from 'react-bootstrap/Button'; import ButtonGroup from 'react-bootstrap/ButtonGroup'; import Form from 'react-bootstrap/Form'; import Row from 'react-bootstrap/Row'; import React, {useEffect, useGlobal, useRef, useState} from 'reactn'; import {newResidentRecord, ...
/* * Copyright 2020 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...
import React, { useRef, useEffect, useReducer } from 'react'; import { makeStyles, createStyles } from '@material-ui/core/styles'; import { Howl } from 'howler'; import uEmojiParser from 'universal-emoji-parser'; const ipc = require('electron').ipcRenderer; const DEFAULT_TIMEOUT = 4000; const useStyles = makeStyles...
<gh_stars>1-10 import L from '../../../common/logger'; import QueueHelper from './queuehelper'; import ACLManager from '../broker/aclmanager'; import ApiProductsService from '../apiProducts.service'; import App = Components.Schemas.App; import APIProduct = Components.Schemas.APIProduct; import Attributes = Components...
import TransactionRepo from 'core/repository/transaction/pg'; import { Block } from 'shared/model/block'; import db, { pgpE } from 'shared/driver/db/index'; import config from 'shared/config'; import queries from 'core/repository/queries/block'; import TransactionPGRepo from 'core/repository/transaction/pg'; import { ...
import React, { useState, useEffect, useRef } from 'react'; import { StyleSheet, Text, View, FlatList, Modal, Image, Animated, Platform } from 'react-native'; import { AppColors, DebitCardString, layouting, DebitCardOptions, CommonString, testIDs, ErrorMessages } from '../utils/constants'; import CardInfo from '../comp...
import { Event } from '../context/Event'; export declare type Sender = { id: string; }; export declare type Recipient = { id: string; }; declare type QuickReply = { payload: string; }; declare type MediaAttachmentPayload = { url: string; }; declare type LocationAttachmentPayload = { coordinates: { ...
import { IS_DIST_MODE, IS_PACKAGED, IS_WORKER, workerSerializedConfig, } from "@common/config"; import type { ChildProcess, ForkOptions } from "child_process"; import { fork } from "child_process"; import { EventEmitter } from "events"; import path from "path"; import type { Readable } from "stream"; import ty...
import { CmrCollection, CmrUmmVariable } from './cmr'; import { RequestValidationError } from './errors'; export interface HarmonyVariable { id: string; name: string; fullPath: string; relatedUrls?: HarmonyRelatedUrl[]; type?: string; subtype?: string; } export interface HarmonyRelatedUrl { url: string;...
<filename>types/viewporter/viewporter-tests.ts /// <reference types="jquery"/> /// <reference types="google-maps"/> function test_map() { viewporter.preventPageScroll = true; var eventName = viewporter.ACTIVE ? 'viewportready' : "load"; google.maps.event.addDomListener(window, eventName, function () { ...
<reponame>vote-by-mail/website import mailgun from 'mailgun-js' import marked from 'marked' import nunjucks from 'nunjucks' import { processEnvOrThrow, StateInfo, ContactMethod, ImplementedState, formatPhoneNumber } from '../../common' import { fillMinnesota, fillNewHampshire, fillNorthCarolina, fillMassachusetts, fil...
<reponame>itohatweb/Discordeno import { eventHandlers } from "../bot.ts"; import { cache, cacheHandlers } from "../cache.ts"; import { avatarURL } from "../helpers/members/avatar_url.ts"; import { banMember } from "../helpers/members/ban_member.ts"; import { editMember } from "../helpers/members/edit_member.ts"; import...
<reponame>FINRAOS/herd-ui /* * Copyright 2018 herd-ui contributors * * 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 ap...