text
stringlengths
10
953k
import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient"; import { SignRequest, SignResponse } from "../models/models_0"; import { deserializeAws_json1_1SignCommand, serializeAws_json1_1SignCommand } from "../protocols/Aws_json1_1"; import { getSerdePlugin } from "@aws-sdk/middlewar...
import { PLANKS, OAK } from '../../blocks'; export const oakPlanks = { id: 'oakPlanks', itemId: PLANKS, ingredients: [ { id: OAK, count: 1, }, ], count: 4, };
import { LinearGauge } from '../linear-gauge'; import { Axis, Pointer } from '../axes/axis'; import { Annotation, TooltipSettings } from '../model/base'; import { FontModel } from '../model/base-model'; import { Size, GaugeLocation } from '../utils/helper'; /** * @private * Specifies LienarGauge Events */ /** @pri...
import { RequirementError, RequirementType } from "../requirement"; import { getError } from "./get-error"; describe("geError", () => { it("should create an ExpersError", () => { const error = getError( RequirementType.bodyParam, "user", RequirementError.type ); expect(error).toBeTruth...
import React from 'react'; import { NotificationContainer } from 'react-notifications'; import SideBar from './SideBar'; import Header from './Header' const Layout = ({ children }) => { return ( <div className='flex'> <NotificationContainer /> <SideBar /> <div className='content'> <He...
import { Directive, ElementRef, Inject, Renderer, forwardRef } from '@angular/core'; import { App } from '../app/app'; import { Config } from '../../config/config'; import { Platform } from '../../platform/platform'; /** * @hidden */ @Directive({ selector: '.click-block' }) export class ClickBlock { private _t...
import { OnInit } from '@angular/core'; import { DataTableRow } from './row.component'; import { CellCallback } from '../types/cell-callback.type'; export declare class DataTableColumn implements OnInit { header: string; sortable: boolean; resizable: boolean; property: string; styleClass: string; ...
import Handlebars from 'handlebars/runtime'; import { HttpClient } from '../HttpClient'; import { registerHandlebarHelpers } from './registerHandlebarHelpers'; describe('registerHandlebarHelpers', () => { it('should register the helpers', () => { registerHandlebarHelpers({ httpClient: HttpClie...
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { enableProdMode } from '@angular/core'; import { environment } from './environments/environment'; import { AppModule } from './app/app.module'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapModu...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="sk-SK"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About StrongHands</source> <translation type="unfinish...
import * as B from 'benchmark'; import { now } from '../mol-util/now'; import { Scheduler } from '../mol-task/util/scheduler'; export namespace Tasks { export class Yielding { lastUpdated = 0; yield(): Promise<void> | void { const t = now(); if (t - this.lastUpdated < 250) r...
import React, { ReactElement, useState } from 'react'; import { Helmet } from 'react-helmet'; import { connect, ConnectedProps } from 'react-redux'; import { Zoom, Fab, SvgIcon } from '@material-ui/core'; import Board from '../../components/Board'; import RenderVisualization from './components/RenderVisualization'; im...
/* * This module is to be imported ONLY by the AppModule * Contains all global services * */ import { AngularSplitModule } from 'angular-split'; // @angular stuff import { NgModule, SkipSelf, Optional } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/ro...
import { TwitchEbsTools } from '../../src'; import { TwitchPayload } from '../../src/types'; describe('verifyRole() static method', () => { it('returns true for correct role', () => { const samplePayload = { role: 'broadcaster', } as TwitchPayload; const sampleRole = 'broadcaster'; expect(Twit...
import { Component, OnInit } from '@angular/core'; import {WebService} from '../../services/web.service' @Component({ selector: 'ngx-dashboard', templateUrl: './dashboard.component.html', }) export class DashboardComponent implements OnInit{ constructor (public webServices: WebService){} ngOnInit(): void{ ...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import {FormsModule } from '@angular/forms'; import { AppComponent } from './app.component'; import { ProductListComponent} from './products/product-list.component'; @NgModule({ imports: [ BrowserModule,FormsModule ...
import React from "react"; import { Botoes, ImagemDivMenu, ImagemMenu } from "./styles"; import ContainerBotoes from "../Botoes/index"; import LabelTitulo from "../../Shared/Titulo/"; import FotoCarro from "../../../assets/carro.jpg"; import { useHistory } from "react-router-dom"; const CorpoMenu: React.FC = () => { ...
/** * (C) Copyright IBM Corp. 2020. * * 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 agree...
import {Entity, PrimaryGeneratedColumn, Column, ManyToOne} from "../../../../src"; import {User} from "./User"; @Entity() export class Photo { @PrimaryGeneratedColumn() id: number; @Column() url: string; @ManyToOne("User", "photos") user: User; }
import { QLDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QLDBClient"; import { CancelJournalKinesisStreamRequest, CancelJournalKinesisStreamResponse } from "../models/models_0"; import { deserializeAws_restJson1CancelJournalKinesisStreamCommand, serializeAws_restJson1CancelJournalKinesisS...
import marked from 'marked'; import glob from 'glob'; import { promisify } from 'util'; import path from 'path'; import fs from 'fs'; import url from 'url'; import { rimraf, mkdirp } from '@stencil/utils'; import { collectHeadingMetadata, changeCodeCreation, localizeMarkdownLink } from './markdown-renderer'; import fro...
import { Component } from '@angular/core'; import { latLng, tileLayer } from '@vchangal/leaflet'; @Component({ selector: 'leafletBaselayersDemo', templateUrl: './baselayers-demo.component.html' }) export class LeafletBaseLayersDemoComponent { // Open Street Map and Open Cycle Map definitions LAYER_OCM = { id: ...
import { ContractAddresses, getContractAddressesForChainOrThrow } from '@0x/contract-addresses'; import { assetDataUtils } from '@0x/order-utils'; import { ObjectMap } from '@0x/types'; import { BigNumber } from '@0x/utils'; export const CHAIN_ID = 1337; // tslint:disable-next-line:custom-no-magic-numbers export const...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
// @generated /* tslint:disable */ /* eslint-disable */ // This file was automatically generated and should not be edited. import { PipelineRunStatus } from "./../../types/globalTypes"; // ==================================================== // GraphQL fragment: RunTableRunFragment // ================================...
/** * @Date: 2017-02-03T18:03:46-06:00 * @Last modified time: 2017-03-03T00:55:14-06:00 * @License: 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....
import { environment } from 'src/environments/environment'; export interface LanguageConfig { tag: string, path: string, } export interface Environment { production: boolean, apiUrl: string, // full url (not including the trailing slash) of the backend oauthServerUrl: string, // full url (not including th...
import * as fs from "fs"; const rmfr = require('rmfr'); const chalk = require('chalk'); export class FileUtils { /* Check if a file exists */ verifyFileExists(filePath: string): boolean { return (fs.existsSync(filePath)); } /* Deletes all contents within a directory : TODO: confirm de...
import React, { Component, ReactNode } from "react"; import { GameOverStatus } from "./GameOverStatus"; import { StartButton } from "./StartButton"; import { TurnDisplay } from "./TurnDisplay"; export namespace MultipleGames { export interface Properties { /** * An object map from the names of games (exactly as ...
function sumDigits(number: string): number { return number .split('') .reduce((accumulator, currentValue) => accumulator + parseInt(currentValue, 10), 0); } function orderWeight(strng: string): string { return strng .split(' ') .sort((a, b) => { const sumA = sumDigits(a); const sumB = s...
// Copyright 2020 The Oppia Authors. 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 // // Unless required by ap...
import { stringify } from 'query-string'; import { Bounds, locationToMapTileKey } from '../Geo'; export interface HotelsFilterJSON { checkIn: string; checkOut: string; adults: number; children?: number[] | null; maxPrice?: number | null; minPrice?: number | null; minReviewScore?: number | null; placeIds?: str...
/* tslint:disable:object-literal-sort-keys */ // tslint:disable:object-literal-shorthand // tslint:disable:max-line-length // tslint:disable:member-ordering // tslint:disable:prefer-const import { IgxFinancialChartModule } from "igniteui-angular-charts/ES5/igx-financial-chart-module"; import { FinancialChartAnnotation...
/* * Copyright 2019 IBM 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 agreed to ...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import * as assert from "assert"; import { KeyClient } from "../src"; import { isNode } from "@azure/core-http"; import { testPollerProperties } from "./utils/recorderUtils"; import { retry } from "./utils/recorderUtils"; import { env, isPlayba...
import { DateType } from "kryo/types/date"; import { DocumentType } from "kryo/types/document"; import { Ucs2StringType } from "kryo/types/ucs2-string"; /** * Example (JSON HTTP response): * * ``` * { * "message": "Hi Bob, I'd like to add you as a contact.", * "time": "2018-01-09T14:42:17Z" * } * ``` */ exp...
import { Component, Input } from '@angular/core'; import * as Survey from 'survey-angular'; import { InsertService } from '../insert/insert.service'; import { addQuestionTypes } from './question-types'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { Router, ActivatedRoute } from '@angular/router'; @C...
import { Component, OnDestroy, OnInit, ViewEncapsulation } from "@angular/core"; import { AngularFireStorage } from "@angular/fire/storage"; import { FormBuilder, FormGroup } from "@angular/forms"; import { DomSanitizer, SafeStyle } from "@angular/platform-browser"; import { Subscription } from "rxjs"; import { concatM...
import { AllowedAttributes, CctBinaryObjectType } from './essentials/cct/CctBinaryObject'; export type UdtBinaryObjectAttributes = AllowedAttributes; /** * udt:BinaryObjectType * A set of finite-length sequences of binary octets. * Namespace: urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2 * S...
export * from './content'
/** * Indicates that the pair has insufficient reserves for a desired output amount. I.e. the amount of output cannot be * obtained by sending any amount of input. */ export declare class InsufficientReservesError extends Error { readonly isInsufficientReservesError: true constructor() } /** * Indicates that th...
import axios, { AxiosRequestConfig } from 'axios'; import * as LRU from 'lru-cache'; import { FilmEntity } from '../entities/FilmEntity'; export class FilmsGateway { private static readonly API_SEGMENT = 'films/'; private readonly _api: string; private readonly _axiosConfig: AxiosRequestConfig; ...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /// <amd-module name="@nguniversal/builders/src/static-generator/index" /> import { BuilderContext, BuilderOutput } fr...
// Copyright (c) 2016 Vadim Macagon // MIT License, see LICENSE file for full terms. export const DISPATCHER_IPC_KEY = 'ipc-dispatcher'; export const dispatcherChannels = { BROADCAST: 'broadcast', MESSAGE: 'send', REQUEST: 'request', }; export const ipcChannels = { TEST_BROADCAST_MSG: 'test:broadcast-msg', ...
/* Copyright 2020 Adobe. All rights reserved. Copyright 2021 Gaoding. All rights reserved. This file is licensed to you 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...
/** * Scanning API * Use the Vulnerability Scanning Service (VSS) APIs to manage scan recipes, targets, and reports. * OpenAPI spec version: 20210215 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2021, Oracle and/or its affiliates. Al...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RuesRoutingModule } from './rues-routing.module'; import { RueListComponent } from './rue-list/rue-list.component'; import { RueFormComponent } from './rue-form/rue-form.component'; import {IncludesModule} from "../inclu...
import { TokenType, FoldingRange, FoldingRangeKind, TextDocument } from '../wxmlLanguageTypes'; import { createScanner } from '../parser/wxmlScanner'; import { isVoidElement } from '../languageFacts/fact'; function limitRanges(ranges: FoldingRange[], rangeLimit: number) { ranges = ranges.sort((r1, r2) => { let d...
import { TDomoElementType } from './Domo.d' import { DomoElement } from './DomoElement.js' import { DomoEvent } from './DomoEvent.js'; export class Creator { static template( ...domos: DomoElement[] ) { let template = document.createElement('template') domos.forEach(domo => template.con...
import React from 'react'; import createSvgIcon from './helpers/createSvgIcon'; export default createSvgIcon( <path d="M12.6 18.06c-.36.28-.87.28-1.23 0l-6.15-4.78a.991.991 0 00-1.22 0c-.51.4-.51 1.17 0 1.57l6.76 5.26c.72.56 1.73.56 2.46 0l6.76-5.26c.51-.4.51-1.17 0-1.57l-.01-.01a.991.991 0 00-1.22 0l-6.15 4.79zm.63...
export const environment = { production: true, SERVER_URL : 'http://localhost:2302/' };
import React, { Component } from 'react' import { Animated, Dimensions, Easing, LayoutChangeEvent, Platform, StyleProp, View, ViewStyle, } from 'react-native' import Svg, { PathProps, Defs, LinearGradient, Stop } from 'react-native-svg' import { IStep, ValueXY } from '../types' import { svgMaskPathMorph...
/* * cloudbeaver - Cloud Database Manager * Copyright (C) 2020 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ export function flat(array: any[]) { if (array.flat) { return array.flat(); } // EDGE workaro...
import { FastifyInstance, FastifySchema } from 'fastify'; import fs from 'fs'; import path from 'path'; import { getBasePathForDomain } from '../../core/config'; export default async function (app: FastifyInstance) : Promise<void> { app.delete('/api/:domain/*', { schema: <FastifySchema>{ descri...
export enum Env { Development = 'development', Test = 'test', Production = 'production', }
import { _getColumnSchema, _isIndex } from "./schema"; import catLabelSort from "../util/catLabelSort"; import { unassignedCategoryLabel, overflowCategoryLabel, globalConfig, } from "../globals"; import { Dataframe } from "../util/dataframe"; // eslint-disable-next-line @typescript-eslint/explicit-module-boundar...
// Copyright 2017-2019 @polkadot/app-accounts authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { I18nProps } from '@polkadot/ui-app/types'; import { ActionStatus } from '@polkadot/ui-app/Status/types'; import ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js function plural(n: number...
import { UIPoint, UIPointZero } from "./UIPoint"; import { UIView, UIWindow } from "./UIView"; export enum UITouchPhase { began, moved, stationary, ended, cancelled, } export class UITouch { identifier: number = 0 timestamp: number = 0.0 phase: UITouchPhase = UITouchPhase.cancelled ...
/* * 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 { createTestConfig } from '../common/config'; // tslint:disable:no-de...
import { lazy, object, optional, Schema, string } from '../schema'; import { DateRange, dateRangeSchema } from './dateRange'; /** * A `Shift` search query filter parameter that sets a range of days that * a `Shift` must start or end in before passing the filter condition. */ export interface ShiftWorkday { /** ...
import { Component, OnInit } from '@angular/core'; import { MatSnackBar } from '@angular/material/snack-bar'; import { Router } from '@angular/router'; import { ProfileEditResponse, UpdateProfileTextRequest } from 'boop-core'; import { ApiService } from 'src/app/services/api.service'; @Component({ selector: 'app-pro...
/** * * @file PopupManager.ts * @author dream * @description 弹框管理类 * */ import { Mask, Widget, BlockInputEvents, Canvas, director, game, instantiate, Layers, Node, Prefab, UITransform, color, Sprite, SpriteFrame, Texture2D, ImageAsset, v3, view, Color, } from "cc"; import {...
import * as cv from 'mirada' import * as Mirada from 'mirada'; (async () => { let video = document.getElementById('videoInput')! as HTMLVideoElement const canvas = document.getElementById('outputCanvas')! as HTMLCanvasElement let cap = new cv.VideoCapture(video) // take first frame of the video let frame1 = ...
export {} export { default as usePages } from "hooks/usePages"
import * as React from 'react'; import { BrowserRouter as Router } from 'react-router-dom'; import { Provider } from 'react-redux'; import { init } from './store'; import App from './App'; import { getBaseName } from '@redhat-cloud-services/frontend-components-utilities/helpers'; import logger from 'redux-logger'; impo...
import React, { SVGAttributes } from 'react'; export interface DepositProps extends SVGAttributes<SVGElement> { [key: string]: any; size?: 'xs' | 's' | 'm' | 'l' | 'xl' | number; color?: string; } const sizes = { xs: 12, s: 16, m: 20, l: 24, xl: 32 }; export const Deposit: React.FC<DepositProps> = (props)...
import { Filter } from "builder-util/out/fs"; import { Stats } from "fs-extra"; import { FileMatcher } from "../fileMatcher"; import { Packager } from "../packager"; export declare abstract class FileCopyHelper { protected readonly matcher: FileMatcher; readonly filter: Filter | null; protected readonly pac...
import {Client, TextChannel} from "discord.js"; import wrap from 'word-wrap'; const block = '============================================================='; /** * Formats a Discord message with id [message_id] found at channel [channel_id]. * If the channel or the message cannot be found, this returns null. * Othe...
/** * Dex * Pokemon Showdown - http://pokemonshowdown.com/ * * Handles getting data about pokemon, items, etc. Also contains some useful * helper functions for using dex data. * * By default, nothing is loaded until you call Dex.mod(mod) or * Dex.forFormat(format). * * You may choose to preload some things: ...
// GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY import * as React from 'react' import MailLineSvg from '@airclass/icons-svg/lib/asn/MailLine'; import AntdIcon, { AntdIconProps } from '../components/AntdIcon'; const MailLine = ( props: AntdIconProps, ref: React.MutableRefObject<HTMLSpanElement>, )...
/* © 2020 NetSuite Inc. User may not copy, modify, distribute, or re-bundle or otherwise make available this code; provided, however, if you are an authorized user with a NetSuite account or log-in, you may use this code subject to the terms that govern your access and use. */ /// <amd-module name="SC.BaseComponen...
import { Injectable } from '@angular/core'; import { Headers, Http } from '@angular/http'; import 'rxjs/add/operator/toPromise'; import { Teacher } from './teacher'; import { LoginContext } from '../authentication/authentication.service'; @Injectable() export class TeacherService { result: any; private head...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import * as TypeMoq from 'typemoq'; import { Range, TextDocument, TextLine, Uri } from 'vscode'; // tslint:disable:max-func-body-length no-trailing-whitespace no-multiline-string // Disable whitespace / multil...
/* eslint no-console: off */ import * as k8s from '@kubernetes/client-node'; import ora = require('ora'); import invariant from 'ts-invariant'; import { parseUri } from './parse-uri'; import { portForward } from './port-forward'; export interface RunnerArguments { namespace?: string; configMap?: string; command?...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {AsyncTestCompleter, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {IO...
/** * Copyright © 2020 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...
/* Generated from: * ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 2.5.0, * eu-central-1 (https://d1mta8qj7i28i2.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 2.5.0, * eu-west-1 (https://d3teyb21fexa9r.cloudfront....
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. import { should } from "chai"; import "chai/register-should"; import * as msAssert from "../util/msAssert"; import * as msRest from "@azure/ms-rest-js"; import { ...
import { AbstractConnector } from '@web3-react/abstract-connector'; import { ConnectorUpdate } from '@web3-react/types'; import { SafeInfo } from '@gnosis.pm/safe-apps-sdk'; import { SafeAppProvider } from '@gnosis.pm/safe-apps-provider'; declare class SafeAppConnector extends AbstractConnector { private readonly s...
declare const _default: { actions: { logout: () => Promise<null>; retry: () => Promise<import("./types").CurrentUser>; }; currentUser: import("rxjs").Observable<import("./types").CurrentUserEvent>; getUser: (userId: string) => Promise<import("./types").User>; getUsers: (ids: string[]...
//#region @import import MJ_weihai_Scene from "../MJ_weihai_Scene"; import MsgBus from "../../../../comm/script/MsgBus"; // @handler import DingPiaoBroadcastHandler from "./DingPiaoBroadcastHandler"; import DingPiaoResultHandler from "./DingPiaoResultHandler"; import DissolutionVoteBroadcastHandler from "./DissolutionV...
import { ILinearRampToValueAutomationEvent } from '../interfaces'; import { TAutomationEvent } from '../types'; export declare const isLinearRampToValueAutomationEvent: (automationEvent: TAutomationEvent) => automationEvent is ILinearRampToValueAutomationEvent; //# sourceMappingURL=/build/es2019/guards/linear-ramp-to-v...
// Type definitions for Node.js 10.12 // Project: http://nodejs.org/ // Definitions by: Microsoft TypeScript <https://github.com/Microsoft> // DefinitelyTyped <https://github.com/DefinitelyTyped> // Alberto Schiabel <https://github.com/jkomyno> // Alexander T. <https://gi...
import React, { useCallback } from "react"; import { MessageBar, MessageBarType, MessageBarButton } from "@fluentui/react"; import { FormattedMessage } from "@oursky/react-messageformat"; interface ShowErrorProps { error: unknown; onRetry?: (() => void) | null; } const ShowError: React.FC<ShowErrorProps> = functi...
import { injectable, inject } from 'tsyringe'; import IDepoimentsRepository from '../repositories/IDepoimentsRepository'; interface IRequest { idDepoiment: string; } @injectable() class CreateUserService { constructor( @inject('DepoimentsRepository') private depoimentsRepository: IDepoimentsRepository, ...
import { NextPage } from "next"; import { get } from "../../../common/api"; import { UserAndFriendsData } from "../../../common/types"; import { ManagedFollowButton } from "../../../components/managedFollowButton"; import { PeopleList } from "../../../components/peopleList"; import { UserName } from "../../../component...
import { Spec } from '@hayspec/spec'; import { Spinwriter, MemoryStreamlet } from '../../../src'; const spec = new Spec<{ streamlet: MemoryStreamlet; spinwriter: Spinwriter; }>(); spec.beforeEach((ctx) => { ctx.set('streamlet', new MemoryStreamlet()); ctx.set('spinwriter', new Spinwriter({ streamlet: ctx....
# Copyright 2002-2014, The TenDRA Project. # Copyright 1997, United Kingdom Secretary of State for Defence. # # See doc/copyright/ for the full copyright terms. +IMPLEMENT "cae/xpg3", "termios.h.ts" ; /* * TODO: unsure of the type for these. posix/termios.h.ts has them as int: * * +CONST tcflag_t BRKINT, ICRNL, IG...
import {Injectable} from '@angular/core'; import {Observer, Observable} from 'rxjs'; @Injectable() export class ActionService<T> { private actionObservers: {[actionName: string]: Observer<{element: T, data: any}>} = {}; private actionObservable: {[actionName: string]: Observable<{element: T, data: any}>} = {};...
import React, { createContext, FC, useCallback, useContext, useEffect, useMemo } from 'react'; import { Navigation } from 'react-native-navigation'; export interface IButtonContext { onPress(buttonId: string, callback: () => void): void; onPress(buttonId: string, componentID: string, callback: () => void): void; }...
import { getCookie } from 'api/cookie'; import { TOKEN_HEADER_NAME, TIHLDE_API_URL, ACCESS_TOKEN } from 'constant'; import { RequestResponse } from 'types'; import { argsToParams } from 'utils'; type RequestMethodType = 'GET' | 'POST' | 'PUT' | 'DELETE'; type FetchProps = { method: RequestMethodType; url: string;...
// package: google.ads.googleads.v3.enums // file: google/ads/googleads/v3/enums/bidding_source.proto import * as jspb from "google-protobuf"; import * as google_api_annotations_pb from "../../../../../google/api/annotations_pb"; export class BiddingSourceEnum extends jspb.Message { serializeBinary(): Uint8Array; ...
import { logger } from "firebase-functions"; import { v4 as uuidv4 } from "uuid"; import { Collection } from "../models/models"; const admin = require("firebase-admin"); export class CandyMachineDownloader { projectId: string; collectionId: string; compositeGroupId: string; db = admin.firestore(); storage ...
import { NbMenuItem } from '@nebular/theme'; export const MENU_ITEMS: NbMenuItem[] = [ // { // title: 'E-commerce', // icon: 'shopping-cart-outline', // link: '/pages/dashboard', // home: true, // }, // { // title: 'IoT Dashboard', // icon: 'home-outline', // link: '/pages/iot-dashboa...
let a = 1; let b = [1, null, 'a'] let c = {x: 1, y: 'a'} let d = (x = 1) => x + 1 window.onkeydown = (event) => { // console.log(event.button) } interface Foo { bar: number } // let foo = {} as Foo // let foo = <Foo>{} let foo: Foo = { bar: 1 } // foo.bar = 1
import type { ExpandProperty } from './typings'; import type { Transaction } from './connections'; export const enum FlushMode { /** The `EntityManager` tries to delay the flush until the current Transaction is committed, although it might flush prematurely too. */ COMMIT, /** This is the default mode, and it fl...
/** * 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 law or agree...
import { ComponentResolver, OpaqueToken } from '@angular/core'; import { OverlayState } from './overlay-state'; import { OverlayRef } from './overlay-ref'; import { OverlayPositionBuilder } from './position/overlay-position-builder'; import { ViewportRuler } from './position/viewport-ruler'; /** Token used to inject th...
/** * This file contains the test cases for the BundleSizeTests * Run all tests by running `npm run test:size` */ import importFromDist from "./utils/stringGenerators/importFromDist"; import {ITestCase} from "./interfaces/ITestCase"; import importFromPackage from "./utils/stringGenerators/importFromPackage"; /** ...