text
stringlengths
10
953k
import { BaseFileSchema } from '..'; import { ImageMeta } from '../common/image-meta'; import { FileTypeEnum } from '../enums/file-type.enum'; export type ImageFileSchema = BaseFileSchema<FileTypeEnum.Image, ImageMeta>;
export interface IContactProperties { /** A globally unique identifier. */ id?: string; /** The name of this Contact, suitable for display to end users. */ displayName?: string; /** An object containing all components of a persons name. */ name?: ContactName; /** A casual name by which to ad...
import { Validation } from './ParamValidators' import IValidator = Validation.IValidator import AbstractValidator = Validation.AbstractValidator /** * */ export namespace Param { /** * */ export class Optional { /** * */ static valueOf(): boolean { return false } } /** * */ export class...
import { Estimate } from "../../model"; type EstimateSeparator = ',' | ' '; function splitToTokens(estimateString: string, separator: EstimateSeparator): string[] | undefined { const commaSeparatedTokens = estimateString.split(separator).map(s => s.trim()); if (commaSeparatedTokens.length === 3) { ret...
export default { xpLimitPerLevel: 25, xpGainRatePerLevel: 0.15, xpCooldownInterval: 120000, };
export class Movie { id: string; title: string; duration: number; posterFilename: string; trailerUrl: string; description: string; }
import * as React from "react"; import { CarbonIconProps } from "../../"; declare const OpenPanelFilledRight16: React.ForwardRefExoticComponent< CarbonIconProps & React.RefAttributes<SVGSVGElement> >; export default OpenPanelFilledRight16;
export * from 'office-ui-fabric-react/lib/Styling'; export * from './ThemeProvider';
// Basic types: https://www.typescriptlang.org/docs/handbook/basic-types.html enum Color{ Red = 1, Green = 2 } let bool: boolean; let num: number; let str: string; let array: number[]; let genericArray: Array<number>; let tuple: [string, number]; let color: Color; let unk: unknown; let whatever: any; let voidy: v...
/** * Zilliqa Network * * Zilliqa Network enums * */ export enum ZilliqaNet { MAIN, TEST, } /** * Zilliqa address and mnemonic words * */ export interface IAddressWithMnemonic { address: string; mnemonic: string; } /** * Balance and current nonce for a zilliqa address * */ export interface IZilliqa...
import { useRouter } from "next/router"; import { parseCookies } from "nookies"; import { useState, useEffect, FC } from "react"; import Head from "next/head"; import { GetServerSideProps } from "next"; import Link from "next/link"; import AlertMessage from "../../../dashboard/components/AlertMessage"; import { openMod...
export * from './author.component';
/** * @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 {ChangeDetectorRef} from '@angular/core/src/change_detection/change_detector_ref'; import {ElementRef} from '...
// The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `ng build --env=prod` then `environment.prod.ts` will be used instead. // The list of which env maps to which file can be found in `.angul...
export * from './lib/modem';
import { Route } from '@angular/router'; import { SignupComponent } from './index'; export const SignupRoutes: Route[] = [ { path: 'signup', component: SignupComponent } ];
import { Component, OnInit, Input } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { BlogService } from 'src/app/_services/blog.service'; import { Blog } from 'src/app/_models/blog'; import { AuthenticationService } from 'src/app/_services/authentication.service'; import { User } from 's...
export * from './conversation'; export * from './message'; export * from './user';
import { Change, UserMap } from '../../cli/backend/models' export const extractUsers = (changes: Change[]): UserMap => { const users: UserMap = {} changes.forEach(change => { users[change.owner.username] = change.owner }) return users }
import { UserProfile } from '../models/UserProfile'; export declare class UserProfileEventSubscriber { onUserProfileCreate(profile: UserProfile): void; }
import { TestBed } from '@angular/core/testing'; import { Store, StoreModule } from '@ngrx/store'; import { WatchlistStateService } from './watchlist-state.service'; import { WatchlistActions } from './watchlist-actions'; import { watchlistReducer } from './watchlist-reducer'; import { StockDataInterface } from './watc...
export declare class CreateProductCategoryInput { category_name: string; category_description: string; parentId?: number; flag_product_id?: number; picture_url?: string; isActive?: boolean; }
import { Document, Node as DomNode, Range, Window } from '@ephox/dom-globals'; import { Option } from '@ephox/katamari'; import Element from '../../api/node/Element'; import * as Traverse from '../../api/search/Traverse'; import { SimRange } from '../../api/selection/SimRange'; import * as ContainerPoint from './Contai...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ButtonAComponent } from './button-a/button-a.component'; import { ButtonBComponent } from './button-b/button-b.component'; import { FormsModule } from '@angular/forms'; @NgModule({ /* angular stuff */ /* 3rd party co...
import { Result, Success } from "./genericcombinatorialparser"; import { Barrating, BooleanEntry, Checkboxes, CKEditor, Datepicker, Dropdown, Email, EmotionsRatings, File, Html, ImagePicker, IPaddress, matcher, Multipletext, Nouislider, PageSeparator, ...
// Copyright 2020 UBIO Limited // // 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...
import React, { useCallback } from 'react'; import { ViewportProps } from 'react-map-gl'; import cx from 'classnames'; import Icon from 'components/icon'; import ZOOM_IN_SVG from 'svgs/map/zoom-in.svg?sprite'; import ZOOM_OUT_SVG from 'svgs/map/zoom-out.svg?sprite'; export interface ZoomControlProps { viewport: ...
import { Component } from '@angular/core'; import { ServiceModel } from "../../models/service"; import { IonicPage, ViewController, NavParams, ToastController } from 'ionic-angular'; import { OneClickProvider } from '../../providers/one-click/one-click'; import { FormBuilder, FormGroup, } from '@angular/forms'; import ...
import { Request, getQueryParams, getProtocol, getRangeFromHeader, checkIfXMLHttpRequest, getHostname, getRequestHeader, setRequestHeader, getFreshOrStale, getAccepts, } from './request' import { Response, send, json, status, setCookie, clearCookie, setHeader, getResponseHeader, se...
import React from 'react'; import { ComponentStory } from '@storybook/react'; import Toast, { Variant } from '.'; export default { title: 'Packages/Toast', component: Toast, args: { title: 'Velit ea exercitation qui aute dolor proident.', body: 'Exercitation incididunt ea proident velit mollit', open...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import Editor from 'tinymce/core/api/Editor'; const getAutoResizeMin...
export { default as TwoTonePages } from './Icon';
import { SSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SSMClient"; import { DeregisterManagedInstanceRequest, DeregisterManagedInstanceResult } from "../models/models_0"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { Handler, MiddlewareStack, HttpHandlerOptions as __...
import { darken, desaturate, lighten, mix } from 'polished'; import * as React from 'react'; import styled from '@emotion/styled'; import { css } from '@emotion/core'; import { colors } from '../../styles/colors'; import config from '../../website-config'; const SubscribeFormStyles = css` @media (max-width: 500px) ...
/* * 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 React, { useCallback, useReducer, useState } from 'react'; import { For...
import { ReadStream } from './stream'; import { ATV, Publications, VTB } from './entities'; export enum Opcode { OP_CHECKATV = 0xba, OP_CHECKVTB = 0xbb, OP_CHECKPOP = 0xbc, OP_PUSHDATA4 = 0x4e, OP_PUSHDATA2 = 0x4d, OP_PUSHDATA1 = 0x4c, } interface GetOpRet { opcode: Opcode | null; pushed?: Buffer; } ...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ReactiveComponentModule } from '@ngrx/component'; import { MaterialModule } from '@svv/cms/material'; import { SharedModule } from '@svv/cms/shared'; import { DashboardComponent } from './containers'; import { QuickLinkCa...
import { Component, Prop } from '@stencil/core'; @Component({ tag: 'extended-input', styleUrl: 'extended-input.css', shadow: true }) export class ExtendedInput { /** * The first name */ @Prop() type: string; private getType(): string { if( ['text', 'number'].includes(this.type)) { return t...
import * as sd from "schema-decorator"; import * as o from "../../../../../dist/src/main"; const table = o.table( "table", { x : sd.naturalNumber(), y : sd.string(), z : sd.boolean(), } ); const joined1 = o.table( "joined1", { a : sd.date(), x : sd.number(), ...
import * as React from "react"; import { JSX } from "react-jsx"; import { IFluentIconsProps } from '../IFluentIconsProps.types'; const ResizeTable24Filled = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => { const { primaryFill, className } = iconProps; return <svg...
import Drawable from "../interfaces/drawable"; import StageElement from "./stage-element"; export default class Stage extends Drawable { constructor(canvas: HTMLCanvasElement, public elements: StageElement[]) { super(canvas); } draw(){ this.elements.forEach(elem =>{ elem.dr...
import { CommandStore, KlasaMessage } from 'klasa'; import { SkyraCommand } from '../../lib/structures/SkyraCommand'; export default class extends SkyraCommand { public constructor(store: CommandStore, file: string[], directory: string) { super(store, file, directory, { bucket: 2, cooldown: 60, descriptio...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Zayedcoin</source> <translation>Acerca de Zayedcoin</translation> ...
'use strict' import { assembleClassName, assembleKeyframe, createCache, isEmptyObj } from '../helper' import safeIsObj from 'safe-is-obj' import { Renderer, ClassName } from '../type' const defaultConfig = { prefixes: ['-webkit-', '-moz-', '-o-', ''] } const addOn = function(renderer: Renderer, config = def...
import { combineReducers, createStore } from "redux"; import { RxStore } from "./store"; import { Actions } from "../effects/actions"; import { Dispatcher } from "./dispatcher"; import { ReducerMap, RxStoreStruct } from "../model"; export class RxStoreCreator { public static create<T>(reducers: ReducerMap<T>): Rx...
/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "@stencil/core/internal"; export namespace Components { interface MyApp { ...
import React from 'react'; import { formatContestUrl } from '../utils/Url'; import { ContestId } from '../interfaces/Contest'; import { NewTabLink } from './NewTabLink'; interface Props { contestId: ContestId; contestName: string; rawContestName?: string; } export const ContestLink: React.FC<Props> = (props) =>...
import SourceMap = require('source-map'); function testSourceMapConsumer() { function testConstructor() { var scm: SourceMap.SourceMapConsumer; // create with full RawSourceMap scm = new SourceMap.SourceMapConsumer({ version: 'foo', sources: ['foo', 'bar'], ...
import * as React from 'react'; import { StyledIconProps } from '../../StyledIconBase'; export declare const IndustryDimensions: { height: undefined; width: undefined; };
import ChunkGroup from 'webpack/lib/ChunkGroup'; import GraphHelpers from 'webpack/lib/GraphHelpers'; import webpack, { Plugin } from 'webpack'; import { ConfigDependency, ConfigDependencyFactory, ConfigModule, } from './ConfigModule'; import { ConfigQueryModule } from './ConfigQueryModule'; import type { Options } ...
import { Assertions } from '@ephox/agar'; import { describe, it } from '@ephox/bedrock-client'; import { Fun, Optional } from '@ephox/katamari'; import { Hierarchy, Remove, SimRange, SimSelection, SugarElement, Traverse, WindowSelection } from '@ephox/sugar'; import { assert } from 'chai'; import * as SelectionBookmar...
const programLightSensor: IProgram = { name: "light sensor", run: () => { let mode = Light.Dark; const detectFunc = () => { // don't do it if the robot is not moving if (ROBOT.motor.isReady()) return; ROBOT.motor.stop(); moveForward(-10); ...
import React from 'react' import { render, cleanup } from '@testing-library/react' import 'jest-styled-components' import { FileDropdown } from '.' import MockTheme from '../../../misc/mockTheme' afterEach(cleanup) test('it renders', () => { const dropdown = render( <MockTheme> <FileDropdown id=...
/** * Copyright (c) 2021 OpenLens Authors * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, p...
import {Controller, Get, Param} from '@nestjs/common'; import {DataService} from "./data.service"; @Controller('data') export class DataController { constructor(private dataService: DataService){} @Get('hour/:start/:end') async getHourDataInRange(@Param('start') start: number, @Param('end') end: number){ ...
import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [ AppComponent ], }).compileComponents(); }); it('should create the app', ()...
import fs from 'fs'; import path from 'path'; import { ISession } from '../../session/types'; import { writeFileToFolder } from '../../utils'; export interface Options { path?: string; filename?: string; title: string; author: string; url: string; references?: string; logo?: string; latexTargetName?: s...
import { PureComponent } from 'react' import { connect, ConnectedProps } from 'react-redux' import dictionary from './dictionary' import { Lang } from '../../reducers/uiReducer' interface PropsType { children: string } class Translate extends PureComponent<PropsType & PropsFromRedux> { translateWord(lang: Lang, ...
export { default } from './ChatBox'
// import { Conf } from './utils/interfaces'; import { randomInt, randomFloat, hexToRgb } from './utils/utils'; import { Shape, XY, RGB, HSL } from './utils/interfaces'; import { Particles } from './particles'; export class Particle { // public particles : Particles; public color : {value : string, rgb: RGB, hsl:...
import type Model from '@/components/base/Form/model' import type { Common, FormType, Global } from '@/types' export interface IPropsPureForm { parent: Model['parent'] namespace: Model['namespace']['value'] primary: Model['setting']['primary'] id: Model['id'] type: Model['type'] data: Model['data'] sections: Mo...
import * as d from '../../../declarations'; import { mockElement, mockHtml } from '../../../testing/mocks'; import { TestingCompiler } from '../../../testing/testing-compiler'; import { TestingConfig } from '../../../testing/testing-config'; import * as path from 'path'; describe('stats and docs', () => { const roo...
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient"; import { DisassociateMembersRequest, DisassociateMembersResponse } from "../models/models_0"; import { deserializeAws_restJson1DisassociateMembersCommand, serializeAws_restJson1DisassociateMembersCommand, ...
import { BaseEntity, BeforeInsert, Column, Entity, PrimaryGeneratedColumn, } from "typeorm"; import * as bcrypt from "bcryptjs"; @Entity() export class User extends BaseEntity { @PrimaryGeneratedColumn("uuid") id: string; @Column("varchar", { length: 255, nullable: false }) email: string; @Column...
import { TestBed } from '@angular/core/testing'; import { BaseRestService } from './base-rest.service'; describe('BaseRestService', () => { beforeEach(() => TestBed.configureTestingModule({})); it('should be created', () => { const service: BaseRestService = TestBed.get(BaseRestService); expect(service)....
/*! * Bravo for Power BI * Copyright (c) SQLBI corp. - All rights reserved. * https://www.sqlbi.com */ import { Locale } from '../i18n'; import { strings as _ } from '../strings'; const locale: Locale = { locale: "pt", // DO NOT TRANSLATE enName: "Portuguese", // DO NOT TRANSLATE name: "Português", ...
// Libraries import React, { PureComponent } from 'react'; import { connect } from 'react-redux'; import { hot } from 'react-hot-loader'; // Components import Page from 'app/core/components/Page/Page'; import OrgActionBar from 'app/core/components/OrgActionBar/OrgActionBar'; import EmptyListCTA from 'app/core/component...
import { Controller, Get, Render } from '@nestjs/common'; import { AppService } from './app.service'; @Controller() export class AppController { constructor(private readonly appService: AppService) { } @Get() @Render('index') root() { } }
/* eslint-disable max-len */ /* eslint-disable @typescript-eslint/no-explicit-any */ import { copyObjectExcludingFields } from '../../../testHelpers'; import { TestType } from '../testType'; const validTestObject: TestType = { field1: { x: 100, y: 200 }, field2: 'field2Value', field3: 80, field4: 100, field5...
// fontawesome/svgs/solid/colon-sign.svg import { createSvgIcon } from './createSvgIcon'; export const SvgColonSign = createSvgIcon( `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"> <!--! Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/fr...
import { AzureKeyProvider } from '../../src/key-management/azure-key-provider' const mockKey = '030303030303030303030303030303030303030303030303030303030303030303030303' jest.mock('../../src/config', () => ({ keystore: { azure: { clientID: 'mockClientID', clientSecret: 'mockClientSecret', tena...
type Particle = { position: Vector2; velocity: Vector2; readonly age: number; readonly ticks: number; maxAge: number; isDead: boolean; element: Instance; }; interface ParticleConstructor { new (particleElement: Instance): Particle; } declare const Particle: ParticleConstructor; export = Particle;
import { Task } from '../../dependency-queue' import getTransformModules from '../../getTransformModules' import { Module } from '../../modules' import promptSourceModule from '../prompts/promptSourceModule' import promptTargetModules from '../prompts/promptTargetModules' import packageJsonTask, { PackageJsonEditor } f...
/** * Copyright 2020 Goldman Sachs * * 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...
import { Route } from '@angular/router'; import { LayoutComponent } from 'app/layout/layout.component'; import { EmptyLayoutComponent } from 'app/layout/layouts/empty/empty.component'; // @formatter:off // tslint:disable:max-line-length export const appRoutes: Route[] = [ // Redirect empty path to '/example' ...
import { Component, OnInit, ViewChild } from '@angular/core'; import { PeticionesAPIService, SesionService } from '../servicios/index'; import { CalculosService, ComServerService } from '../servicios'; import { NavController, AlertController, PickerController } from '@ionic/angular'; import { CuestionarioSatisfaccion,...
import type { IFunction, IFunctionResult } from '../../../types'; import { getAllOperations } from './utils/getAllOperations'; import { isObject } from './utils/isObject'; export const oasOpIdUnique: IFunction = targetVal => { if (!isObject(targetVal) || !isObject(targetVal.paths)) return; const results: IFunctio...
// eslint-disable-next-line @typescript-eslint/triple-slash-reference /// <reference path="../matchers.d.ts" /> import sinon from 'sinon'; import chai from 'chai'; import chaiDom from 'chai-dom'; import isPresent from './is-present'; import chaiAsPromised from 'chai-as-promised'; import chaiStyle from 'chai-style'; im...
// This is a generated file from running the "createIcons" script. This file should not be updated manually. import React, { forwardRef } from "react"; import { SVGIcon, SVGIconProps } from "@react-md/icon"; export default forwardRef<SVGSVGElement, SVGIconProps>( function SettingsInputComponentSVGIcon(props, ref) {...
import app from './app'; import debugModule = require('debug'); import http = require('http'); const debug = debugModule('node-express-typescript:server'); // Get port from environment and store in Express. const port = normalizePort(process.env.PORT || '8080'); app.set('port', port); // create server and listen on ...
import { createRedisCacheClient } from 'near-cache-adapter-redis-3'; import * as NearCache from '../NearCache'; import { Customer } from './Customer'; import { CustomerRepository } from './CustomerRepository'; import { CustomerService } from './CustomerService'; import { CustomerNearService } from './CustomerNearServic...
// smithy-typescript generated code import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerEx...
/// <reference path="common.d.ts" /> import common from "./Common"; import userControl from "./UserControl"; /** * 文章 */ let app: IAnyPropObject = {}; app.ArticleList = { Init: function () { var _this = this; $("#btnUpdate").on("click", function () { return _this.Update(); });...
/** * 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 {test} from 'rome'; import {testLint} from '../../api/lint.test'; test('disallow unnecessary boolean casts', async (t) => ...
'use strict'; import localVarRequest = require("request"); import http = require("http"); import Promise = require("bluebird"); import { Authentication } from '../auth/Authentication'; import { VoidAuth } from '../auth/VoidAuth'; import { ObjectSerializer } from '../serializers/ObjectSerializer'; import { ClientErro...
import path from "path"; import Config from "conf"; import { Options as ConfOptions } from "conf/dist/source/types"; import { app, ipcMain, IpcMainEvent, ipcRenderer, IpcRendererEvent, remote } from "electron"; import { IReactionOptions, observable, reaction, runInAction, when } from "mobx"; import Singleton from "./ut...
import { decodeHTML5 } from 'entities'; import HTMLElement from './html'; import Node from './node'; import NodeType from './type'; /** * TextNode to contain a text element in DOM tree. * @param {string} value [description] */ export default class TextNode extends Node { public constructor(rawText: string, parentN...
import { isFunction } from './util/isFunction'; import { empty as emptyObserver } from './Observer'; import { Observer, PartialObserver } from './types'; import { Subscription } from './Subscription'; import { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber'; import { config } from './config'...
import { Effect } from '@/models/connect'; import { Reducer } from 'react'; import apis from '@/services'; export interface RoleModelState { result: any; } export interface RoleModelType { namespace: string; state: RoleModelState; effects: { query: Effect; queryById: Effect; insert: Effect; re...
import { Coordinates } from '../../src' import { LocalizedString } from '../types' import { BigNumber } from 'bignumber.js' export type Maybe<T> = T | null export type InputMaybe<T> = Maybe<T> export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] } export type MakeOptional<T, K extends keyof...
import {ADTBase} from '../base/base'; import {ADTQueryFilter} from '../query/query-filter'; import {ADTQueryOptions} from '../query/query-options'; import {ADTQueryResult} from '../query/query-result'; import {ADTQueueCallable} from '../callable'; import {ADTQueueCallableSync} from '../callable-sync'; import {ADTQueueO...
import {Entity} from "./Entity"; import {LifecycleObject} from "./LifecycleObject"; import {Scene} from "./Scene"; import * as PIXI from "pixi.js" /** * Component base class. */ export abstract class Component extends LifecycleObject { parent!: Entity; /** * Get the entity that owns this component. ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import check from './support/check'; import validate from './support/validate'; describe('slice', () => { it('changes exclusive slices with any range values into a call to `.slice` directly', () => { check(`a[0...1]`, `a.slice(0, 1);`); check(`a[b...c]`, `a.slice(b, c);`); }); it('changes slices with no...
/** * @license * * Copyright IBM Corp. 2020, 2022 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { classMap } from 'lit-html/directives/class-map'; import { html, property, state, query, customElement } from 'lit-ele...
import { jobLogic, runJobLogic } from "JobLogic/JobLogic"; import profiler from "screeps-profiler"; import { getStructureInPosFromPlan, runArchitect } from "./RoomArchitect"; export const visualizeRoom = profiler.registerFN((room: Room) => { const grid = room.memory.visual.roomGrid; if (!grid) { return...
import MembersRole from '../shared/consts/membersRole'; export default class GuildMember { public id: string; public role: MembersRole; public constructor(guildMember: GuildMember) { Object.assign(this, guildMember); } }
import { CoolerArticleResource, PaginatedArticleResource, InvalidIfStaleArticleResource, noEntitiesShape, } from '__tests__/common'; import React, { useEffect } from 'react'; // relative imports to avoid circular dependency in tsconfig references import { makeRenderRestHook, makeCacheProvider } from '../../../...
import fs from "fs"; import path from "path"; import glob from "fast-glob"; import webpack from "webpack"; import { ComponentSpec } from "./types"; interface GetOverviewSpecsOptions { /** The directory all of your components live in */ componentDirectory: string; } /** Gather all of the design specs */ export co...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { EventEmitter } from "events"; import { IDisposable, IEvent, IEventProvider, ITelemetryLogger } from "@fluidframework/common-definitions"; import { Deferred, PromiseTimer, Timer, IPromiseTime...