text stringlengths 10 953k |
|---|
import type { TransitionConfig } from 'svelte/transition';
import { cubicInOut } from 'svelte/easing';
export function fadeScale(
node: Element, { delay = 0, duration = 200, baseScale = 0 }
): TransitionConfig {
const o = +getComputedStyle(node).opacity;
const m = getComputedStyle(node).transform.match(/scale\(([0-... |
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {
ethers,
EventFilter,
Signer,
BigNumber,
BigNumberish,
PopulatedTransaction
} from "ethers";
import {
Contract,
ContractTransaction,
CallOverrides
} from "@ethersproject/contracts";
import { BytesLike } from "@ethersproject/bytes... |
import { TArrayLikeTypedConstructor, TNumberArray } from '../../helpers/types';
import {
GetStandardMaximizationProblemMatrixColumnCount, GetStandardMaximizationProblemMatrixRowCount
} from '../../helpers/standard-maximization-problem';
import { IMovementOptimizer } from './interfaces';
import {
OPTIMIZED_MOVEMENT_... |
import { suite, test } from 'mocha';
import * as assert from 'assert';
import * as path from 'path';
import * as cp from 'child_process';
import * as fs from 'fs';
import * as net from 'net';
import * as stream from 'stream';
import { inspect } from 'util';
import { DebugClient } from 'vscode-debugadapter-testsupport';... |
/* eslint-disable no-undef, max-nested-callbacks */
import * as _ from 'lodash';
import { execSync } from 'child_process';
import { browser, ExpectedConditions as until } from 'protractor';
import { appHost, testName } from '@console/internal-integration-tests/protractor.conf';
import {
filterForName,
isLoaded,
r... |
namespace classessample {
"use strict";
class MostSimpleClass { }
class Greeter {
constructor(private greeting = "Hello, ") { }
greet(name: string) {
console.log(this.greeting + name);
}
}
new Greeter("Hallo, ").greet("Karlsruhe");
new Greeter().greet("Karlsruhe");
console... |
import { TestBed } from '@angular/core/testing';
import { AuthSignedInGuard } from './auth-signed-in.guard';
describe('AuthSignedInGuard', () => {
let guard: AuthSignedInGuard;
beforeEach(() => {
TestBed.configureTestingModule({});
guard = TestBed.inject(AuthSignedInGuard);
});
it('should be created... |
/**
* @license
* Copyright 2017 Google 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 required by applicable law or ... |
import React from 'react';
import { css, cx } from 'emotion';
import darkTheme from '../../themes/dark';
import lightTheme from '../../themes/light';
import { useStyles } from '../../themes';
export const Colors = () => {
const styles = useStyles(getStyles);
const renderColors = (color: any) => {
return Object... |
// Copyright 2022 Cartesi Pte. Ltd.
// SPDX-License-Identifier: Apache-2.0
// 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 ... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AvatarPage } from './avatar.page';
const routes: Routes = [
{
path: '',
component: AvatarPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { Text } from '@fluentui/react/lib/Text';
import classNames from 'classnames';
import React, { Component } from 'react';
import { observer } from 'mobx-react';
import './alert-edit-form-part.scss';
const CN = 'alert-edit-form-part';
in... |
import React, { HTMLAttributes, ReactElement } from "react";
import cn from "classnames";
import styles from "./Container.module.scss";
export default function Container({
className,
children,
...props
}: HTMLAttributes<HTMLDivElement>): ReactElement {
return (
<div {...props} className={cn(styles.contain... |
import { FeatureFlagsApi, FeatureFlagsApiApiKeys, FeatureFlagBody } from "launchdarkly-api-typescript";
let apiInstance = new FeatureFlagsApi();
const apiKey = process.env.LD_API_KEY || '';
apiInstance.setApiKey(FeatureFlagsApiApiKeys.Token, apiKey);
const successCallback = function(data){
console.log('API called... |
import { AssetDTO } from '@energyweb/exchange-irec-react-query-client';
import {
PublicDeviceDTO,
useDeviceControllerGet,
} from '@energyweb/origin-device-registry-irec-local-api-react-query-client';
export const useApiGetIRecDeviceById = (
deviceId: AssetDTO['deviceId'],
enabled: boolean
) => {
const { data... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const IoCloudDownloadSharp: IconType; |
import { CloudFrontRequestEvent, Context } from 'aws-lambda';
import {
CloudFrontRequest,
CloudFrontResultResponse,
} from 'aws-lambda/common/cloudfront';
import { getBnumberFromPath } from './paths';
import {
createRedirect,
getSierraIdentifierRedirect,
wellcomeCollectionNotFoundRedirect,
wellcomeCollectio... |
export type ChainType = "ethereum"; |
import { AnswerType } from './q-and-a.models';
import { TranslatableString } from './translatable-string.model';
export class Fsp {
id: number;
fsp: string;
attributes?: FspAttribute[];
}
export class FspAttribute {
id: number;
name: string;
answerType: AnswerType;
label: TranslatableString;
options: ... |
import { User as UserExtend } from './src/models/user/entities/user.entity';
declare global {
namespace Express {
export interface User extends UserExtend {}
}
} |
import Key from './key'
export interface Query<Value> {
prefix?: string
filters?: Array<Filter<Value>>
orders?: Array<Order<Value>>
limit?: number
offset?: number
keysOnly?: boolean
}
interface QueryEntry<Value> {
key: Key
value?: Value
}
export type Callback<T> = (err: Error | null, data?: T) => voi... |
import { Action } from 'redux';
import { UPDATE_LOCATION } from './actions';
export const DefaultRouterState: string = '';
export interface RouterAction extends Action {
payload?: string;
}
export function routerReducer(
state: string = DefaultRouterState,
action: RouterAction,
): string {
switch (action.ty... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { ExpanderModule } from '../../modules/expander.module';
@NgModule({
... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
Signer,
BytesLike,
Contract,
ContractFactory,
Overrides,
} from "ethers";
import { Provider, TransactionRequest } from "@ethersproject/providers";
import type { AppProxyUpgradeable } from "../AppProxyUpgradeab... |
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
],
... |
import "reflect-metadata"
import { expect } from "chai"
import { DataSource } from "../../../../src/data-source/DataSource"
import {
closeTestingConnections,
createTestingConnections,
reloadTestingDatabases,
} from "../../../utils/test-utils"
import { Post } from "./entity/Post"
describe("cube-postgres", (... |
/// <reference path="../../T4TS.d.ts" />
/// <reference path="../lib/jquery-1.8.d.ts" />
module App {
export class Test {
private partialClass: T4TS.Partial;
constructor() {
this.partialClass = {
FromFirstClass: '',
FromSecondClass: '',
... |
import React, {
createRef,
FC,
forwardRef,
useEffect,
useImperativeHandle,
useState,
ReactNode,
} from 'react'
import { NativeProps, withNativeProps } from '../../utils/native-props'
import { mergeProps } from '../../utils/with-default-props'
import classNames from 'classnames'
import Popup from '../popup... |
import { ResolveAction, ResolveExtendAction, getNextRequestedAction } from './action';
import { BidType, PlacedBid } from './bid';
import { FlowCore } from './flow-core';
import { NameKeyId, NameKeyMap } from './name-key-map';
import { Logger, LoopLog } from './logger';
import { advanceRejectAction, advanceRequestedAct... |
import { expect, haveResource } from '@aws-cdk/assert';
import lambda = require('@aws-cdk/aws-lambda');
import cdk = require('@aws-cdk/core');
import { Test } from 'nodeunit';
import secretsmanager = require('../lib');
export = {
'create a rotation schedule'(test: Test) {
// GIVEN
const stack = new cdk.Stack... |
import React from 'react';
import '@testing-library/jest-dom';
import { render, screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { composeStories } from '@storybook/testing-react';
import { NewMockSdApolloProvider } from 'test/mocks/mockApolloProvider';
import... |
import { BlockMap, ContentBlock } from 'draft-js';
function sortByPos(arr: Array<ContentBlock>) {
const newArr = [...arr];
newArr.sort((item1, item2) => {
// @ts-ignore
return item1.getIn(['data', 'pos']) - item2.getIn(['data', 'pos']);
});
return newArr;
}
/**
* Given a blockMap and a block id, th... |
import {
Controller,
Get,
Post,
Put,
Delete,
Param,
Body,
Query,
UseGuards,
} from '@nestjs/common';
import { AuthGaurd } from '../gaurds/auth.gaurd';
import { Book } from './book.schema';
import { BookService } from './book.service';
import { CreateBookDto, QueryOptions } from './dto/index.dto';
@Co... |
import { newE2EPage } from '@stencil/core/testing';
describe('app-fly-to', () => {
it('renders', async () => {
const page = await newE2EPage();
await page.setContent('<app-fly-to></app-fly-to>');
const element = await page.find('app-fly-to');
expect(element).toHaveClass('hydrated');
});
}); |
import * as React from 'react';
export type GeniusProps = {
/**
* 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 Genius = React.forwardR... |
import { Component } from '@angular/core';
import { AuthenticationService, TokenPayload } from '../../authentication.service';
import { Router } from '@angular/router';
@Component({
templateUrl: './register.component.html'
})
export class RegisterComponent {
credentials: TokenPayload = {
email_id: '',
name... |
// Copyright 2021 Google 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
import { InjectionKey, ComputedRef } from "vue";
import { ProgramLogTypes } from "@backend/data_utils";
export const programLogsTypesKey: InjectionKey<ComputedRef<ProgramLogTypes>> = Symbol('programLogTypes'); |
if (testNamespace.inferredBooleanOutput()) {}
if (testNamespace.inferredNumberOutput()) {} |
import * as vscode from "vscode"
import {
addClause,
addMissing,
apropos,
aproposSelection,
browseNamespace,
caseSplit,
docsFor,
docsForSelection,
evalResult,
generateDef,
interpretSelection,
loadFile,
makeCase,
makeLemma,
makeWith,
metavariables,
printDefinition,
printDefinitionSele... |
import {
addDependenciesToPackageJson,
formatFiles,
installPackagesTask,
Tree,
updateJson,
} from '@nrwl/devkit';
import { nxVersion } from '../../utils/versions';
import type { GeneratorOptions } from './schema';
import { AppMigrator } from './utilities/app.migrator';
import { getAllProjects } from './utilit... |
/**
*
*
* OpenAPI spec version: 20190325
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ... |
import { Component, OnInit, OnDestroy, ViewChild, ElementRef, ChangeDetectorRef } from '@angular/core'
import { FormGroup, FormControl, Validators, FormArray, FormBuilder, AbstractControl, ValidatorFn } from '@angular/forms'
import { ENTER, COMMA } from '@angular/cdk/keycodes'
import { Subscription, Observable } from '... |
import React from 'react'
import styles from '@styles/styles.module.css'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faGithub } from '@fortawesome/free-brands-svg-icons'
import Link from 'next/link'
const Header = () => {
return (
<header className={styles.header}>
<h1>wenSpace</h1>... |
import PropTypes from "prop-types";
import { useState, ChangeEvent, FormEvent } from "react";
import { PHASE } from "../../common";
import useTitleBar from "../hooks/useTitleBar";
import { helpers, realtimeUpdate, toWorker } from "../util";
import type { View } from "../../common/types";
import { PopText, RecordAndPlay... |
/// <reference types="react" />
import React from 'react';
import DropdownButton from './dropdown-button';
export interface DropDownProps {
trigger?: ('click' | 'hover')[];
overlay: React.ReactNode;
style?: React.CSSProperties;
onVisibleChange?: (visible?: boolean) => void;
visible?: boolean;
al... |
import React, { useEffect, useState } from "react";
import { css } from '@emotion/react'
import { basicButtonStyle, backOrContinueStyle, errorBoxStyle, flexGapReplacementStyle } from '../cssStyles'
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faTools} from "@fortawesome/free-solid-svg-ic... |
import React from 'react';
import PT from 'prop-types';
import { classNames, intrinsicComponent } from '@brix-ui/utils/functions';
import { stylableComponent } from '@brix-ui/prop-types/common';
import Text from '../text';
import type { TagProps } from './tag.props';
import Styled from './tag.styles';
const Tag = i... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
import User from 'models/user';
import api from 'utils/api'
import Cookie from 'js-cookie'
const UserService = {
async save(user: User) {
if(user.id !== '') {
return await api.put(`/api/User/${user.id}`, user)
} else {
return await api.post('/api/User', user)
}
},
async getUser() {
co... |
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { FormsModule } from "@angular/forms";
import { RouterModule } from "@angular/router";
import { ModelModule } from "../model/model.module";
import { CheckoutComponent } from "./checkout.component";
@NgModule(... |
import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import styles from './index.module.css';
function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
return ... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SharedModule } from '../shared/shared.module';
import { ProductShellComponent } from './product-shell/product-shell.component';
import { ProductListComponent } from './product-list/product-list.component';
impor... |
import isEqual from "./isEqual";
const validCases = test.each`
target | other | expected
${new Date("2022-01-15")} | ${new Date("2022-01-15")} | ${true}
${1} | ${1} | ${true}
${true} | ${true} ... |
import * as React from 'react';
import { Action, Asset, FieldExtensionSDK, ViewType, RenderDragFn } from '../../types';
import { LinkActionsProps, MissingEntityCard } from '../../components';
import { WrappedAssetCard, WrappedAssetCardProps } from './WrappedAssetCard';
import { WrappedAssetLink } from './WrappedAssetLi... |
export class MessageAlreadySentError extends Error { constructor(m: string) { super(m); Object.setPrototypeOf(this, MessageAlreadySentError.prototype) } }
export class MessageFailedError extends Error { constructor(m: string) { super(m); Object.setPrototypeOf(this, MessageFailedError.prototype) } }
export class PluginD... |
export const checkStatus = (status: number, checkNumber: number) => {
return status === checkNumber;
};
export const checkExcessStatus = (status: number, checkNumber: number) => {
return status >= checkNumber;
};
export const checkHttpCode = (status: number): number => {
return Math.floor(status / 100);
};
exp... |
import { Injectable, NotFoundException } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { from, Observable } from 'rxjs';
import { CreateServicioDto } from './dto/create-servicio.dto';
import { IServicio } from './interfaces/servicio.interface';
import { ... |
import { Status } from "../Status";
import Tree from "../Tree";
export class NotNode extends Tree {
public tree: Tree;
constructor(tree: Tree) {
super();
this.tree = tree;
}
public execute(name: string, id: string): Status {
const result = this.tree.execute(name + "NotNode-", id)... |
import React, { ReactNode } from 'react';
import { element } from 'prop-types';
import { ThemeProvider } from 'styled-components';
import { GlobalStyles, theme } from 'styles';
type RootProps = {
children: ReactNode
}
const Root = ({ children }: RootProps): JSX.Element => {
const { main } = theme;
return (
... |
import { TEST } from "..";
export const serializers = {
ClassWithDecorator: {
pack: value => null,
unpack: value => new ClassWithDecorator()
}
};
export class ClassWithDecorator {
@TEST(__filename, { disabled: false })
name() {
return "name";
}
} |
import { AccountInfo } from "@azure/msal-browser";
import React, { useState } from "react";
import { useRouter } from 'next/router';
import AzureAuthenticationContext from "./azure-authentication-context";
const ua = typeof window !== "undefined" ? window.navigator.userAgent : [];
const msie = ua.indexOf("MSIE ");
co... |
// Copyright (c) 2012-2022 John Nesky and contributing authors, distributed under the MIT license, see accompanying the LICENSE.md file.
import {Config} from "../synth/SynthConfig";
import {Note, Pattern} from "../synth/synth";
import {SongDocument} from "./SongDocument";
import {ChangeGroup} from "./Change";
import {... |
import { Module } from '@nestjs/common';
import { ConfModule } from '../conf.module';
import { EsClientModule } from '../esClient.module';
import TestingRunsResolvers from './testingRuns.resolvers';
import ConfigResolver from './config/config.resolvers';
import ConfigAggregationsService from '../utils/config/aggregat... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import { createElement, isNullOrUndefined, remove } from '@syncfusion/ej2-base';
import { FormValidator } from '@syncfusion/ej2-inputs';
import * as cls from '../base/css-constant';
/**
* Appointment window field validation
*/
export class FieldValidator {
... |
import React, { Component } from "react";
import CssBaseline from "@material-ui/core/CssBaseline";
import { createStyles, withStyles, Theme } from "@material-ui/core/styles";
import { WithStyles } from "@material-ui/core";
import CircularProgress from "@material-ui/core/CircularProgress";
import Typography from "@mater... |
import { FormattingOptions, TextEdit } from "vscode-languageserver/node";
import formatNode from "../../capabilities/formatting";
import { rootParser } from "../../parser/parser";
import { applyParser, getInlineRange } from "../../parser/utils";
import { applyEdits } from "../utils";
const defaultOptions: FormattingOp... |
/**
* @packageDocumentation
* @module Parts.HEM-9200T
*/
import Obniz from "../../../obniz";
import BleRemoteCharacteristic from "../../../obniz/libs/embeds/bleHci/bleRemoteCharacteristic";
import BleRemotePeripheral from "../../../obniz/libs/embeds/bleHci/bleRemotePeripheral";
import BleRemoteService from "../../.... |
export interface LiveExample {
title: string;
component: any;
additionalFiles?: string[];
selectorName?: string;
}
import { AutocompleteDisplayExample } from './autocomplete-display/autocomplete-display-example';
import { AutocompleteFilterExample } from './autocomplete-filter/autocomplete-filter-exampl... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(
<App />,
document.getElementById('react')
); |
import React from 'react'
const WomanRowingBoatDarkSkinTone = ({ size, rem }: {
size: number | string,
rem?: boolean
}) => {
const width = (typeof size === 'string') ? size : rem ? `${size}rem` : `${size}px`
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" style={{ width: width }}><pat... |
export declare class PreguntaDTO {
readonly descripcion: string;
readonly imagen: string;
readonly pregunta_img: boolean;
readonly url_img: string;
numero: number;
readonly frecuencia: number;
readonly respuesta_correcta: string;
readonly respuesta_incorrecta_1: string;
readonly resp... |
export class AuthForm {
email: string;
password: string;
username: string;
constructor(email: string = null, password: string = null, username: string = null) {
this.email = email;
this.password = password;
this.username = username;
}
} |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { PopPreviewComponent } from './pop-preview/pop-preview.component';
import { PagePreviewComponent } from './page-preview/page-preview.component';
import { ViewerDirective... |
import {AbstractControl, ValidationErrors} from "@angular/forms";
export class Password {
static isPattern(c: AbstractControl, regex: RegExp, error: ValidationErrors): ValidationErrors | null {
if (!c.value) {
// if control is empty return no error
return null;
}
const valid = regex.test(c.va... |
import * as React from "react";
import {Link, Route} from "react-router-dom";
import {connect} from "react-redux";
import {RouteComponentProps} from "react-router";
import {bindActionCreators, Dispatch} from "redux";
import {
Container,
Header,
Dropdown,
Divider,
Breadcrumb,
} from "semantic-ui-reac... |
/**
* @license
* Copyright 2017 Google 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... |
import { ethers } from "ethers";
import { sign } from "./crypto";
import { createBroadcast } from "./factories";
import { convertSignedAnnouncementToAnnouncement } from "./services";
describe("convertSignedAnnouncementToAnnouncement", () => {
const signer = ethers.Wallet.createRandom();
it("returns the same anno... |
import { DssProxyActionsCharter } from '../../../types/web3-v1-contracts/dss-proxy-actions-charter'
import {
NonPayableTransactionObject,
PayableTransactionObject,
} from '../../../types/web3-v1-contracts/types'
import { ContextConnected } from '../../network'
import { amountToWei, amountToWeiRoundDown } from '../.... |
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { NgJhipsterModule } from 'ng-jhipster';
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
import { CookieModul... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { TranslateModule } from '@ngx-translate/core';
import { LayoutComponent } from './layout.component';
import { LayoutModule } from './layout.module';
describe('LayoutComponen... |
// Copyright 2019-2020 @Premiurly/polkassembly 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 AuthService from '../../services/auth';
import { AddressArgs, ChangeResponseType, Context } from '../../types';
i... |
import {Component} from '@angular/core';
@Component({
selector: 'ob-top-control',
exportAs: 'obTopControl',
template: ''
})
export class ObMockTopControlComponent {
public scrollTop(): void {}
} |
import { Observable } from "rxjs";
import { ConnectionConfig } from "pg";
export class RxPg {
private pool;
constructor(config?: string | ConnectionConfig);
query(sql: string, values?: any): Observable<any>;
transaction(queries: ((rxpg: RxPg, prevResult: any) => Observable<any>)[]): Observable<any>;
} |
export const root: string;
export const xs: string;
export const s: string;
export const m: string;
export const l: string;
export const xl: string;
export const xxl: string;
export const sans: string;
export const serif: string;
export const inputWrapper: string;
export const box: string;
export const select: string;
... |
import { Bank } from 'oldschooljs';
import { PoHObject } from '..';
export const JewelleryBoxes: PoHObject[] = [
{
id: 37492,
name: 'Basic jewellery box',
slot: 'jewelleryBox',
level: 81,
itemCost: new Bank()
.add('Bolt of cloth')
.add('Steel bar')
.add('Games necklace(8)', 20)
.add('Ring of du... |
import { Global, Module } from '@nestjs/common';
import { TransientLoggerService } from './transient-logger.service';
@Global()
@Module({
providers: [TransientLoggerService],
exports: [TransientLoggerService]
})
export class TransientLoggerModule {
} |
import { LocationValidatorDirective } from './location-validator.directive';
describe('LocationValidatorDirective', () => {
it('should create an instance', () => {
const directive = new LocationValidatorDirective();
expect(directive).toBeTruthy();
});
}); |
import React, { Component, ReactElement, ReactNode } from 'react';
import { FlatList, Text, View, Dimensions, RefreshControl } from 'react-native';
import { MediaItemInternal } from 'app/data/models/internal/media-items/media-item';
import { MediaItemRowComponent } from 'app/components/presentational/media-item/list/ro... |
import React, { useEffect, useState } from 'react'
import { SubtitleDialog, SubtitleEdit } from '../../lib-ts/subtitles'
import { events, subtitle, video } from '../api'
import Japanese from '../util/japanese'
import './subtitles.scss'
import SubtitleEditDialog from './subtitle_edit_dialog'
type SubtitleViewProps = ... |
import * as path from 'path';
import * as fse from 'fs-extra';
import { formatPath } from '@builder/app-helpers';
import { getPageDir, getPageStorePath } from './utils/getPath';
import checkPageIndexFileExists from './utils/checkPageIndexFileExists';
export interface IRenderPageParams {
pageName: string;
pageNameD... |
const exc = (nums: number[], l: number, r: number) => {
[nums[l], nums[r]] = [nums[r], nums[l]];
};
const findLeft = (nums: number[]) => {
for (let i = nums.length - 2; i >= 0; i--) {
if (nums[i] < nums[i + 1]) return i;
}
return -1;
};
const findRight = (nums: number[], left: number) => {
for (let i = nu... |
import { array } from 'misc-utils-of-mine-generic'
import { BorderProps, Component, createElement, ElementPropsImpl, EventListener, FullProps, isElement, KeyEvent, KeyListener, layoutChildren, LayoutOptions, mouseActionNames, MouseListener, Padding, ProgramDocument } from '..'
import { Element } from '../dom'
import { ... |
import { HTMLElementProperties } from './HTMLElement'
export interface HTMLHeadElementProperties extends HTMLElementProperties {} |
export const defaultTo = () => {
return;
};
export default defaultTo; |
import { LifecycleFlags } from '../flags';
import { ILifecycle } from '../lifecycle';
import { CollectionKind, createIndexMap, ICollectionObserver, IObservedSet } from '../observation';
import { CollectionSizeObserver } from './collection-size-observer';
import { collectionSubscriberCollection } from './subscriber-coll... |
import React from 'react';
import { categories } from '../../utils/categories';
import {
Container,
Title,
Amount,
Footer,
Category,
Icon,
CategoryName,
Date
} from './styles';
export interface TransactionCardProps {
type: 'positive' | 'negative';
name: string;
amount: string;
category: strin... |
// tslint:disable:member-ordering
import "reflect-metadata";
import {
IntrospectionSchema,
IntrospectionObjectType,
IntrospectionNamedTypeRef,
IntrospectionNonNullTypeRef,
IntrospectionListTypeRef,
IntrospectionField,
GraphQLSchema,
graphql,
TypeKind,
parse,
TypeInfo,
ValidationContext,
visit,... |
import { IWebhookDeliveryData, IWebhookResponse, IWebhookWorkflowData } from '../models';
export interface IWebhookDeliveryResponse extends IWebhookResponse<IWebhookDeliveryData> {}
export interface IWebhookWorkflowResponse extends IWebhookResponse<IWebhookWorkflowData> {} |
import * as scheduler from 'scheduler';
import { REMAX_ROOT_VDOM, REMAX_METHOD, TYPE_TEXT } from './constants';
import { Container } from './container';
import { HostConfig } from 'react-reconciler';
import { stringifyCssText } from './utils/stringifyCssText';
const {
unstable_scheduleCallback: scheduleDeferredCallb... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.