text
stringlengths
10
953k
import * as Handlebars from 'handlebars'; import { registerHandlebarHelpers } from './registerHandlebarHelpers'; describe('registerHandlebarHelpers', () => { it('should register the helpers', () => { registerHandlebarHelpers(); const helpers = Object.keys(Handlebars.helpers); expect(helper...
// Copyright 2018 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
/** ******************************************************************************************************************* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the Lice...
import S from 'jsonschema-definer' import { g } from '../shared' import { sql } from './util' export const sDbUserMeta = S.shape({ forvo: S.string(), level: S.integer().minimum(1).maximum(60), levelMin: S.integer().minimum(1).maximum(60), settings: S.shape({ level: S.shape({ whatToShow: S.list(S.str...
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import * as AWSMock from 'aws-sdk-mock'; import AWS from 'aws-sdk'; import { BulkExportStateMachineGlobalParameters } from './types'; import { stopExportJobHandler } from './stopExportJob'; AWSMock.set...
export default { name: "test", priority: 10, pattern: "/test", func: async ({ link, state }) => { Object.assign(state.source.data[link], { isTest: true }); }, };
import { ITheme } from "../../Interfaces/Theme/ITheme"; import { RecursivePartial } from "../../../Types"; import { IOptionLoader } from "../../Interfaces/IOptionLoader"; import { IOptions } from "../../Interfaces/IOptions"; import { ThemeDefault } from "./ThemeDefault"; export declare class Theme implements ITheme, IO...
export * from './account'; export * from './events'; export * from './invoices'; export * from './payments'; export * from './users'; export * from './oauth'; export * from './promos'; export * from './types';
import obj from 'object-path'; type Path = string | Array<string | number> | undefined; function num(input: unknown, path: Path = undefined, _default = 0): number { if (path) { input = obj.get(input as Record<string, unknown>, path); } if (typeof input !== 'string' && typeof input !== 'number' && typeof in...
<TS language="pt_BR" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Clique com botão direito para alterar endereço ou rótulo</translation> </message> <message> <source>Create a new address</source...
import { OnDestroy } from '@angular/core'; import { ResponsiveNavigationService } from './providers/responsive-navigation.service'; import { ResponsiveNavCodes } from './responsive-nav-codes'; import { ClrCommonStringsService } from '../../utils/i18n/common-strings.service'; export declare class ClrHeader implements On...
import { SnapshotNotFoundFault } from "./SnapshotNotFoundFault"; import { InvalidSnapshotStateFault } from "./InvalidSnapshotStateFault"; import { InvalidParameterValueException } from "./InvalidParameterValueException"; import { InvalidParameterCombinationException } from "./InvalidParameterCombinationException"; expo...
/** * * * OpenAPI spec version: 20160918 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as sho...
const index = '/contacts'; export default { index, };
import { Settings } from '@neo-one/node-core'; import { createTest } from './createTest'; // tslint:disable-next-line no-let let testCache: Settings | undefined; export const test = () => { if (testCache !== undefined) { return testCache; } const testSettings = createTest(); testCache = testSettings; r...
/** * React Native App * Everything starts from the entrypoint */ import React from 'react'; import { ActivityIndicator } from 'react-native'; import { Provider, useSelector } from 'react-redux'; import { PersistGate } from 'redux-persist/es/integration/react'; import { DarkTheme as PaperDarkTheme, DefaultTheme ...
import { CompleteStatus } from '@/backend/interface'; import { DocumentService, CreateDocumentRequest } from '../../index'; export default class GithubDocumentService implements DocumentService { getId = () => { return 'bear'; }; getUserInfo = async () => { return { name: 'BEAR', avatar: '',...
/* eslint-disable @typescript-eslint/no-unused-vars */ /* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 *...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ConnectRoutingModule } from './connect-routing.module'; import { ConnectComponent } from './connect.component'; import { HomeComponent } from './home/home.component'; @NgModule({ declarations: [ ConnectComponent, ...
import fs from 'fs'; import path from 'path'; import { version } from '../../src'; import { Artifact } from '../../src/artifact/Artifact'; interface Fixture { fn: string, artifact: Artifact, } export const fixtures: Fixture[] = [ { fn: 'p2pkh.cash', artifact: { contractName: 'P2PKH', constru...
import { Sha256 } from "@aws-crypto/sha256-js"; import { parseUrl } from "@aws-sdk/url-parser-native"; import { ClientDefaults } from "./SupportClient"; import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"; /** * @internal */ export const ClientDefaultValues: Required<ClientDefaults> = { ...
import * as d3 from 'd3' import { Event } from 'api/events.type' import _debounce from 'lodash.debounce' import day, { format } from 'lib/dayjs' import wrapText from './wrapText' const margin = { top: 15, right: 15, bottom: 30, left: 15, } export default function gen({ root, events, onSelectEvent, }: {...
/* Copyright (C) 2017 Red Hat, 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 agreed to in writing, so...
import React, { useState } from 'react'; import { api } from '../../services/api'; import { Alert, Keyboard, TextInput, View } from 'react-native'; import { COLORS } from '../../theme'; import { Button } from '../Button'; import { styles } from './styles'; export function SendMessageForm(){ const [message, setMess...
/** @jsx jsx */ import React from "react"; import { css, jsx } from "@emotion/core"; import { BRAND, SHADES } from "../../ui/variables"; import Panel from "react-bootstrap/lib/Panel"; import Header3 from "../../ui/headers/Header3"; import CaratIcon, { Direction } from "../../ui/icons/small/CaratIcon"; import Caption fr...
import { environment } from './../../../environments/environment.prod'; import { ActivatedRoute, Router } from '@angular/router'; import { User } from './../../model/User'; import { Component, OnInit } from '@angular/core'; import { PostagemService } from 'src/app/service/postagem.service'; import { AuthService } from ...
module TcHmi { export module Functions { export module System { export function GoToLoginPage(): boolean { let conf = TcHmi.Server.getCurrentUserConfig(); if (conf.state !== TcHmi.Server.userConfigState.usergroup) { return false; ...
export interface IGetMySteamIdParameters { SECRET_KEY: string }
import { PipeTransform } from '@angular/core'; import * as ɵngcc0 from '@angular/core'; export declare class SqrtPipe implements PipeTransform { transform(input: any): any; static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<SqrtPipe, never>; static ɵpipe: ɵngcc0.ɵɵPipeDeclaration<SqrtPipe, "sqrt">; } export declare c...
export { ErrorHandlingModule } from './error-handling.module'; export { SanitizedError } from './sanitized-error'; export { ErrorPolicyService } from './error-policy.service'; export { ErrorMessageTranslationService } from './error-message-translation.service'; export { ErrorHandlerOptions } from './operators';
/** * Created by Trlanfeng on 2014/8/27. */ class GameUI extends egret.DisplayObjectContainer { //private GameApp:GameApp = new GameApp(); public constructor() { super(); this.addEventListener(egret.Event.ADDED_TO_STAGE,this.initUI,this); } //开始按钮 public button_start:egret.Bitmap; ...
import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { NgxChartsModule } from '@swimlane/ngx-charts'; import { routes } from './pie-charts.routes'; import { PieChartsComponent } fro...
/* eslint-disable no-dupe-class-members */ import { Cache } from '@klasa/cache'; import { Routes, RequestOptions } from '@klasa/rest'; import { Embed } from './Embed'; import { isSet } from '../../util/Util'; import { MessageAttachment } from './messages/MessageAttachment'; import { MessageFlags } from '../../util/bitf...
import { APIErrorType as Err } from 'shared/types/APIErrorBody' export const ErrorMessages = new Map<Err, string>([ [Err.JOB_PARSE_ERROR, 'Error while job parsing'], [Err.JOB_RUN_ERROR, 'Error while job deployment'], ]) export default ErrorMessages
import Solver from '../../solver'; import LanternfishSolver from './solver'; describe('day 6', () => { let lanternfish_solver: Solver<number[]>; beforeEach(() => { const raw_input = '3,4,3,1,2'; lanternfish_solver = new LanternfishSolver(raw_input); }); describe('part one', () => { describe('day-by...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.less'] }) export class AppComponent { title = 'web-ui'; }
import List from './List'; export * from './List'; export * from './ListItem'; export default List;
import { useState, useEffect, Dispatch } from 'react' import { ICarouselHook, ICarouselHookOptions } from './d' import { useControls } from './hooks/use-controls' import { useFeatures } from './hooks/use-features' export function useCarousel<T>( content: T[], options: ICarouselHookOptions ): ICarouselHook { cons...
import { Application } from 'probot' // eslint-disable-line no-unused-vars let labels = [ { name: "Priority: Low", color: "DAF7A6", description: "A Issue With Low Priority" }, { name: "Priority: Medium", color: "FFC300", description: "A Issue With Medium Priority" }, { name: "Priority: High", color: "FF5733", d...
/* * ____ _ __ __ _ * | _ \ __ _ _ __| | __ | \/ | ___ __| | ___ * | | | |/ _` | '__| |/ / | |\/| |/ _ \ / _` |/ _ \ * | |_| | (_| | | | < | | | | (_) | (_| | __/ * |____/ \__,_|_| |_|\_\ |_| |_|\___/ \__,_|\___| * * Copyright (c) 2015-present, Andrew Simms * Author: A...
export class Cliente { cnpj: string; cpf: string; data_nascimento: string; email: string; id: number; nome: string; razao_social: string; resource_uri: string; sexo: string; telefone_celular: string; telefone_principal: string; constructor (){ this.nome = ""; ...
import { SecureStoragePlugin } from "capacitor-secure-storage-plugin"; import { StoreEntity } from "./"; export const Store: StoreEntity = { async get(key) { try { const { value } = await SecureStoragePlugin.get({ key, }); return JSON.parse(value); ...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import fetch from 'node-fetch'; // @ts-ignore polyfilling fetch global.fetch = fetch; const USAGE = `node sync-status <green | blue>`; const nodes: { [node: string]: string } = { 'sokol-green': 'https://graph-staging-green.stack.cards/subgraphs/name/habdelra/cardpay-sokol', 'sokol-blue': 'https://graph-staging-bl...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import * as React from 'react'; import Box from '@mui/material/Box'; import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon'; function HomeIcon(props: SvgIconProps) { return ( <SvgIcon {...props}> <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" /> </SvgIcon> ); } export default function SvgIcons...
import React from 'react'; import Card from '@mui/material/Card'; import CardContent from '@mui/material/CardContent'; import Collapse from '@mui/material/Collapse'; export interface IThreadItemProps { threadDumpInfo: any; } export interface IThreadItemState { collapse: boolean; } export class ThreadItem extends...
import React from "react"; import { Table } from "antd"; import { ColumnProps } from "antd/es/table"; import { useLocation } from "react-router"; import { useUpdateUrlSortParamOnTableChange } from "hooks"; import { queryString } from "utils"; const { parseQueryString } = queryString; export const TestComponent = () =>...
import React from 'react'; import { shallowEqual, useSelector } from 'react-redux' import { DonutChart, IDonutChartProps } from '@fluentui/react-charting'; import { IControlProps } from './Control.types' import { getThemeColor, defaultPixels } from './Utils' import { useTheme, mergeStyles } from '@fluentui/react'; exp...
import path from 'path'; import execa from 'execa'; import { buildAndroid, buildHandler, buildIOS } from './build'; import { CliBuildOptions, Config } from './types'; import { Logger } from '../logger'; import * as configHelpers from './config'; describe('build.ts', () => { const logger = new Logger(); const exec...
import React from "react"; import ReactDOM from "react-dom"; import { App } from "./App"; describe("app", () => { it("should render without crashing", () => { expect.assertions(0); // Set location to "/wallet" (avoid warnings) Object.defineProperty(window, "location", { value: { pathname: "...
import humanize from 'humanize-duration'; import { Box } from 'ink'; import React = require('react'); interface FooterProps { executionTime: number; } export function Footer({ executionTime }: FooterProps): JSX.Element { return ( <Box marginTop={1}> <Box marginRight={2}>✨</Box> <Box>Done in {human...
import React from 'react' function SvgLinkOff(props: React.SVGProps<SVGSVGElement>) { return ( <svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path fill="currentColor" fillRule="evenodd" ...
import { DELETE_SET_SUCCESS, GET_SETS, GET_SETS_FAILED, GET_SETS_SUCCESS, TRActions, } from '../../actions'; export interface SetsScreenState { sets: number[]; loading: boolean; } export const initialState: SetsScreenState = { loading: false, sets: [], }; export default ( state: SetsScreenState =...
import { RULE_CLASSNAME_INDEX } from '../constants'; import { MakeStylesResolvedRule } from '../types'; import { makeStylesRulesSerializer } from '../utils/test/snapshotSerializer'; import { resolveStyleRules } from './resolveStyleRules'; expect.addSnapshotSerializer(makeStylesRulesSerializer); function getFirstClass...
/// <reference path="js/JQuery/typescript/jquery.d.ts"/> /// <reference path="js/KendoUI/typescript/kendo.all.d.ts"/> /// <reference path="js/MouseTrap/typescript/mousetrap.d.ts"/> /// <reference path="js/MouseTrap/typescript/mousetrap-global-bind.d.ts"/> /// <reference path="js/cornerstone.loader.ts"/> /// <reference ...
import React from 'react'; import { Section } from '../../../components/section/Section'; import { InfoRow, ImageSection, ImagePlace, TextSection, } from './Sections.styled'; import { Text } from '../../../components/typography/Styled'; export const InfoSection = () => { return ( <> <Section paddin...
import { calcEndPosition as calcEnd, calcCenterPosition as calcCenter, calcAutoPosition as calcAuto, calcSmartPosition as calcSmart } from '../src/scroll-position' test('calcEndPosition', () => { expect(calcEnd(0, 0, 0)).toBe(0) expect(calcEnd(300, 150, 100)).toBe(350) // item > container expect(calcEnd(...
import { Component, OnInit } from "@angular/core"; import { Title } from "@angular/platform-browser"; import { CountUpOptions } from "countup.js"; import { MatomoTracker } from "ngx-matomo"; import { HomeStats } from "./HomeStats.type"; import { GeneralService } from "../../services/general.service"; @Component({ s...
import { Component, ElementRef, Input, Output, EventEmitter, ViewChild, OnInit } from '@angular/core'; import { DomHandler } from '../dom/domhandler'; import { MenuItem } from '../common/menuitem'; import { FlexibleMenuService } from './flexibleMenu.service'; @Component({ selector: 'cherry-flexiblemenusub', tem...
/* * Copyright (C) 2020-2021 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ import { Expr, getFeatureId, getPropertyValue, IndexedTechnique, MapEnv, Pickability } from "@here/harp-datasource-protocol"; import { Object3D, Vec...
import * as React from 'react'; import { StyledIconProps } from '../../StyledIconBase'; export declare const CanadianMapleLeafDimensions: { height: undefined; width: undefined; };
import {BrowserModule} from '@angular/platform-browser'; import {NgModule} from '@angular/core'; import {AppComponent} from './app.component'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import { MatToolbarModule, MatIconModule } from '@angular/material'; import {A11yModule} from...
import React, { useMemo } from 'react' import withDefaults from '../utils/with-defaults' import useTheme from '../use-theme' import { useAutoCompleteContext } from './auto-complete-context' import { NormalSizes } from '../utils/prop-types' import Ellipsis from '../shared/ellipsis' interface Props { value: string i...
// package: greeter // file: greeter.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; export class HelloRequest extends jspb.Message { getName(): string; setName(value: string): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): HelloR...
export * from './services/hike-stops.service'; export { HikeStopTypesModule } from './components/hike-stop-types/hike-stop-types.component'; export { HikeStopTitlesModule } from './components/hike-stop-titles/hike-stop-titles.component';
import { Node as MarkdownAST } from 'unist'; import { Processor, Plugin as RemarkPlugin, Settings as RemarkSettings } from 'unified'; export interface Heading { title: string; id: string; depth: number; headings?: Heading[]; } export interface PageMetadata { url: string; relativeUrl: undefined | str...
export interface IAboutMeState { hovering: any; visible: any; }
import { relay, createWorkflow } from '@relaypro/sdk' import { Event } from '@relaypro/sdk/dist/enums' import { fetchOutOfRangeFreezers } from './data' const app = relay() app.workflow(createWorkflow(relay => { relay.on(Event.START, async () => { const outOfRange = await fetchOutOfRangeFreezers() if (outOfR...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { MatomoModule } from 'ngx-matomo'; import { MediaComponent } from './media.component'; describe('MediaComponent', () => { let component: MediaComponent; let fixture: ComponentFixture<MediaComponent>; beforeEach(async () => { await ...
import React from "react"; import marked from "marked"; import prism from "prismjs"; import data from "./allTypes-transit.json"; import { transit, ParsedFiles, BaseRecords, isFuncRecord, TypeVal, isInterfaceRecord, isClassRecord, ClassMethodRecord, ParamRecord, DocRecord, } from "./typedefs"; import...
export { ExplorerLink } from './ExplorerLink/index'; export { ConnectButton } from './ConnectButton/index'; export { CurrentUserBadge } from './CurrentUserBadge/index'; export { Identicon } from './Identicon/index'; export { Info } from './Icons/info'; export { NumericInput } from './Input/numeric'; export { AppBar } f...
import {Action} from "redux"; export default class BuyGeneratorAction implements Action<string> { public static ACTION_TYPE = "BUY"; public type = BuyGeneratorAction.ACTION_TYPE; public entity: string; public quantity: number; public success: boolean; public cost?: {[resourceName: string]: number}; cons...
import * as React from 'react'; import {render} from 'react-dom'; import {Root} from './Root'; import './styles/vendor.scss'; render(<Root/>,document.getElementById("root"));
import { EntryModel } from '../common/EntryModel'; import { IEntryService } from "../common/EntryService"; import { IEntryCommonService } from "../common/IEntryCommonService"; import { IEntryDataService } from '../data/IEntryDataService'; import { AuthSessionData } from '../common/EntryPageConfig'; import { SessionData...
import React, { FC } from 'react'; import { Icon, IconInterface } from "@redesign-system/ui-core"; export const SmartCardOutlineIcon: FC<IconInterface> = function SmartCardOutlineIcon({ className, ...propsRest }) { const classNames = `SmartCardOutlineIcon ${className}`; return ( ...
import { Component, OnInit } from '@angular/core'; import { environment } from '@env/environment'; export interface Aim { name: string; number: string; } @Component({ selector: 'app-about', templateUrl: './about.component.html', styleUrls: ['./about.component.scss'] }) export class AboutComponent implement...
import React from "react"; import { storiesOf } from "@storybook/react"; import { Tag, TagSize } from "../../components"; import { TagTheme } from "../../components/EnumValues"; import { CategoryName, wInfo } from "../utils"; const rowStyles = { padding: "20px 0", marginRight: "10px" }; (storiesOf(CategoryName.Ta...
import { CubaApp, FetchOptions } from "@cuba-platform/rest"; import { Car } from "./entities/scr$Car"; import { CarType } from "./enums/enums"; export type scr_FavoriteService_addFavorite_params = | { car: Car; notes: string; } | { favInfo: any; } | { carId: string; notes:...
<TS language="id_ID" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Klik-kanan untuk mengubah alamat atau label</translation> </message> <message> <source>Create a new address</source> <tr...
import Listener from './Listener' import Match from "../Models/Match" export default class NotifyDeletedMatch extends Listener { handle({match} : {match: Match}) { let message = `Deleting match #${match.id}...` if (match.players.length) { message += ' **Affected players: `' + match.playe...
import React, { createContext, useState } from 'react'; import { useApolloClient, useQuery } from '@apollo/react-hooks'; import { navigate, Redirect, useLocation } from '@reach/router'; import ProjectMutator from './projectMutator'; import useGetProject from './projectHooks'; import { GET_ACTIVE_PROJECT } from 'api/ap...
import { Component, OnInit } from '@angular/core'; import {AppConst} from '../../constants/app-const'; import {Product} from '../../models/product'; import {Router, NavigationExtras} from "@angular/router"; import {CartService} from '../../services/cart.service'; import {ShippingService} from '../../services/shipping.s...
module ag.grid { export interface ColDef { /** If sorting by default, set it here. Set to 'asc' or 'desc' */ sort?: string; /** If sorting more than one column by default, the milliseconds when this column was sorted, so we know what order to sort the columns in. */ sortedAt?: numb...
import Mob from './Mob'; class Entity extends Mob { constructor(x: number, y: number, config: any) { config.displayName = 'Iron golem'; super(x, y, config); } } Entity.prototype.animationSetName = 'iron-golem'; export default Entity;
import * as React from "react"; import { PeoplePicker, PrincipalType } from "@pnp/spfx-controls-react/lib/PeoplePicker"; import { WebPartContext } from "@microsoft/sp-webpart-base"; export interface ITenantUserPickerProps { context: WebPartContext; pickedUserEmail: string; onPickedTenantUserChanged: (loginName: ...
import { Cat } from './cat'; export interface IService<T> { mockServiceCall(parameter: any): T; mockSaveServiceCall(): T; mockServiceCallWithMultipleParameters(parameter1: any, parameter2: any): T; getData(parameter: string): T; getDataWithParamsObj(parameter: any): T; getDataAndReturnCachedStre...
import React from "react"; type AnyStyleProperties = {[key: string]: string} interface Props { className: string; style: AnyStyleProperties, } const GlobalStyle: React.FC<Props> = ({ className, style }) => { const [cssText, setCSSText] = React.useState(""); React.useEffect(() => { const dom = document.cr...
import React, { createContext, useContext } from "react"; import { useAuthMachine } from "./machine-development"; export type AuthStatus = | "authorized" | "unauthorized" | "authorizing" | "error"; interface AuthProviderContext { authStatus: AuthStatus; login: (email: string, password: string) => void; ...
/// <reference path="../basecontroller.ts" /> module sap.sbo.ng4c.footer { import BaseController = sap.sbo.ng4c.BaseController; export class Footer extends BaseController { public constructor($scope: any, $element: JQuery, $attrs: ng.IAttributes) { super($scope, $element, $attrs, "sap.sbo.n...
import { CustomFieldKeys, JiraIssueEvent } from '@models'; import { APIGatewayProxyHandler } from 'aws-lambda'; import { config, TeamConfig, Teams } from '../../config'; import { jiraApi } from '../api/jira.api'; import { BlockData, slackApi } from '../api/slack.api'; export const main: APIGatewayProxyHandler = async ...
export function random(): string; export function random(number: number): string[];
import { Injectable } from '@angular/core'; import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router'; import { AuthService } from "./app.service"; @Injectable() export class AuthGuard implements CanActivate { constructor(private router: Router) { } canActivate(ne...
export class Tower { private tower: StructureTower private hostile?: AnyCreep | Structure private repair?: Structure public constructor(tower: StructureTower, hostile?: AnyCreep | Structure, repair?: Structure) { this.tower = tower this.hostile = hostile this.repair = repair } private repairSt...
import { WorldPreviewCard } from "./WorldPreviewCard"; import { Button } from "../../../atoms/button/Button"; export const title = "WorldPreviewCard"; export default function WorldPreviewCardStories() { return ( <div> <WorldPreviewCard title="Arch linux" desc="Free play games room | No har...
import { GraphQLSchema, GraphQLNamedType } from 'graphql'; import { Transform } from '../../Interfaces'; export default class FilterTypes implements Transform { private readonly filter; constructor(filter: (type: GraphQLNamedType) => boolean); transformSchema(schema: GraphQLSchema): GraphQLSchema; }
import React from 'react' import ReactDOM from 'react-dom' import './styles/_global.scss' import './i18n' import App from './App' import reportWebVitals from './reportWebVitals' ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ) // If you want to sta...
import { createAction } from '@ngrx/store'; /** * set loading as true */ export const showLoading = createAction( '[Loading Component] showLoading' ); /** * set loading as false */ export const closeLoading = createAction( '[Loading Component] closeLoading' );
import * as React from "react"; import ErrorComponent from "../components/Error"; import { NextPage } from "next"; import { OPDS1 } from "interfaces"; import track from "analytics/track"; import ApplicationError from "errors"; const Error: NextPage<{ errorInfo?: OPDS1.ProblemDocument; }> = ({ errorInfo }) => { ret...
import { LatLng } from 'react-native-maps'; import { MapPolygonExtendedProps } from './types'; export declare const addCoordinateToPolygon: (polygon: MapPolygonExtendedProps, coordinate: LatLng, coordIndex?: number | undefined) => MapPolygonExtendedProps; export declare const getMiddleCoordinates: (coordinates: LatLng[...