text
stringlengths
10
953k
import { Storage } from "@utils/StorageArray"; const CHECK_NEEDED_KEY = "mnemonic-check-needed"; export class MnemonicSave { public mnemonic: string; constructor(private readonly storage: Storage) { this.mnemonic = ""; } async isChallengeNeeded() { return await this.storage.hasItem(CHECK_NEEDED_KEY);...
import React from 'react'; type ContainerProps = { title: string; children: React.ReactNode; contentType?: string; }; const PreviewContainer = ({ title, children, contentType = 'PREVIEW', }: ContainerProps) => { return ( <div className="preview"> <small className="preview__header">{contentType}...
import { PracticeBase } from '../PracticeBase'; import { PracticeEvaluationResult } from '../../model'; import { PracticeContext } from '../../contexts/practice/PracticeContext'; export declare class JavaSpecifiedDependencyVersions extends PracticeBase { isApplicable(ctx: PracticeContext): Promise<boolean>; eva...
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { HttpHeadersService } from './http-headers.service'; import { Observable } from 'rxjs/Observable'; import { Subject } from 'rxjs/Subject'; import { Constants } from './../constants/constants'; import { AuthenticationSer...
export interface RewardTree { index: string; cycle: string; user: string; tokens: string[]; cumulativeAmounts: string[]; proof: string[]; node: string; }
/* * Copyright 2015-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
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, HandlerExecutionContext, HttpHandlerOptions...
import { Severity } from './severity' /** * Defines a validation error that may include the error code, error message * or the property that produced the error. */ export interface ValidationError { code?: number | string message: string property: string severity?: Severity } /** * Defines the ope...
import { UsingObservable } from './UsingObservable'; export declare const using: typeof UsingObservable.create;
import { Entity, Column, PrimaryGeneratedColumn, BaseEntity } from 'typeorm'; import { Contains, IsInt, Length, IsEmail, IsFQDN, IsDate, Min, Max } from "class-validator"; @Entity() export class Users extends BaseEntity { @PrimaryGeneratedColumn() id: number; @Column({ length: 50, unique: true }) @IsEmail() ...
/* // Copyright 2021 Vircadia contributors. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html */ import { MetaverseMgr } from "@Modules/metaverse"; import { DomainMgr } from "@Modules/domain"; import { Slot, ConnectionS...
/** Declaration file generated by dts-gen */ export = eslint_config_sets declare const eslint_config_sets: { egg: { env: { browser: boolean commonjs: boolean es6: boolean node: boolean shelljs: boolean } extends: string globals: { h: boolean } parser: string parserOptions: { ecmaVe...
import { ExtractJwt, Strategy } from 'passport-jwt'; import { PassportStrategy } from '@nestjs/passport'; import { Injectable } from '@nestjs/common'; import { jwtConstants } from './constants'; @Injectable() export class JwtStrategy extends PassportStrategy(Strategy) { constructor() { super({ jwtFromReque...
import * as React from 'react'; import classnames from 'classnames'; import omit from 'omit.js'; import { Store } from './createStore'; interface BodyRowProps { store: Store; className?: string; rowKey: string; prefixCls: string; } interface BodyRowState { selected: boolean; } export interface BodyRowClass...
import fs from 'fs-extra'; import os from 'os'; import path from 'path'; import { spawn, SpawnOptions } from './cp.js'; import { cmdExists } from './env.js'; import { appendIfMissing } from './fs.js'; const brewPath = async (): Promise<string> => { for (const testPath of [ '/opt/homebrew/bin/brew', '/usr/lo...
import { PaymentModule } from './payment/payment.module'; import { ScheduleModule } from './schedule/schedule.module'; import { AddressModule } from './address/address.module'; import { TimeOptionModule } from './time-option/time-option.module'; import { ContactModule } from './contact/contact.module'; import { MailMod...
import IServiceProvider from "../../Core/Interface/IServiceProvider"; import ServiceContainer from "../../Core/ServiceContainer"; import BaseServiceProvider from "../../Core/ServiceProvider"; import Client from "./ServiceClient"; import AccessToken from "../Auth/AccessToken"; /** * Semantic Service Provider */ expor...
import * as core from '@spyglassmc/core' import { localeQuote, localize } from '@spyglassmc/locales' import * as mcdoc from '@spyglassmc/mcdoc' import type { NbtByteNode, NbtCompoundNode, NbtNode, NbtNumberNode, NbtPathNode, NbtPrimitiveArrayNode, NbtPrimitiveNode } from '../node/index.js' import { NbtListNode } from '...
/* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ export enum DATA_MEDIA_TYPE { Org, File } export enum OPERATION { Insert, ...
import SlackDriver from "../driver/slack-driver"; import { ConversationsListResultItem, ConversationsHistoryResultItem, ConversationItem } from "../types" import moment from 'moment-timezone' import SlackCalcService from "./slack-calc-service"; export default class SlackService { constructor(private slackDriver: S...
import { BadRequestException, ConsoleLogger, Inject, Injectable, InternalServerErrorException, LoggerService, Scope, UnprocessableEntityException, } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; import { WINSTON_MODULE_PROVIDER } from 'nest-winston'; import { AppConfigService } from 'sr...
import { PhoneIp32 } from "../../"; export = PhoneIp32;
import { AbortErroredProcess, AbortMissingProcess, AbortRunningProcess, AbortStoppedProcess, AbortUnknownProcess, DaemonizeProcess, RestartProcess, RestartRunningProcess, RestartRunningProcessWithPrompt, } from "./actions"; import { AnyObject, Application, ProcessOptions } from "./co...
import { IndoorFunctionsService } from 'src/app/shared/indoor-functions.service'; import indoorPoiToCoordinates from '../data/indoor-poi-to-coordinates.json'; import indoorWalkingPathCoordinates from '../data/indoor-walking-path-coordinates.json'; import { Coordinates } from './coordinates'; import { IndoorCoordinates ...
import { Component } from '@angular/core'; import { CmsComponent } from '@angular-cms/core'; import { LinkListBlock } from './link-list.blocktype'; @Component({ templateUrl: 'link-list.component.html' }) export class LinkListComponent extends CmsComponent<LinkListBlock> { constructor() { super(); ...
import { TokenInterceptor, authProviders } from './token-interceptor'; import { TestBed } from '@angular/core/testing'; import { AuthService } from './auth.service'; import { HttpClientModule, HttpClient } from '@angular/common/http'; import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/...
import { Injectable } from '@nestjs/common'; import { IEmailBlock, IntegrationRepository, MessageRepository, NotificationEntity, NotificationStepEntity, NotificationRepository, NotificationTemplateEntity, NotificationTemplateRepository, SubscriberEntity, SubscriberRepository, OrganizationRepositor...
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; import { getSourceNodes } from '@angular/cdk/schematics'; import { UTF_8 } from '../../../shared/constants'; import { buildSpartacusComment, commitChanges, getAllHtmlFiles, getAllTsSourceFiles, insertCommentAboveIdentifier, InsertDir...
import { Component, OnInit } from '@angular/core'; import { I18n } from 'sys/locale'; import { STATUS_CODE } from 'sys/src-com/app/global/constant'; import { HttpService } from 'sys/src-com/app/service'; import { CommonTableData } from 'sys/src-com/app/shared/domain'; import { TuninghelperStatusService } from '../../.....
export * from './configuration.model'; export * from './sorting-configuration.entry.model';
import React, { ReactElement, FunctionComponent, CSSProperties, memo } from 'react'; import styled, { css } from 'styled-components'; import { primaryButtonBackground, primaryButtonHoverBackground, primaryButtonActiveBackground, primaryButtonFocusShadowColor, dangerButtonHoverBackground, dangerButtonBackgro...
import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getTitleText()).toEqual('Welcome...
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types"; export const definition: IconDefinition; export const faFirstOrderAlt: IconDefinition; export const prefix: IconPrefix; export const iconName: IconName; export const width: number; export const height: number; export const li...
import React, { useMemo } from 'react'; import { format, addMonths, subMonths } from 'date-fns'; import pt from 'date-fns/locale/pt'; import Icon from 'react-native-vector-icons/Feather'; import { Container, CalendarContainer, CalendarText, CalendarLeftBottom, CalendarRightBottom, } from './styles'; interfa...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import * as TelemetryEvents from '../../common/extension-telemetry-events'; import { BaseTelemetryData, TelemetryData, ToggleTelemetryData } from '../../common/extension-telemetry-events'; import { CreateIssueDetailsTextData...
/* * @Author: xuanyu * @LastEditors: xuanyu * @email: 969718197@qq.com * @github: https://github.com/z-xuanyu * @Date: 2022-03-30 14:03:22 * @LastEditTime: 2022-03-30 16:03:40 * @Description: Modify here please */ import { ApiProperty } from '@nestjs/swagger'; import { PaginationParametersDto } from 'libs/commo...
/* tslint:disable */ /* eslint-disable */ /** */ export class WasmTar { free(): void; /** * @returns {WasmTar} */ static new(): WasmTar; /** * @param {number} length */ allocate(length: number): void; /** * @returns {number} */ memory_pos(): number; /** * @returns {Array<any>} */ get_entries(): Array<any>; } ...
import { OptionType } from './enums/option-type'; import { OptionItem } from './models/option-item'; export const optionsCommands = new Map<OptionType, OptionItem>([ [OptionType.Module, { commands: ['--module', '-m'], configPath: 'defaults.{resource}.module', description: 'Allows specification of the declaring mod...
it('solve_82 should pass', () => {})
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
// Copyright 2020 The Oppia Authors. 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 ap...
import { Strategy } from 'passport-local'; import { PassportStrategy } from '@nestjs/passport'; import { HttpException, HttpStatus, Injectable } from '@nestjs/common'; import { UserService } from './user.service'; import { User } from './schemas/user.schema'; @Injectable() export class PasspoprtLocalStrategy extends P...
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; import { Injectable } from '@angular/core'; import { of } from 'rxjs/observable/of'; import { UserService } from './user.service'; @Injectable() export class DataResolver implements Resolve<any> { public resolve(route: ActivatedR...
import sinon from "sinon" import {expect} from "assertions" import {display, fig} from "./_util" import { HoverTool, BoxAnnotation, ColumnDataSource, CDSView, BooleanFilter, GlyphRenderer, Circle, Legend, LegendItem, } from "@bokehjs/models" describe("Bug", () => { describe("in issue #10612", () => { it("pre...
import { Resolver, Mutation, Arg, Field, Query, FieldResolver, Root, InputType, Authorized, Ctx, } from 'type-graphql'; import { ProjectModel, Project } from '../model/Project'; import { Todo, TodoModel } from '../model/Todo'; import { ContextType } from '../types'; @InputType() class ProjectCreate...
import { getHmac, getHmacMessage, getSecret, verifyMessage } from './crypto'; // Notification request headers const TWITCH_MESSAGE_SIGNATURE = 'Twitch-Eventsub-Message-Signature'; // Prepend this string to the HMAC that's created from the message const HMAC_PREFIX = 'sha256='; export function isValidMessage(req: any...
/** * Functor contains helper functions. */ export * from './array'; export * from './clone';
import {waitForDisplayed} from '@nice-digital/wdio-cucumber-steps/lib/support/action/waitForDisplayed'; import {checkContainsText} from '@nice-digital/wdio-cucumber-steps/lib/support/check/checkContainsText'; import {pause} from '@nice-digital/wdio-cucumber-steps/lib/support/action/pause'; import selectors from '../sel...
import { InvalidationMode, SyncMode } from "@/core/comm/types"; import { sendClientOptions } from "@/game/api/utils"; import { ServerShape } from "@/game/comm/types/shapes"; import { EventBus } from "@/game/event-bus"; import { GlobalPoint } from "@/game/geom"; import { layerManager } from "@/game/layers/manager"; impo...
import { css, propNames, ResponsiveValue, SystemProps, SystemStyleObject, } from "@chakra-ui/styled-system" import { get, objectFilter, objectAssign, Dict } from "@chakra-ui/utils" import createStyled, { CSSObject, FunctionInterpolation, Interpolation, } from "@emotion/styled" import { shouldForwardProp...
import * as fs from 'fs'; import * as path from 'path'; import { isFile, logMessage } from "./extension"; // eslint-disable-next-line @typescript-eslint/no-var-requires const lzjs = require('lzjs'); import { COBOLFileSymbol, globalSymbolFilename, InMemoryGlobalSymbolCache, COBOLGlobalSymbolTable, reviver, fileSymbolFil...
export { ClientLogo } from "./ClientLogo";
import { Injectable } from '@angular/core'; import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router'; import { Observable } from 'rxjs'; import { AuthService } from '../services/auth.service'; @Injectable({ providedIn: 'root' }) export class AdminGuard impl...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { SupervisorsComponent } from './supervisors.component'; describe('SupervisorsComponent', () => { let component: SupervisorsComponent; let fixture: ComponentFixture<SupervisorsComponent>; beforeEach(async () => { await TestBed.config...
import { ComponentSchema } from '@sunmao-ui/core'; import { Registry } from '@sunmao-ui/runtime'; import Ajv, { ValidateFunction } from 'ajv'; import { IAppModel, IComponentModel, ITraitModel } from '../AppModel/IAppModel'; export interface ValidatorMap { components: Record<string, ValidateFunction>; traits: Recor...
/*--------------------------------------------------------------------------------------------- * Copyright (c) RStudio, PBC. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------...
// Type definitions for Leaflet.Editable 0.7 // Project: https://github.com/yohanboniface/Leaflet.Editable // Definitions by: Dominic Alie <https://github.com/dalie> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import * as Leaflet from 'leaflet'; declare module 'leafle...
export enum levels { easy = 4, medium = 6, hard = 8 } export enum levelNames { easy = 'easy', medium = 'medium', hard = 'hard' } export enum languages { es, en, } export enum tiles { aguacate = 'aguacate.jpg', ajo = 'ajo.jpg', alcachofa = 'alcachofa.jpg', apio = 'apio.jpg', berenjena = 'ber...
// Copyright (c) 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as Common from '../../../../front_end/core/common/common.js'; import * as Platform from '../../../../front_end/core/platform/platform.js'; im...
import { existsSync, writeFileSync } from "fs"; import { useEffect } from "react"; import { LocalStorage } from "@raycast/api"; import { SVGR_DEFAULT, SVGO_DEFAULT } from "../constants"; interface UseInitSettings { svgoConfigPath: string; } const useInitSettings = ({ svgoConfigPath }: UseInitSettings) => { useEff...
import Context from "../context"; import { XPathValue } from "../types.d"; import XPathNodeSet from "../types/xpath_node_set"; import XPathNumber from "../types/xpath_number"; export default function evaluate<T> (context: Context<T>, ...args: XPathValue<T>[]) { if (args.length !== 1) { throw new Error("Expect...
/* * Copyright 2021 The Backstage Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core'; import { Configuration } from './configuration'; import { HttpClient } from '@angular/common/http'; import { AppinstancesService } from './api/appinstances.service'; import { ApplicationsService } from './api/applications.service'; imp...
/** 数据格式 */ /** 时间日期格式 serverCase:提交服务端与服务端返回 */ export const enum DateTime { serverDate = 'yyyy-MM-dd', serverTime = 'HH:mm:ss', serverTimeShort = 'HH:mm', serverDateTime = 'yyyy-MM-dd HH:mm:ss', serverDateTimeShort = 'yyyy-MM-dd HH:mm', date = 'yyyy 年 M 月 d 日', time = 'HH:mm:ss', timeShort = 'HH:mm',...
export * from './lib/adapter/datepicker.adapter'; export * from './lib/calendar-header/calendar-header.component'; export * from './lib/datepicker-content/datepicker-content.component'; export * from './lib/datepicker-toggle/datepicker-toggle.component'; export * from './lib/model/datepicker.model'; export * from './li...
import { render } from '@testing-library/svelte' import Home from './Welcome.svelte' import { setupI18n } from '../../i18n' describe('Home', () => { let container: HTMLElement beforeEach(() => { setupI18n() container = render(Home).container }) test('the heading is "Pockette"', () => { expect(co...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; import {ARN} from ".."; /** * Manages an EC2 Transit Gateway...
import { ApiProperty } from '@nestjs/swagger'; import { IsEnum, IsNotEmpty, IsString, Matches } from 'class-validator'; import { Relation } from '../entities/relative.entity'; export class CreateRelativeDto { @ApiProperty({ required: true }) @IsString() @IsNotEmpty() name: string; @ApiProperty({ required: t...
import { CallHandler, ExecutionContext, Inject, Injectable, NestInterceptor, } from '@nestjs/common'; import { Observable } from 'rxjs'; import { Logger } from 'winston'; @Injectable() export class LoggerInterceptor implements NestInterceptor { constructor(@Inject('winston') private logger: Logger) {} i...
declare let require: any; import { Component, OnInit, OnDestroy } from "@angular/core"; import { NotesService } from "../Services/notes.service"; import { CookieService } from "angular2-cookie"; import { CommonService } from "../Services/list-grid.service"; import { Subscription } from "rxjs"; import { Router } from "@...
import { getRegistryAdapterV2, YEARN_REGISTRY_V1, YEARN_V1_PROTOCOL_ID, YEARN_V2_PROTOCOL_ID, } from "../constants"; import { getChainId } from "../utils/network"; import { env, Ethereum_Connection, Ethereum_Query, Input_isValidProtocolToken, QueryEnv, } from "../w3"; function isValidYearnVaultV2(yTo...
import { CrudState } from '../CrudState'; import VectorEmailRecord from './VectorEmailRecord'; import VectorEmailWidget from './VectorEmailWidget'; class VectorEmailState extends CrudState { constructor() { super('vectorEmail'); } records: VectorEmailRecord[]; selectedRecord: VectorEmailRecord...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Qubit</source> <translation>Sobre Qubit</translation> </messa...
import * as commando from "discord.js-commando"; import { Message, MessageEmbed } from "discord.js"; import { ModLogs } from "../../entity/modlogs"; import { User } from "../../entity/user"; import { getMember } from "../../bot/utils"; import { getRepository } from "typeorm"; // Creates a new class (being the command)...
// This plugin will open a modal to prompt the user to enter a number, and // it will then create that many rectangles on the screen. // This file holds the main code for the plugins. It has access to the *document*. // You can access browser APIs in the <script> tag inside "ui.html" which has a // full browser enviro...
import { InterfaceType, ObjectType, Field, Int, InputType, } from '@nestjs/graphql' import { ClassType } from 'type-graphql' @InterfaceType() abstract class Edge<T> { @Field() cursor: string node: T } @ObjectType() class PageInfo { @Field() start: string @Field() end: string @Field((type) =...
import Application = require("application"); Application.start({ moduleName: "main-page" });
import awsServerlessExpress from 'aws-serverless-express'; import app from './app'; // NOTE: If you get ERR_CONTENT_DECODING_FAILED in your browser, this is likely // due to a compressed response (e.g. gzip) which has not been handled correctly // by aws-serverless-express and/or API Gateway. Add the necessary MIME ty...
import Sandbox from '@ice/sandbox'; import { getGlobalProp, noteGlobalProps } from './global'; export interface StarkModule { name: string; url: string|string[]; mount?: (Component: any, targetNode: HTMLElement, props?: any) => void; unmount?: (targetNode: HTMLElement) => void; }; export interface ImportTask ...
// Copyright 2022 Cartesi Pte. Ltd. // 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,...
/* * 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, software * distributed u...
import { Axis, TypedArray, TomType, VisualStyleType, SelectionAtom } from '../shared/types'; import * as io from './io'; import { Vector3, Color } from 'three'; import { atom } from 'recoil'; import randomColor from 'randomcolor'; import { bufferedSelections, getVector3TomFilenames } from '../state/DataState'; import {...
import { useDispatch } from 'react-redux'; import type { AppDispatch } from '../configureStore'; export const useAppDispatch = () => useDispatch<AppDispatch>();
import { IPanelProps } from '@blueprintjs/core' import _ from 'lodash' import pluralize from 'pluralize' import * as React from 'react' import { ChannelDetailsProps } from 'components/ChannelDetails' import { ChannelDetailsType } from 'components/ChannelDetailsOverview' import ChannelDetailsPanel from 'components/Chan...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-blog01042018', templateUrl: './blog01042018.component.html', styleUrls: ['./blog01042018.component.css'] }) export class Blog01042018Component implements OnInit { constructor() { } ngOnInit() { } }
import StatusCodes from 'http-status-codes'; import { Request, Response } from 'express'; import { addActivity } from 'src/repositories/timeEntry'; const { OK } = StatusCodes; export async function logTime(req: Request, res: Response) { const response = await addActivity(req.body); return res.status(OK).send(...
/** * 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. * * @format */ import path from 'path'; import fs from 'fs-extra'; import { Platform, Arch, ElectronDownloadOptions, build,...
/** * 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 agreed to i...
import AccessibleContext = require('nashorn/javax/accessibility/AccessibleContext'); import LayoutManager = require('nashorn/java/awt/LayoutManager'); import Container = require('nashorn/java/awt/Container'); import Accessible = require('nashorn/javax/accessibility/Accessible'); import AccessibleRole = require('nashorn...
import { CloudFront, Credentials } from 'aws-sdk'; export const ALL_FILES_PATH = '/*'; const createInvalidation = ({ credentials, distributionId, paths = [ALL_FILES_PATH], }: { credentials: Credentials; distributionId: string; paths?: string[]; }): Promise<CloudFront.CreateInvalidationResult> => { const...
/** * @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 { Compiler, CompilerFactory, ComponentFactory, CompilerOptions, ModuleWithComponentFactories, InjectionToken, ...
declare type BoxedTupleTypes<T extends any[]> = { [P in keyof T]: [T[P]]; }[Exclude<keyof T, keyof any[]>]; declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; declare type UnboxIntersection<T> = T extends { 0: infer U; } ? U : never; export d...
import { define, WeElement, render, h } from 'omi'; import './hello-omi'; import './index.css'; import * as logo from './logo.svg'; interface AbcEvent extends Event { detail: { name: string; age: number; } } interface MyAppProps { name: string; } interface MyAppData { abc: string; passToChild: stri...
import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {ForgotPasswordRoutingModule} from './forgot-password-routing.module'; import {ForgotPasswordComponent} from './forgot-password.component'; import {MatFormFieldMo...
'use strict'; import BaseModel from '../bases/BaseModel'; import {ILinkedData} from 'teambition'; class ObjectLinkModel extends BaseModel { public set(link: ILinkedData) { this._set('link', link._id, link); } public update(parentType: string, parentId: string, patch: any) { this._updateObj(`${parentType...
import bowling from '../bowling'; describe('bowling', () => { it('passes', () => { expect(bowling()).toBeTruthy(); }); });
import * as path from "path"; import * as crypto from "crypto"; import { verifyCertificateSignature, Certificate, PrivateKey, toPem } from "../source"; import { readTag, _readStruct, _readAlgorithmIdentifier, _readSignatureValueBin } from "../source/asn1"; import { readCertificate, readPrivateKey } from "../source_node...
declare interface IPnPCoreSdkBannerWebPartStrings { PropertyPaneDescription: string; BasicGroupName: string; MessagePropLabel: string; } declare module 'PnPCoreSdkBannerWebPartStrings' { const strings: IPnPCoreSdkBannerWebPartStrings; export = strings; }
export interface ThemeLocaleOptions { /** * 404 page config * * Not Found messages for 404 page */ notFound?: string[] /** * 404 page config * * Text of back-to-home link in 404 page */ backToHome?: string[] /** * Translation for categories */ categories?: Record<string, stri...
import * as zrender from 'zrender/esm/zrender'; import Eventful from 'zrender/esm/core/Eventful'; import { GlobalModelSetOptionOpts } from './model/Global'; import ComponentModel from './model/Component'; import SeriesModel from './model/Series'; import ChartView from './view/Chart'; import * as modelUtil from './util/...