text
stringlengths
10
953k
// import components to test // import {} from '@components'; import { Class, Component } from 'ovee.js'; const components: Class<Component, typeof Component>[] = []; export default components;
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ArticleLoadingComponent } from './article-loading.component'; describe('ArticleLoadingComponent', () => { let component: ArticleLoadingComponent; let fixture: ComponentFixture<ArticleLoadingComponent>; beforeEach(async(() => { ...
// a barrel of the customer related "things" export * from './customer.service'; export * from './customer.component'; export * from './customers.component';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { NgModule } from '@angular/core'; import { FlexLayoutModule } from '@angular/flex-layout'; import { FormsModule } from '@angular/forms'; import { MatIconModule, MatButtonMod...
// (C) 2020-2022 GoodData Corporation import React from "react"; import { DashboardItemContent } from "./DashboardItemContent"; import { DashboardItemContentWrapper } from "./DashboardItemContentWrapper"; export interface IDashboardItemBaseProps { /** * Render prop for the content itself. */ childre...
/* Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive licen...
<TS language="bg" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Десен клик, за промяна на адрес или етикет</translation> </message> <message> <source>Create a new address</source> <transl...
export function flattenGlob<T>(acc: T[], src: T[]): T[] { acc.push(...src); return acc; }
/* tslint:disable:jsx-no-lambda */ // https://github.com/facebook/create-react-app/issues/4801#issuecomment-409553780 // Disabled for React Router rendering import { createMuiTheme, MuiThemeProvider } from '@material-ui/core'; import Grid from '@material-ui/core/Grid'; import * as React from 'react'; import { connect ...
import { getSessionsBySpeaker } from '../../api/queries/getSessions'; import { getSpeakers, getSpeakerById } from '../../api/queries/getSpeakers'; import { Speaker } from '../../interfaces/speaker'; import { Session } from '../../interfaces/session'; import SpeakerDisplay from '../../components/SpeakerDisplay'; import ...
import {omit, merge, cloneDeep} from 'lodash' import {request} from '../request' import { BaseParameters, GetCachedResultParameters, GetJobParameters, GetUpdatedResultParameters, GetManyParameters, GetOneParameters, QueryClient, Redash, RedashClientConfig, RedashResult, Reque...
import React from 'react'; import AntTextField, {SearchProps} from 'antd/lib/input'; type SearchTextFieldProps = SearchProps & React.RefAttributes<AntTextField>; const AntSearchTextField = AntTextField.Search; const displayName = 'TextField.Search'; const SearchTextField = React.forwardRef<AntTextField, SearchTextFie...
import { Component, ElementRef, Input, OnChanges, Renderer, SimpleChange, SimpleChanges, } from '@angular/core'; import { Config, Ion } from 'ionic-angular'; @Component({ selector: 'fa-icon', template: ' ', }) export class FaIconComponent extends Ion implements OnChanges { @Input() name: string; ...
import 'babel-polyfill' async function log (name) { await sleep(5000) console.log(name) } function sleep (ms) { ms = ms || 0 return new Promise(function (resolve) { setTimeout(resolve, ms) }) } log('Wake up miguel!!!')
import '@nomiclabs/hardhat-ethers'; import { expect } from 'chai'; import { ethers } from 'hardhat'; import { MockLensHubV2BadRevision__factory, MockLensHubV2__factory, TransparentUpgradeableProxy__factory, } from '../../typechain-types'; import { ERRORS } from '../helpers/errors'; import { abiCoder, deployer, le...
import { Response, Request } from "express"; import { DATA_DIR } from "../constants/filesNames"; import { getSummaryExtension } from "../model/getWorkoutExtension"; import { IUserModel } from "../models/user-model"; import { findWorkoutSummariesByUser } from "../services/workout-list-service"; import { readJson } from...
import React from 'react'; import { Helmet } from 'react-helmet'; import { Link } from 'react-router-dom'; import SubscribeForm from '../components/SubscribeForm'; import PostList from '../constants/PostList'; import { unslugify } from '../helpers/slugify'; import Layout from './Layout'; const HomePage = () => { ret...
import { Resolver } from 'type-graphql'; import { NotificationChannel } from '../models/NotificationChannel'; @Resolver(NotificationChannel) export class NotificationChannelResolver { }
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MyRoutesComponent } from './my-routes.component'; describe('MyRoutesComponent', () => { let component: MyRoutesComponent; let fixture: ComponentFixture<MyRoutesComponent>; beforeEach(async(() => { TestBed.configureTestingMod...
export { ThreeShaderGenerator } import * as Math from "./../../Mathematics/Mathematics"; import * as Engine from "./../../Engine/Engine"; import { ThreeNodeShaders } from "./ThreeNodeShaders"; class ThreeShaderGenerator { private static _Passed:Engine.MaterialNode[]; public static GenerateFragment(Material:E...
/** * Modified from bcoin's bdb (https://github.com/bcoin-org/bdb) (MIT LICENSE). * Credit to the original author, Christopher Jeffrey (https://github.com/chjj). */ /* External Imports */ import { AbstractOpenOptions, AbstractLevelDOWN, AbstractChainedBatch, } from 'abstract-leveldown' import MemDown from 'm...
import { dct, dctMatrix, dctMatrixPromise, idct, idctMatrix, idctMatrixPromise } from '..' function equal(matrix1: number[][], matrix2: number[][], m: number, n: number) { if (matrix1.length !== m || matrix2.length !== m) throw Error() if (matrix1[0].length !== n || matrix2[0].length !== n) throw Error() for (l...
/** * @license * MIT License * * Copyright (c) 2017-2019 dirigeants * * 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 * t...
import { SwitchFile } from '../types'; import { RailsFile } from '../rails-file'; import { RailsWorkspace, relativeToAppDir } from '../rails-workspace'; import { appendWithoutExt } from '../path-utils'; import * as path from 'path'; export function modelTestMaker( railsFile: RailsFile, workspace: RailsWorkspace ):...
import { BuildSetting } from "./Build"; import { CharacterKey, ElementKey, HitModeKey, ReactionModeKey, SlotKey, WeaponKey, WeaponTypeKey } from "./consts"; import { BasicStats, ICalculatedStats } from "./stats"; import IConditional, { IConditionals } from "./IConditional"; import { IFieldDisplay } from "./IFieldDispla...
import "./app.css" import { InlineViewStrategy } from "aurelia-framework"; export class App { public monacohtml: InlineViewStrategy; }
import { AppStateStore } from './app-state' import { CustomElementOptions } from '@ficusjs/core' export interface FicusComponentWithStore<TS> extends HTMLElement { setStore: (store: AppStateStore<TS>) => void } export declare function withStore<TS, TCO> (store: AppStateStore<TS>, options: CustomElementOptions<TCO>)
import React, { FunctionComponent } from 'react'; import { StyledToolbar } from '../../styled/menu'; const Toolbar: FunctionComponent = ({ children }) => { return <StyledToolbar>{children}</StyledToolbar>; }; export default Toolbar;
import { isYouTubeUrl } from "components/apps/VideoPlayer/useVideoPlayer"; import type { ExtensionType } from "components/system/Files/FileEntry/extensions"; import extensions from "components/system/Files/FileEntry/extensions"; import { getModifiedTime, getTextWrapData, } from "components/system/Files/FileEntry/fu...
declare module NodeJS { interface Global { __rootdir__: string; } }
import "./core/index.ts"; import "./commands/index.ts";
/* * 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 { ILegacyClusterClient, IRouter, ILegacyScopedClusterClient, Ki...
// GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY import * as React from 'react' import LikeTwoToneSvg from '@ant-design/icons-svg/lib/asn/LikeTwoTone'; import AntdIcon, { AntdIconProps } from '../components/AntdIcon'; const LikeTwoTone = ( props: AntdIconProps, ref: React.MutableRefObject<HTMLSpan...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RegistroUsuariosComponent } from './registro-usuarios.component'; describe('RegistroUsuariosComponent', () => { let component: RegistroUsuariosComponent; let fixture: ComponentFixture<RegistroUsuariosComponent>; beforeEach(async () => ...
/** * Package Version * Smogon Stats Site - https://github.com/asanrom/Smogon-Stats-Site */ "use strict"; import * as FS from "fs"; import * as Path from "path"; const Package = JSON.parse( FS.readFileSync(Path.resolve(__dirname, "../../package.json")).toString(), ); /** * Gets the package version. */ expo...
import * as React from "react"; const ClrVideoCamera: React.SFC = () => ( <svg version="1.1" viewBox="0 0 36 36" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" focusable="false" role="img" xmlnsXlink="http://www.w3.org/1999/xlink" > <path d="M34,10.34a2.11,2....
export const isNonEmptyArray = (arrayData: any[]) => { return Array.isArray(arrayData) && arrayData.length; }; export function flatten<T>(arrayOfArrays: Array<Array<T>>): T[] { if (isNonEmptyArray(arrayOfArrays)) { return arrayOfArrays.reduce((a, b) => concatArrays(a, b)); } else { return [...
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { Country } from './country.schema'; import * as mongoose from 'mongoose'; export type StateDocument = State & mongoose.Document; @Schema() export class State { @Prop({ required: true }) name: string; @Prop({ type: String }) id: string; ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Cycle, CycleAggregation } from '../models/types'; import { History } from 'history'; export const FETCH_ALL_CYCLES_METRICS = 'FETCH_ALL_CYCLES_METRICS'; export const FETCH_ALL_CYCLES_METRICS_SUCCESS = 'FETCH_ALL_CYCLES_METRICS_SUCCESS'; export const FETCH_ALL_CYCLES_METRICS_FAIL = 'FETCH_ALL_CYCLES_METRICS_...
import CB, { HP, loadProgress, TIER_CHANGES } from '../src'; import { CbProgress } from '../src/types'; describe('CB', () => { let cb = new CB(); const cb1 = new CB(1); const cb2 = new CB([1, 1, 1, 1, 1]); test('constructor() sets proper tier and hp', () => { expect(cb.tier).toStrictEqual(0); expect(cb.boss).t...
import parser from "accept-language-parser"; import deepEqual from "deep-equal"; import dotenv from "dotenv"; import first from "lodash.first"; import { GetServerSidePropsContext } from "next"; import Head from "next/head"; import { useRouter } from "next/router"; import { useCallback, useContext, useEffect, us...
const fake = require("faker"); import { UserModel } from '../model/UserModel'; import { PostModel } from '../model/PostModel'; import { CommentModel } from '../model/CommentModel'; import {IUserModel} from '../interfaces/IUserModel'; import {IPostModel} from '../interfaces/IPostModel'; import {ICommentModel} from '.....
// Type definitions for new-github-issue-url 0.1 // Project: https://github.com/sindresorhus/new-github-issue-url#readme // Definitions by: BendingBender <https://github.com/BendingBender> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 export = newGithubIssueUrl; /** * ...
import * as HEADERS from './headers'; export const Encoder = /* @__PURE__ */ new TextEncoder(); export const Decoder = /* @__PURE__ */ new TextDecoder(); // Common error codes' status text export const STATUS_CODES: Record<string|number, string> = { "400": "Bad Request", "401": "Unauthorized", "403": "Forbidden", ...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import * as coreHttp from "@azure/core-http"; import { DeletionRecoveryLevel, KeyUsageType } from "./core/models"; /** * Defines values for CertificateKeyType. * Possible values include: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM', 'oct' * @readonly ...
import { Component, OnInit } from "@angular/core"; import { IpInfo } from "src/app/models"; import { APIService } from "../../services"; @Component({ selector: "app-ip-lookup", templateUrl: "./ipLookup.component.html", styleUrls: ["./ipLookup.component.scss"], }) export class IPLookupComponent implements OnInit {...
import { TileBranch, TileBranchSubstance, TileLeaf, TileLeafSubstance, } from '..' import { PaneName } from '../../..' export function isTileLeaf( node: TileLeafSubstance | TileBranchSubstance | TileLeaf | TileBranch ): node is TileLeafSubstance | TileLeaf { const { children = '0' } = node if (children i...
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faGithub } from "@fortawesome/free-brands-svg-icons"; import Link from "next/link"; import React from "react"; export default function Nav() { return ( <header className="text-gray-700 body-font"> <div className="container mx-auto f...
import { NestFactory } from '@nestjs/core'; import { ScriptsModule, InterfaceScript } from './scripts/scripts.module'; import { EventEmitter } from 'events'; async function runScript(scriptName): Promise<any> { console.log('scriptName: ', scriptName); const context = await NestFactory.createApplicationContext(Scri...
import test from 'ava' import { parseLocation, lerp, moveOnCoords } from '../src/move-on-coords' test('指定有効桁の小数に変換する', t => { t.is(parseLocation(1.41421356237, 7), 1.4142136) t.is(parseLocation(2.2360679775, 7), 2.236068) t.not(parseLocation(2.2360679775, 7), 2.2360679) t.is(parseLocation(5, 7), 5) }) test('2...
const now = () => new Date().getTime(); type Deferred = { resolve: (value: any) => void; reject: (value: any) => void; }; export function debounceCollect<Args extends Array<any>>( func: (calls: Array<Args>) => Promise<Array<any>>, wait: number ) { let timer: NodeJS.Timeout | null; let timestamp: number; ...
export class ArchInnerboxtype { constructor( public id?: number, public runame?: string, public kzname?: string, public engname?: string // public innerboxesById?: ArchInernbox[] ) { } }
import pli from "./internals/polars_internal"; import {Stream} from "stream"; export type DtypeToPrimitive<T> = T extends DataType.Bool ? boolean : T extends DataType.Utf8 ? string : T extends DataType.Categorical ? string : T extends DataType.Datetime ? number | Date : T extends DataType.Date ? Date : T extends ...
/* Copyright 2015 Google Inc. 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 applicable law or agreed to in ...
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.21.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do no...
import BaseGit from './BaseGit' import fs from 'fs' import path from 'path' import { log, shell, fileUtils } from 'ern-core' import { ICauldronFileStore } from './types' export default class GitFileStore extends BaseGit implements ICauldronFileStore { private readonly prefix: string constructor({ cauldronPa...
import { Component, OnInit } from '@angular/core'; import {ActivatedRoute} from '@angular/router'; @Component({ selector: 'app-menu-contact', templateUrl: './menu-contact.component.html', styleUrls: ['./menu-contact.component.scss'] }) export class MenuContactComponent implements OnInit { idType: number; ...
import { useTimeout } from "@lilib/hooks"; import { act, renderHook } from "@testing-library/react-hooks"; describe("useTimeout", () => { beforeEach(() => { jest.useFakeTimers(); }); afterEach(() => { jest.runOnlyPendingTimers(); jest.useRealTimers(); }); it("should return the same actions when ...
import * as THREE from "three"; import { Vector2 } from "three"; import { TweenableNumber, tween } from "../../utils/tweening-utils"; /** * Extend this abstract class if you want to create a 2D object that can be added to the scene. * Make sure to call init() at the end of your constructor - I have not been able to ...
import { endGroup, startGroup } from '@actions/core'; import ScanParameters from './scanParameters'; import { execute } from './utils/execute'; const installDotnetSonarScanner = async (scanParameters: ScanParameters): Promise<void> => { startGroup('Installing dotnet sonarscanner tool...'); let installToolCommand =...
import * as H from 'history'; import * as PathUtils from './pathUtils'; import I18nService, { Language } from '../../i18n/I18nService'; function getPathname<S>( pathOrLocation: H.Path | H.LocationDescriptorObject<S> ): string | undefined { if (typeof pathOrLocation === 'string') { return pathOrLocation; } ...
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient"; import { GetEventSelectorsRequest, GetEventSelectorsResponse } from "../models/models_0"; import { deserializeAws_json1_1GetEventSelectorsCommand, serializeAws_json1_1GetEventSelectorsCommand, } from "../pro...
// *** 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 { Action } from '@ngrx/store'; import { User } from '../../models/user.model'; export const CURRENT_USER = 'CURRENT_USER'; export const SET_CURRENT_USER = 'SET_CURRENT_USER'; export class CurrentUserAction implements Action { readonly type = CURRENT_USER; } export class SetCurrentUserAction implements Actio...
export { validate } from './validate'; export { extend } from './extend'; export { configure } from './config'; export { setInteractionMode } from './modes'; export { localize } from './localize'; export { ValidationProvider, ValidationObserver, withValidation } from './components'; export { normalizeRules } from './ut...
export const graphTimeSeries32: string;
/// <reference path="../../types/jwplayer.d.ts"/> import JwPlayerPlugin from "./plugin"; function JwPlayerPluginFn() { if (!jwplayer) return; const Plugin = function (player: any, config: any, div: HTMLElement) { const conf = player.getConfig(); const plugin = new JwPlayerPlugin(jwplayer, co...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-signup-footer', templateUrl: './signup-footer.template.html', styleUrls: ['./signup-footer.style.css'], }) export class SignupFooterComponent implements OnInit { constructor() {} ngOnInit() {} }
import { max, min } from "d3-array"; import { local } from "d3-selection"; import defaultsDeep from "lodash/defaultsDeep"; import flatten from "lodash/flatten"; import isArray from "lodash/isArray"; import isUndefined from "lodash/isUndefined"; import uniq from "lodash/uniq"; import { Subject } from "rxjs"; import { D...
import React from 'react'; import { Meta, Story } from '@storybook/react/types-6-0'; import { I18nProvider } from 'next-localization'; import ProductDetail, { ProductDetailFields } from './ProductDetail'; import { SitecoreContext } from '@sitecore-jss/sitecore-jss-nextjs'; export default { title: 'Products/ProductDe...
/* tslint:disable */ /* eslint-disable */ /** * CrowdStrike API Specification * Use this API specification as a reference for the API endpoints you can use to interact with your Falcon environment. These endpoints support authentication via OAuth2 and interact with detections and network containment. For detailed usa...
/* * Copyright (c) 2020 Jan Pieter Posthuma / DataScenarios * * All rights reserved. * * MIT License. * * 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, includi...
import { Integrations, init } from '@sentry/browser'; const isDevelopment = process.env.NODE_ENV === 'development'; const environment = window.location.hostname; const initSentry = () => init({ environment, dsn: isDevelopment ? 'http://dev@localhost:3000/1' : 'https://696e68dd296b4841b2426b9b0cd...
import { ExpressionStatement } from 'jscodeshift' import { CompiledMatcher, CompileOptions } from '.' import compileCaptureMatcher, { unescapeIdentifier } from './Capture' export default function compileExpressionStatementMatcher( query: ExpressionStatement, compileOptions: CompileOptions ): CompiledMatcher | void...
import { Box, useColorMode } from '@chakra-ui/core'; import { AuthenticationContext } from '../../utils/authenticationContext'; import { Link } from 'gatsby-plugin-intl'; import React from 'react'; import { Search } from '../navigationBars/search'; import { navigate } from 'gatsby'; import { useIntl } from 'gatsby-plu...
export { parseArbitratorFee } from './arbitratorFees' export { parseCollateralRequirement } from './collateralRequirements' export { parseConfig } from './config' export { parseProposal, parseProposals } from './proposals' export { parseSupporter } from './supporter'
import { LendingPool, LendingPoolConfigurator } from '../../generated/templates' import { LendingPoolConfiguratorUpdated, ProxyCreated } from '../../generated/templates/LendingPoolAddressesProvider/LendingPoolAddressesProvider' export function handlePoolConfiguratorUpdated(event: LendingPoolConfiguratorUpdated): void ...
declare module "gitignore" { import type { WriteStream } from "fs"; export function writeFile( options: { type: string; file: WriteStream }, callback: (err: any, val: any) => void ): void; }
namespace pixi_blit { export class BlitComponent { constructor() { } sprite: PIXI.Sprite = null; tryRender(renderer: PIXI.Renderer) { if (this.sprite) { this.sprite.render(renderer); return true; } return false; ...
/** * Perun RPC API * Perun Remote Procedure Calls Application Programming Interface * * The version of the OpenAPI document: 0.0.0 * Contact: perun@cesnet.cz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class m...
import TickerModel, {Ticker} from "../models/Ticker"; import {fetchTickerDetailsForSymbol, ITickerDetailsResponse} from "../services/API/Polygon"; const cliProgress = require('cli-progress'); function composeTickerDetails(detailsResponse: ITickerDetailsResponse, ticker: Ticker) { return { exchange: ticke...
/** * @file IconWallet 钱包 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import React from 'react'; import {ISvgIconProps, IconWrapper} from '../runtime'; export default IconWrapper( 'IconWallet', true, (props: ISvgIconProps) => ( <svg...
export * from './app/CubaAppProvider'; export * from './app/MainStore'; export * from './app/MenuConfig'; export * from './data/DataContext'; export * from './data/Collection'; export * from './data/Instance'; export * from './util/collation'; export * from './util/metadata'; export * from './util/data'; export * fro...
import React, { useEffect, useState } from 'react'; import { w3cwebsocket as W3CWebSocket } from "websocket"; import { Group } from '@visx/group'; import genBins, { Bin, Bins } from '@visx/mock-data/lib/generators/genBins'; import { scaleLinear } from '@visx/scale'; import { HeatmapCircle, HeatmapRect } from '@visx/hea...
import { Chart } from '../../src'; import { createDiv } from '../util/dom'; describe('#2215', () => { const data = [ { year: '1991', value: 3 }, { year: '1992', value: 4 }, ]; const chart = new Chart({ container: createDiv(), width: 400, height: 10, }); chart.data(data); chart.point()....
import { Component } from '@angular/core'; @Component({ selector: 'nz-demo-layout-responsive', template: ` <nz-layout> <nz-sider nzCollapsible [(nzCollapsed)]="isCollapsed" [nzCollapsedWidth]="0" [nzBreakpoint]="'lg'"> <div class="logo"> </div> <ul nz-menu [nzTheme]="'dark'" [nzMo...
import { Cart } from './cart'; describe('Cart', () => { it('should create an instance', () => { expect(new Cart()).toBeTruthy(); }); });
import { AstMethodDeclaration } from './ast-method-declaration'; import { AstValue } from './ast-value'; import { AstBlock } from './ast-block'; import { CallExpression, SyntaxKind } from 'typescript'; import { AstVariableDeclaration } from './ast-variable-declaration'; import { AstError, getName, getValueFromExpressio...
export declare type TweenFunc = (time: number, startValues: number, changeValues: number, duration: number) => number;
import { Field, InputType } from '@nestjs/graphql'; @InputType() export class CreatePodcastDto { @Field(() => String) readonly title: string; @Field(() => String) readonly category: string; }
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {TSModuleBlock, tsModuleBlock, AnyNode} from '@romejs/js-ast'; import {Generator} from '@romejs/js-generator'; export defa...
import { pipe } from '../src/ts-functional-pipe' test('pipe test', () => { const p = pipe( (n: number) => n + 100, (x) => x * 2, (x) => `${x} monkeys` ) expect(p(1)).toBe('202 monkeys') })
import { Fragment } from 'react'; import { withRouter } from 'react-router-dom'; import { getRouteConfigByPath } from '@config'; import { useAnalytics } from '@services/Analytics'; import { useEffectOnce } from '@vendor'; // Assumes route param is always the last part of the route const stripRouteParam = (path: stri...
/** * This file auto-generated with the `scripts/bootstrap-icons.js` script. */ import { Icon } from '../components/svg-icon'; // https://github.com/twbs/icons/blob/main/icons/inbox.svg export const inbox: Icon = { name: 'inbox', width: 16, height: 16, viewBox: '0 0 16 16', children: ( <path d="M4.98 4...
import { writeFileSync, readFileSync, existsSync, copyFileSync } from 'fs'; import { parse, encode } from 'ini'; import { ParsedConfig, CachedCredential, Profile } from './types'; import { exec } from 'child_process'; import { promisify } from 'util'; import { ExpiredCredsError, AwsSdkError } from './errors'; import { ...
import { Injectable } from '@nestjs/common'; import { CreateAccountDto } from './dto/create-account.dto'; import { UpdateAccountDto } from './dto/update-account.dto'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { Account } from './entities/account.entity'; @Injectab...
import {VerticalMenu} from "./VerticalMenu"; export default VerticalMenu;
import { Test, TestingModule } from '@nestjs/testing'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import * as request from 'supertest'; import { AppModule } from './../src/app.module'; import { copyFileSync } from 'fs'; describe('AppController (e2e)', () => { let app: INestApplication; bef...
import styles from "../styles/Greeting.module.css"; export type Props = { name: string; }; export default function Greeting(props: Props) { return ( <p className={styles.hello}> Hallo, <span className={styles.name}>{props.name}</span> </p> ); }