text stringlengths 10 953k |
|---|
import * as React from 'react';
export type VercelProps = {
/**
* Hex color or color name
*/
title?: string;
/**
* The size of the Icon.
*/
color?: string;
/**
* The title provides an accessible short text description to the SVG
*/
size?: string | number;
};
const Vercel = React.forwardR... |
import {arrayThat, assert, should, stringThat, test} from 'gs-testing';
import {elementWithTagType} from './element-with-tag-type';
test('@types/element-with-tag-type', () => {
test('validate', () => {
should('pass if the target is an element with the correct tag name', () => {
const element = document.cr... |
import { useDebounce as useBaseDebounce } from 'use-debounce';
function useDebounce<T>(
value: T,
delay: number = 1000,
options?: {
maxWait?: number;
leading?: boolean;
trailing?: boolean;
equalityFn?: (left: T, right: T) => boolean;
},
) {
return useBaseDebounce(value, delay, options);
}
ex... |
import React, {
Children,
cloneElement,
ElementType,
forwardRef,
HTMLAttributes,
isValidElement,
ReactElement,
ReactNode,
} from "react";
import cn from "classnames";
import { ClassNameCloneableChild } from "@react-md/utils";
/**
* A union of the available text container sizes. One of these values mus... |
export interface Logger {
log: (...args: any[]) => void;
warn: (...args: any[]) => void;
}
export default console as Logger; |
import { async } from '../scheduler/async';
import { audit } from './audit';
import { timer } from '../observable/timer';
import { MonoTypeOperatorFunction, SchedulerLike } from '../types';
/**
* Ignores source values for `duration` milliseconds, then emits the most recent
* value from the source Observable, then re... |
import { inverse, multiplyMatrix, multiplyVector, rotation } from "../../lib/mat3x3";
import { Matrix3, Vector2, Vector3 } from "../../lib/types";
import { CameraSettings, PerspectiveCamera } from "./perspective-camera";
import { flattenY, setYZero } from "../util";
import * as Vec3 from '../../lib/vec3';
export type ... |
import { ColGroupDef } from '../../entities/colDef';
import { Column } from '../../entities/column';
import { ColumnGroup } from '../../entities/columnGroup';
import { ColumnApi } from '../../columnController/columnApi';
import { Constants } from '../../constants';
import {
ColumnController,
ColumnResizeSet,
} from... |
import { Controller, Get } from '@nestjs/common';
@Controller()
export class AppController {
@Get()
home() {
return 'Welcome';
}
} |
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { AlertComponent } from './alert.component';
describe('AlertComponent', () => {
let component: AlertComponent;
let fixture: ComponentFixture<AlertComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModul... |
import { Metrics } from "../Utility/Metrics";
import { Store } from "../Utility/Store";
import { TutorialSteps } from "./TutorialSteps";
export const TutorialSpy = ko.observable<string>(null);
export class TutorialViewModel {
//TODO: prevent next when awaiting a click
//TODO: auto advance on view changes
... |
<TS language="vi_VN" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Nhấn chuột phải để sửa địa chỉ hoặc nhãn</translation>
</message>
<message>
<source>Create a new address</source>
<trans... |
import {NativeModules,NativeModulesStatic,DeviceEventEmitter} from 'react-native'
import {ShareModuleInterfaceNative,ContinueInAppInterface,ShareData,ShareCropOptions} from './types'
export type {ShareData,ShareCropOptions,ShareCropResult} from './types'
export type ShareListenerData = (ShareData & {
extraData?: ... |
import * as React from 'react';
import styles from './GraphConsumer.module.scss';
import * as strings from 'GraphConsumerWebPartStrings';
import { IGraphConsumerProps } from './IGraphConsumerProps';
import { IGraphConsumerState } from './IGraphConsumerState';
import { ClientMode } from './ClientMode';
import { IUserIte... |
export default {
navigationBarTitleText: '第二页',
} |
// tslint:disable jsx-no-lambda
import * as classNames from "classnames";
import * as React from "react";
import "./styles.scss";
import { PageContent } from '../';
interface IWrapperProps {
style?: string;
}
export class Wrapper extends React.Component<IWrapperProps> {
constructor(props: IWrapperProps){
... |
import Sequences from '../../src/sequences';
/**
* sequence parameter validation test
*/
describe('sequence parameter validation test', () => {
it('throws error if not given integer or sequence param', () => {
expect(() => {
Sequences.numbers('test string');
}).toThrowError('If you pass a primitive a... |
import { Injectable } from '@angular/core';
import { UserService } from '../user/user.service';
import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';
import { Observable } from 'rxjs';
@Injectable({ providedIn: 'root'})
export class LoginGuard
implements CanActivate {
... |
import Client from "../struct/Client"
import Discord from "discord.js"
import Args from "../struct/Args"
import Command from "../struct/Command"
import GuildMember from "../struct/discord/GuildMember"
import Roles from "../util/roles"
import truncateString from "../util/truncateString"
import humanizeArray from "../uti... |
import React, {
ReactNode,
PropsWithChildren,
useContext,
useState,
useEffect,
} from 'react';
import BN from 'bn.js';
import { PublicKey } from '@solana/web3.js';
import { TokenListProvider, TokenInfo } from '@solana/spl-token-registry';
import { networks } from '../store/config';
const TokenListContext = R... |
import { Component, OnInit, ContentChild, TemplateRef } from '@angular/core';
import { NgForOfContext } from '@angular/common';
import { Subject } from 'rxjs';
import { Alert } from '../alert';
import { AlertToasterService } from '../alert-toaster.service';
@Component({
selector: 'pnp-alerts-display',
templateUrl: '... |
import * as SourceMap from '@volar/source-map';
import { TextDocument } from 'vscode-languageserver-textdocument';
export declare function baseParse(pugCode: string): {
htmlCode: string;
pugTextDocument: TextDocument;
sourceMap: SourceMap.SourceMapBase<{
isEmptyTagCompletion: boolean;
} | undefi... |
import { EnumUtils } from '../index'
describe('Array input', () => {
const arr: string[] = ['bar', 'foo']
test('Values by key', () => {
expect(EnumUtils.valuesByKey(arr)).toEqual({
bar: 'bar',
foo: 'foo'
})
})
test('Values', () => {
expect(EnumUtils.values(arr)).toEqual(['bar', 'foo']... |
import { AddressingMode } from "../../addressing-mode";
import { Processor } from "../../processor";
import { IOperationWithAddress } from "../i-operation-with-address";
import { IOperationWithValue } from "../i-operation-with-value";
export class CMP implements IOperationWithAddress, IOperationWithValue {
private... |
import { Project } from "../model/Project/Project";
import { Folder } from "../model/Folder/Folder";
import { Session } from "../model/Project/Session/Session";
import { csvEncode, kEol } from "./CsvExporter";
import * as fs from "fs";
import { sentryBreadCrumb } from "../other/errorHandling";
export function makePara... |
import {
Component, OnInit
} from '@angular/core';
import { DevuiSourceData } from 'ng-devui/shared/devui-codebox';
@Component({
selector: 'd-demo-input-number',
templateUrl: './input-number-demo.component.html',
})
export class InputNumberDemoComponent {
InputNumberBasic: Array<DevuiSourceData> = [
{ titl... |
import repeat from '../repeat';
describe('utils/array/repeat', () => {
it('should return array', () => {
expect(repeat(4, 't')).toEqual(['t', 't', 't', 't']);
expect(repeat(0, 1)).toEqual([]);
expect(repeat(3, {})).toEqual([{}, {}, {}]);
});
}); |
import ContextualMenuTestPage from '../../ContextualMenu/pages/ContextualMenuTestPage.win';
import FocusTrapZoneTestPage from '../../FocusTrapZone/pages/FocusTrapZonePage.win';
import FocusZoneTestPage from '../../FocusZone/pages/FocusZoneTestPage.win';
import IconTestPage from '../../Icon/pages/IconTestPage.win';
impo... |
import * as vscode from 'vscode';
import { findString, findType, findFieldDefinition, findMethodDefinition, findFieldReference, findMethodReference } from './language/parser';
export class SmaliHoverProvider implements vscode.HoverProvider {
public provideHover(
document: vscode.TextDocument,
posit... |
import { Document, Types } from 'mongoose'
export interface Car {
brand: string
model: string
makeYear: number
color: string
price: number
}
export type CarDocument = Document<unknown, unknown, Car> &
Car & {
_id: Types.ObjectId
} |
import { Selector } from "./parse";
const actionTypes: { [key: string]: string } = {
equals: "",
element: "~",
start: "^",
end: "$",
any: "*",
not: "!",
hyphen: "|",
};
const charsToEscape = new Set([
...Object.keys(actionTypes)
.map((typeKey) => actionTypes[typeKey])
.... |
import { Dictionary } from "@pnp/common";
export default class MockStorage implements Storage {
constructor(private _store = new Dictionary<string>(), private _length = 0) { }
public get length(): number {
return this._store.count;
}
public set length(i: number) {
this._length = i;
... |
import { setupTest } from 'ember-qunit';
import { module, skip } from 'qunit';
module('Unit | Controller | dashboard', hooks => {
setupTest(hooks);
skip('it exists', function(assert) {
const controller = this.subject();
// TODO: init calls out requests, need to mock them to have this pass
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About sfccoin</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
/*
* Copyright (c) 2017, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import {
CliCommandExecutor,
Command,
SfdxCommandBuilder
} from '@salesforce/sales... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SlideEightComponent } from './slide-eight/slide-eight.component';
import { SlideEighteenComponent } from './slide-eighteen/slide-eighteen.component';
import { SlideElevenComponent } from './slide-eleven/slide-elev... |
import { TFunction } from "next-i18next";
import nodemailer from "nodemailer";
import { getErrorFromUnknown } from "@calcom/lib/errors";
import { serverConfig } from "@lib/serverConfig";
import { emailHead, linkIcon, emailBodyLogo } from "./common";
export type PasswordReset = {
language: TFunction;
user: {
... |
import { Configuration } from "webpack";
import unique from "./unique";
import { ICustomizeRules, ICustomizeOptions, Key } from "./types";
declare function merge(firstConfiguration: Configuration | Configuration[], ...configurations: Configuration[]): Configuration;
declare function mergeWithCustomize(options: ICustomi... |
import { Singleflight } from '@zcong/singleflight';
import axios, { AxiosInstance } from 'axios';
import type { Token } from 'client-oauth2';
import { log } from './log';
export type DriveFile = gapi.client.drive.File;
export type GapiUserInfo = {
email: string;
family_name: string;
given_name: string;
hd: st... |
// warning: this file is auto generated
import React from "react";
import { JsonCard } from "../DataCard";
const Card = () => {
const url = "https://raw.githubusercontent.com/linguabook/data/main/words/my.json";
return <JsonCard url={url} text="my" lang="en" />;
};
export default Card; |
import React, { Ref, RefForwardingComponent } from "react";
import { Omit } from "recompose";
/**
* withForwardRef provides a property called `forwardRef` using
* the `React.forwardRef` api.
*/
export default function withForwardRef<P extends { forwardRef?: Ref<any> }>(
BaseComponent: React.ComponentType<P>
): Re... |
import { Action } from '@ngrx/store';
import { TeamcraftUser } from '../model/user/teamcraft-user';
import { AuthState } from './auth.reducer';
import { Character, CharacterResponse } from '@xivapi/angular-client';
import { DefaultConsumables } from '../model/user/default-consumables';
import { Favorites } from '../mod... |
import { Component, OnInit } from '@angular/core';
import { Client } from '../../client';
import { FactureService } from 'src/app/services/facture.service';
import { ClientService } from 'src/app/services/client.service';
import { ArticleService } from 'src/app/services/article.service';
import { DatePipe } from '@angu... |
import { StatusCode } from "../../enum/StatusCode";
export default class InternalServerError extends Error {
statusCode: StatusCode;
type: string;
timestamp: number;
constructor(message?: string) {
message = message || "Request cannot be fulfilled - Internal server error.";
super(message);
this.na... |
import { ReactNode, ReactElement, CSSProperties } from 'react';
import PropTypes from 'prop-types';
import { jsx } from '@emotion/react';
import { rotate } from '../utils/keyframes';
import {
LoaderWrapperContext,
initialLoaderDimensions,
} from '../utils/Loader.context';
interface LoaderProps {
height?: number... |
import { Link } from 'gatsby';
import { setLightness } from 'polished';
import React from 'react';
import styled from '@emotion/styled';
import { css } from '@emotion/core';
import { colors } from '../styles/colors';
import { outer, inner } from '../styles/shared';
import config from '../website-config';
export const... |
const Index = require("../../src/index");
import { describe, expect, it } from "@jest/globals";
describe("index", () => {
it("prepare is a function", () => {
expect(Index.prepare).toBeInstanceOf(Function);
});
it("publish is a function", () => {
expect(Index.publish).toBeInstanceOf(Function);
});
it(... |
export type EditorSelectionAction =
| {
type: 'blur'
}
| {
type: 'setSelection'
selection: Selection
}
| {
type: 'setMousePointerSelectionStart'
event: MouseEvent
}
| {
type: 'setMousePointerSelectionFinish'
event: MouseEvent | undefined
} |
import { Plugin } from '../../core/types'
import { fatallyLogAndExit } from '../util'
import Client from '../../server'
import { removeAwsDefaultUncaughtExceptionListener } from '../aws_lambda'
let count = 0
function removeAwsLambdaListener() {
const isLambda = !!process.env.LAMBDA_TASK_ROOT
if (!isLambda) {
... |
export enum SpecialKeys {
ESC = 27,
ENTER = 13,
UP = 38,
DOWN = 40,
RIGHT = 39,
LEFT = 37,
SHIFT = 16,
TAB = 9,
CTRL = 17,
ALT = 18
} |
import {BaseGetEndpoint} from "../abstract/BaseGetEndpoint";
import {CommonQuerystringParameters} from "../declarations/rest_requests/CommonQuerystringParameters";
export class FetchMyInventoryEndpoint extends BaseGetEndpoint<CommonQuerystringParameters> {
Path: string;
constructor(ApiKey: string) {
super(Api... |
/* eslint-disable no-param-reassign */
/**
* This is an entry point for styles extraction.
* On enter, It:
* - traverse the code using visitors (TaggedTemplateExpression, ImportDeclaration)
* - schedule evaluation of lazy dependencies (those who are not simple expressions //TODO does they have it's name?)
* - ... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MadmpdetailsComponent } from './madmpdetails.component';
describe('MadmpdetailsComponent', () => {
let component: MadmpdetailsComponent;
let fixture: ComponentFixture<MadmpdetailsComponent>;
beforeEach(async(() => {
TestBed.... |
import * as React from 'react';
import {
classNamesFunction,
divProperties,
getNativeProps,
IRenderFunction,
getPropsWithDefaults,
} from '../../Utilities';
import { TooltipHost, TooltipOverflowMode, DirectionalHint } from '../../Tooltip';
import { PersonaCoin } from './PersonaCoin/PersonaCoin';
import {
IP... |
import createIcon from './../createIcon'
export default createIcon('la la-memory') |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
import type Swiper from 'swiper';
import type { SwiperOptions } from 'swiper';
interface IContext {
options: SwiperOptions,
autoUpdate: boolean,
getSwiper: () => Swiper
}
const key = {};
export { key };
export type { IContext }; |
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
export class CatEntity {
@PrimaryGeneratedColumn()
name: string;
@Column()
age: number;
@Column({ default: '' })
breed: string;
} |
import { Peripheral } from "@abandonware/noble";
import { IBLEAbstraction } from "../interfaces";
import { LPF2Hub } from "./lpf2hub";
import * as Consts from "../consts";
import Debug = require("debug");
const debug = Debug("technicmediumhub");
/**
* The TechnicMediumHub is emitted if the discovered device is a... |
import {
childIdView,
directoryEntryNameLengthView,
directoryEntryNameView,
leftSiblingIdView,
objectTypeView,
rightSiblingIdView,
startingSectorLocationView,
streamSizeView,
} from './dataViews';
/**
*
*/
export class DirectoryEntry {
constructor(private buffer: DataView) {}
public check(): boo... |
import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { ProductoService } from '@producto/shared/service/producto.service';
import { Producto } from '@producto/shared/model/producto';
@Component({
selector: 'app-listar-producto',
templateUrl: './listar-producto.component.htm... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="gu_IN" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Paygcoin</source>
<translation>બીટકોઈન વિષે</translation>
</m... |
import Client from "../struct/Client"
import Message from "../struct/discord/Message"
import Command from "../struct/Command"
import Roles from "../util/roles"
export default new Command({
name: "catte",
aliases: ["catte_", "noah", "arc"],
description: "cAtte_ is the best",
permission: Roles.ANY,
u... |
import commandExists from 'command-exists';
export async function isCmdExist(cmdName: string) {
let result = await new Promise((res) => {
commandExists(cmdName)
.then(function (command) {
res(true);
}).catch(function () {
res(false);
});
... |
import Hello from '../components/Hello/Hello';
import * as fooActions from '../actions/foo';
import * as barActions from '../actions/bar';
import { RootAction } from '../actions/index';
import { RootState } from '../types/index';
import { connect, Dispatch } from 'react-redux';
export function mapStateToProps(state: R... |
export const lighTheme = {
bg: {
default: '#FFFFFF',
reverse: '#16171A',
wash: '#FAFAFA',
divider: '#F6F7F8',
border: '#EBECED',
inactive: '#DFE7EF',
},
brand: {
default: '#4400CC',
alt: '#7B16FF',
wash: '#E8E5FF',
border: '#DDD9FF',
dark: '#2A0080',
},
social: {
... |
import { InjectionToken } from '@angular/core';
import { AbstractControl, AbstractControlContainer } from 'rx-controls';
export const CONTROL_ACCESSOR_SPECIFICITY = Symbol(
'CONTROL_ACCESSOR_SPECIFICITY'
);
export interface ControlAccessor<T extends AbstractControl = AbstractControl> {
readonly control: T;
read... |
import { forwardRef } from "react";
import { MediaLoader, useMediaObjectProps } from "./MediaLoader";
import {
RenderComponentType,
RendererConfig,
RenderingPreference,
RenderRequest,
} from "./RendererConfig";
export const ImageRenderer = forwardRef<HTMLImageElement, RenderComponentType>(
({ request, a11yId... |
/**
* Wegas
* http://wegas.albasim.ch
*
* Copyright (c) 2013-2021 School of Management and Engineering Vaud, Comem, MEI
* Licensed under the MIT License
*/
import { WegasTranslations } from './I18nContext';
export const fr: WegasTranslations = {
pleaseProvideData: 'Merci de remplir tous les champs',
cancel:... |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Publication } from './entities/publication.entity';
import { Repository } from 'typeorm';
import { SearchPublicationsDto, SearchPublicationsOutput } from './dtos/search-publications.dto';
import { User } from '../u... |
import { Injectable, Inject } from '@nestjs/common';
import { Repository } from 'typeorm';
import { Company } from './company.entity';
import { CompanyCreateDto } from './dto/company.create.dto';
import { CompanyUpdateDto } from './dto/company.update.dto';
import { ResultDto } from '../dto/result.dto';
import * as bcry... |
declare const translations: {
"auth/claims-too-large": string;
"auth/email-already-exists": string;
"auth/id-token-expired": string;
"auth/id-token-revoked": string;
"auth/insufficient-permission": string;
"auth/internal-error": string;
"auth/invalid-argument": string;
"auth/invalid-clai... |
/*
* Copyright 2021 The Backstage 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 ... |
import User from '../classes/user';
export default interface Message {
id: string;
channel_id: string;
guild_id: string;
content: string;
timestamp: string;
type: number;
author: User;
edited_timestamp?: string | null;
referenced_message_id?: string | null;
mentions?: any[];
attachments?: any[];
... |
// Type definitions for Electron v0.36.3
// Project: http://electron.atom.io/
// Definitions by: jedmao <https://github.com/jedmao/>, rhysd <https://rhysd.github.io>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module Electron {
/**
* This cl... |
import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { User, UserDocument } from './model/user.schema';
import { CreateUserDto } from './interface/user.dto.create';
@Injectable()
export class UserService {
constructor(@InjectModel(User.... |
import React, { useState, useEffect } from "react";
import Select from "react-select";
import { Steps, Input, InputNumber, Row, Col, notification } from "antd";
import {
CURRENT,
STATUS,
ENVIRONMENT,
ENV,
TOKEN,
tokenSelectStyles,
networkSelectStyles,
} from "../constants";
import {
ArrowDownOutlined,
... |
import {
IsEnum,
IsHexColor,
IsNumber,
IsPositive,
IsString,
IsUrl,
IsUUID,
} from 'class-validator';
import { ERouteType } from '../../domain/route-type.enum';
import { BaseRouteDto } from './base-route.dto';
export class ValidatableRouteDto extends BaseRouteDto {
@IsUUID()
routeId... |
import { useState, useEffect } from 'react';
import { Redirect } from 'react-router-dom';
import { Button, message } from 'antd';
import request from '../../request';
import ReactEcharts from 'echarts-for-react';
import moment from 'moment';
import './index.css';
const Home = () => {
const [loginStatus, setLoginStat... |
/**
* Various tools.
*
* @module utils
* @license Apache-2.0
* @author drmats
*/
import type { NoArgFun } from "../type/defs";
import {
isFunction,
isObject,
} from "../type/check";
import { quote } from "../string/transform";
/**
* Run "main" function:
* - in browser on "load" event,
* ... |
/**
* Bungie.Net API
* These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
*
* The version of the OpenAPI document: 2.12.0
* Contact: support@bungie.com
*
* NOTE: This class... |
import BigNumber from "bignumber.js";
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
import SDK from "js-conflux-sdk/dist/js-conflux-sdk.umd.min.js";
dayjs.extend(relativeTime);
export const toThousands = (num, delimiter = ",", prevDelimiter = ",") => {
if ((typeof num !== "number"... |
import { TestBed, async } from "@angular/core/testing";
import { RouterTestingModule } from "@angular/router/testing";
import { AppComponent } from "./app.component";
describe("AppComponent", () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [RouterTestingModule],
declarations... |
import {ODataError} from '../../../../../../../models/oDataErrors/';
import {createODataErrorFromDiscriminatorValue} from '../../../../../../../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import {CountRequestBuilderGetRequestConfiguration} from './countRequestBuilderGetRequestConfiguration';
import {get... |
import { Component, Fragment } from "inferno"
import { ChangeFilterCallback, Filter } from "./FilterDropdown"
import { Menu } from "./menu"
type Props = {
onChange: ChangeFilterCallback
filter: Filter
}
export class FilterGroup extends Component<Props> {
onChange = e => this.props.onChange(this.props.filter.id,... |
import { IConfiguration } from '../abstraction/configuration.interface';
import { ConfigurationElement } from '../abstraction/configuration-element';
export class Configuration implements IConfiguration {
public readonly elements: ConfigurationElement[];
public constructor(elements: ConfigurationElement[]) {
this... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import { AcceptVpcEndpointConnections } from "../model/operations/AcceptVpcEndpointConnections";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypesUnion } from "../ty... |
export default class MP4BoxQueue {
private queue: Buffer[] = [];
private chunks: Buffer[] = [];
private total: number = 0;
private concat () {
if (this.chunks.length <= 1) { return; }
const result = Buffer.concat(this.chunks);
this.chunks = [result];
this.total = result.length;
}
public pu... |
import * as DelimitedBlocks from "./delimitedblocks.ts";
import * as Io from "./io.ts";
import * as LineBlocks from "./lineblocks.ts";
import * as Lists from "./lists.ts";
import * as Macros from "./macros.ts";
import * as Options from "./options.ts";
import * as Quotes from "./quotes.ts";
import * as Replacements from... |
import { join } from 'path'
import { Factory } from 'fbi'
import CommandBuild from './commands/build'
import CommandServe from './commands/serve'
import CommandLint from './commands/lint'
import CommandFormat from './commands/format'
import CommandTypesCreate from './commands/types-create'
import CommandTypesSync from... |
import { ReactNode } from 'react';
import {
action,
computed,
get,
IReactionDisposer,
isArrayLike,
observable,
runInAction,
set,
toJS,
} from 'mobx';
import axiosStatic, { AxiosInstance, AxiosRequestConfig } from 'axios';
import omit from 'lodash/omit';
import flatMap from 'lodash/flatMap';
import isN... |
/*
* Copyright (c) 2014-2021 Bjoern Kimminich.
* SPDX-License-Identifier: MIT
*/
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'
import { fakeAsync, inject, TestBed, tick } from '@angular/core/testing'
import { AddressService } from './address.service'
describe('Addres... |
export { ButtonVariant } from "./Component";
export * from "./Module"; |
import React from "react";
import { render } from "@testing-library/react";
import Routes from "./Routes";
import { UserContext, UserState, initialUserState } from "../../contexts/UserContext/UserContext";
import { Router } from "react-router-dom";
import { createMemoryHistory } from "history";
const loggedUserState: ... |
import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model, Types } from 'mongoose';
import { QuenMatKhauDto } from './quen-mat-khau.dto';
import { QuenMatKhauDocument } from './quen-mat-khau.entity';
@Injectable()
export class QuenMatKhauService {
constructor(
... |
declare module "discord-vr" {
import { EventEmitter } from "events";
class Client extends EventEmitter {
public on<K extends keyof ClientEvents>(event: K, listener: (...args: ClientEvents[K]) => void): this;
public once<K extends keyof ClientEvents>(event: K, listener: (...args: ClientEvents[K]) => void... |
import {
MonetizationEvent,
MonetizationProgressEvent,
MonetizationStartEvent,
MonetizationState,
MonetizationStopEvent,
TipEvent
} from '@webmonetization/types'
import { injectable } from '@dier-makr/annotations'
import { PaymentDetails } from '@webmonetization/polyfill-utils'
import { ScriptInjection } f... |
import { ParameterizedRoute } from '../common';
import QueueAcknowledgedMessages from '../../components/QueueAcknowledgedMessages';
import { IQueueRouteParams } from './queue';
export const queueAcknowledgedMessages = ParameterizedRoute<IQueueRouteParams>({
path: '/namespaces/:namespace/queues/:queueName/acknowled... |
import type { FC } from "react";
import type { PayPalHostedFieldsComponentProps } from "../../types/payPalHostedFieldTypes";
/**
This `<PayPalHostedFieldsProvider />` provider component wraps the form field elements and accepts props like `createOrder()`.
This provider component is designed to be used with the `<PayPa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.