text
stringlengths
10
953k
import { Component } from '../ui/component/Component'; import { Model } from '../ui/component/model/Model'; import { View } from '../ui/view/View'; export class ComponentMock extends Component<Model, View> { static UICODE = 'COMPONENT_MOCK'; constructor(id: string) { super(id); } getUICode(): string { ...
import tweens from 'tween-functions'; import { Rect } from './Rect'; import ParticleGeneratorClass from './ParticleGeneratorClass'; export interface ConfettiOptions { /** * Width of the component * @default window.width */ width: number; /** * Height of the component * @default window.height */...
import * as TypeGraphQL from "type-graphql"; import * as GraphQLScalars from "graphql-scalars"; import { LikeWhereUniqueInput } from "../../../inputs/LikeWhereUniqueInput"; @TypeGraphQL.ArgsType() export class DeleteLikeArgs { @TypeGraphQL.Field(_type => LikeWhereUniqueInput, { nullable: false }) where!: Lik...
/** * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn special-lint-fix` to update */ export interface DllPluginOptions { /** * Context of requests in the manifest file (defaults to the webpack context) */ context?: string; /** * If true, only entry points will be exposed */ ...
/* eslint-disable @typescript-eslint/no-unused-vars */ import { ShoppingCartProtocol } from "./interfaces/shopping-cart-protocol"; import { Order } from "./Order"; import IProduct from "./interfaces/IProduct"; import { MessagingProtocol } from "./interfaces/messaging_protocol"; import { PersistencyProtocol } from "./in...
import { StyleSheet } from 'react-native'; import { theme } from './../../../constants/index'; const { COLORS, FONTS } = theme; export const styles = StyleSheet.create({ inputView: { width: '80%', backgroundColor: COLORS.whiteTwo, borderRadius: 5, height: 40, marginBottom: ...
type Geometry = { type: string; coordinates: number[] } type featureProperties = { [key: string]: string; } type Feature = { type: string; geometry: Geometry; properties: featureProperties } type itemObject = { [key: string]: any; } export type GeoJSON = { type: string; features: Feature[] } cons...
import * as AWS from 'aws-sdk' import { Credentials, Endpoint, HttpRequest } from 'aws-sdk' import fetch from 'node-fetch' import { parse } from 'url' import { parseQuery } from './parseQuery' import { GQLQueryResult } from '../gql-query-result' export const queryWithIAM = ( AccessKeyId: string, SecretKey: string, ...
import { Controller, Get, Param, Logger } from '@nestjs/common'; import { ReservationEntity } from './reservation.entity'; import { CrudController } from '../lib/crud/crud-controller'; import { ReservationService } from './reservation.service'; @Controller('reservations') export class ReservationController extends Cru...
import { StylesProvider } from "@material-ui/styles" import { GenerateId } from "jss" import React, { FunctionComponent } from "react" import { slugify } from "utils" interface SnapshotStylesProviderProps { kind: string story: string } const counts: { [key: string]: number } = {} /* Generates a cascading u...
import { JFIFUnits, JPEG } from '../../jpeg' const jpeg: JPEG = [ { type: 'SOI' }, { type: 'JFIF', version: [1, 1], units: JFIFUnits.DotsPerCm, density: { x: 10, y: 10 }, }, { type: 'APP', appType: 14, // prettier-ignore data: new Uint8Array([ 65, 100, 111, 98, 101, 0, 100...
/** * 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 { Fun } from '@ephox/katamari'; import { Element } from '@epho...
import {TdDialogService} from "@covalent/core/dialogs"; import {Observable} from "rxjs/Observable"; import 'rxjs/add/observable/of'; import 'rxjs/add/operator/share'; import 'rxjs/add/operator/map'; import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnDestroy, OnInit, ViewChild} from "@angular/core";...
/** * @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 {Type} from '../interface/type'; import {getClosureSafeProperty} from '../util/property'; import {stringify} ...
import { platform } from 'os'; import { existsSync, chmodSync } from 'fs'; import { IDeployer, IImageOptions } from './types'; import * as kubectl from '../../helpers/kubectl'; import { execWrapper as exec } from '../../helpers/exec'; const helmVersion = '3.0.0'; const helmPath = './helm'; const helmChartPath = './sn...
import { NgModule } from "@angular/core"; import { RouterModule, Routes } from "@angular/router"; import { RecipesPage } from "./recipes.page"; const routes: Routes = [ { path: "", component: RecipesPage, }, ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule], }) export cl...
import WebPush from 'web-push'; import { ServiceDependencies } from '../setup/setupServiceDependencies'; import { v4 as uuid } from 'uuid'; import formatMongoRecord from '../utils/formatMongoRecord'; import { PushDevice } from '../types'; interface UpsertPushDeviceParams { subscription: WebPush.PushSubscription; u...
import {OperatorService} from '../../../operator-service/operator.service'; import {LoggerService} from '../../../../logger/services/logger.service'; import {Equals} from '../../operator/equals'; import {OptionalDependencies} from '../../../category-factory/optional-dependencies'; import {NotEquals} from '../../operato...
/** * Copyright 2020 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 applic...
import { NextApiRequest, NextApiResponse } from "next"; // eslint-disable-next-line import/no-anonymous-default-export export default (request: NextApiRequest, response: NextApiResponse) => { console.log(request.query); const users = [ { id: 1, name: 'João' }, { id: 2, name: 'Diego' }, { id: 3, name: ...
import * as core from '@actions/core' import {Inputs} from './create-pull-request' import {Octokit, OctokitOptions} from './octokit-client' const ERROR_PR_REVIEW_FROM_AUTHOR = 'Review cannot be requested from pull request author' interface Repository { owner: string repo: string } interface Pull { number: nu...
import * as Sentry from '@sentry/node'; import { createLogger } from '@unly/utils-simple-logger'; import deepmerge from 'deepmerge'; import MarkdownToJSX, { MarkdownOptions } from 'markdown-to-jsx'; import React from 'react'; import { Alert, Button, Col, DropdownItem, DropdownMenu, DropdownToggle, Nav, ...
import Goal from 'types/api/Goal' interface GoalsByCategory { [key: string]: Goal[] } export default GoalsByCategory
import { _ISelection, _IIndex, IValue, setId, getId, _IType, _Transaction, _Column, _ITable, _Explainer, _SelectExplanation, IndexKey, _IndexExplanation, IndexExpression, IndexOp, Stats, _IAlias } from '../interfaces-private'; import { QueryError, ColumnNotFound, DataType, CastError, Schema, NotSupported, AmbiguousColu...
import * as React from "react" import "./footer.component.sass" interface IFooterComponentProps {} export function FooterComponent({}: IFooterComponentProps) { return ( <React.Fragment> <footer> <div className="container"> <p>footer</p> </di...
import { Component, ComponentInterface, Element, Event, EventEmitter, Listen, Prop, QueueApi, State, Watch } from '@stencil/core'; import { Color, Gesture, GestureDetail, InputChangeEvent, Mode, RangeValue, StyleEvent } from '../../interface'; import { clamp, debounceEvent } from '../../utils/helpers'; import { create...
import { translateRaw } from 'translations'; import { IHexStrWeb3Transaction } from 'libs/transaction'; import { INode } from 'libs/nodes/INode'; import { isValidSendTransaction, isValidSignMessage, isValidGetAccounts, isValidGetNetVersion } from 'libs/validators'; import RPCNode from '../rpc'; import Web3Clien...
// DO NOT EDIT! This file is autogenerated from scripts/data/index.d.ts.template. export = ohm; declare namespace ohm { const ohmGrammar: Grammar; /** * Instantiate the Grammar defined by source. If specified, namespace is * the Namespace to use when resolving external references in the grammar. */ fu...
export default function temporarilyDisabledTest() { return Promise.resolve(); } // import * as os from 'os'; // import * as _ from 'lodash'; // import * as express from 'express'; // import * as http from 'http'; // import {appendToFile, writeMultipleFiles, writeFile} from '../../utils/fs'; // import { // killAllPro...
/* * Copyright (C) 2019-2021 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ import { EarthConstants, isVector3Like, Vector2Like, Vector3Like, webMercatorProjection } from "@here/harp-geoutils"; import * as THREE from "three"; i...
/** * Copyright (c) 2018 Dell Inc., or its subsidiaries. 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 */ im...
import * as React from 'react'; declare const RugbyIcon: React.FC<React.HTMLAttributes<HTMLSpanElement> & import("..").ISvgIconProps>; export default RugbyIcon;
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; // https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead export const tuple = <T extends string[]>(...args: T) => args; export const tupleNum = <T extends number[]>(...args: T) => args; ...
import { useEffect, useMemo, useState } from 'react'; import hashString from '@emotion/hash'; import { AdminMeta, FieldViews, getGqlNames } from '@keystone-next/types'; import { useLazyQuery } from '../apollo'; import { StaticAdminMetaQuery, staticAdminMetaQuery } from '../admin-meta-graphql'; const expectedExports = ...
import { Component, OnInit } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { AccountService, AlertService } from '@app/_services'; @Component({ templateUrl: 'add-edit.component.html' }) export class AddEdit...
import { Application, IOwnerOption } from 'core'; export interface IAddEntityTagLinksProps { application: Application; component: any; entityType: string; onUpdate?: () => any; ownerOptions?: IOwnerOption[]; tagType?: string; }
type Field<T> = { dirty: boolean; dirtyAndValid: boolean; errors: string[]; firstError: string; initialValue: T; invalid: boolean; pending: boolean; valid: boolean; validators: ValidatorFn<T>[]; value: T; }; type FieldStore<T> = import('svelte/store').Writable<Field<T>> & { reset(value: T): void;...
// *** 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 { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; ...
import React from 'react'; import './MalBanner.less'; import { ReactComponent as InfoSvg } from './info.svg'; import Normaltekst from 'nav-frontend-typografi/lib/normaltekst'; function MalBanner() { return ( <div className="mal-banner"> <InfoSvg /> <Normaltekst className="mal-banner-beskrivelse"> Legg til ...
/** * Wrapper class for Custom Domain information */ import * as AWS from "aws-sdk"; // imported for Types import DomainInfo = require("./domain-info"); import Globals from "./globals"; import {CustomDomain, Route53Params} from "./types"; class DomainConfig { public acm: any; public givenDomainName: strin...
import card from './Character_Zhongli_Card.png' import thumb from './Character_Zhongli_Thumb.png' import c1 from './Constellation_Rock,_the_Backbone_of_Earth.png' import c2 from './Constellation_Stone,_the_Cradle_of_Jade.png' import c3 from './Constellation_Jade,_Shimmering_through_Darkness.png' import c4 from './Const...
import { expect } from "chai"; import { CspSource, generate } from "."; import { readFileSync } from "fs"; describe("index", () => { it("generates a short csp", () => { const csp = generate({ "script-src": ["'self'", "www.example.com"], }); expect(csp).to.equal("script-src 'self' www.example.com;"...
import { IsBoolean, IsOptional, IsString } from "class-validator"; export class GetEmployeesFilterDto { @IsOptional() @IsString() search?: string; @IsOptional() @IsBoolean() isActive?: boolean; }
// same as promisePermutations but without the same overloads in IPromise<T> interface Promise<T> { then<U>(success?: (value: T) => Promise<U>, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; then<U>(success?: (value: T) => Promise<U>, error?: (error: any) => U, progress?: ...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; impo...
import { ApiProperty } from '@nestjs/swagger'; import { IsOptional } from 'class-validator'; export class CreateEnderecoDto { @ApiProperty() cep: string; @ApiProperty() @IsOptional() logradouro?: string; @ApiProperty() @IsOptional() complemento?: string; @ApiProperty() @IsOptional() bairro?: s...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-hr-page', templateUrl: './hr-page.component.html', styleUrls: ['./hr-page.component.scss'], }) export class HrPageComponent implements OnInit { constructor() {} ngOnInit(): void {} }
import { findMissingAttachmentsForBarn, shouldPeriodeHaveAttachment } from '../missingAttachmentUtil'; import { Søkerinfo } from 'app/types/søkerinfo'; import mockSøknad from 'app/testdata/soknad.data'; import Søknad, { Skjemanummer, SøkerRolle, Søkersituasjon } from 'app/types/søknad/Søknad'; import Arbeidsforhold fro...
import { G, Path } from 'react-native-svg'; import * as React from 'react'; import withIcon from '../../lib/withIcon'; type Props = { opacity?: string; color?: string; secondaryColor?: string; set?: string; strokeWidth?: string | number; }; const Chart = ({ color, secondaryColor, strokeWidth, opacity, set...
export * as usage from './Burger.demo.usage.svelte'; export * as color from './Burger.demo.color.svelte'; export * as size from './Burger.demo.size.svelte';
export interface AmountMap { [key: string]: { value: number; unit: string; }; } export const metricImperialMap: AmountMap = { grams: { value: 0.03, unit: "ounce", }, whole: { value: 1, unit: "whole", }, millilitres: { value: 0.004, unit: "cup", }, bunch: { value: 1...
import React from 'react'; import InferredElement from './InferredElement'; describe('InferredElement', () => { it('should accept null type', () => { const ie = new InferredElement(); expect(ie.getElement()).toBeUndefined(); }); describe('getRepresentation', () => { it('should retur...
/* SPDX-FileCopyrightText: 2014-present Kriasoft <hello@kriasoft.com> */ /* SPDX-License-Identifier: MIT */ import { PaletteMode } from "@material-ui/core"; import { createTheme, Theme } from "@material-ui/core/styles"; import { components } from "./components"; /** * Customized Material UI themes for "light" and "d...
// @ts-ignore /* eslint-disable */ import {request} from "@@/plugin-request/request"; import {op, OP_GET, OP_MOD, OptionsType, ParamsType} from "@/services/manager/restfulapi"; const apiPathPrefix = '/api/manager/trade'; const orderApiPath = apiPathPrefix + '/order'; const expressTypeApiPath = apiPathPrefix + '/expre...
import { Annotation, AnnotationTypes } from './pages/visualizations/components/annotations/annotation'; import { Statistics } from './pages/visualizations/components/statistics/statistics'; import { ComponentSet } from './pages/visualizations/components/componentSet'; import { BehaviorSubject } from 'rxjs/BehaviorSubje...
import { Client } from '@elastic/elasticsearch'; import { Inject, Injectable, OnModuleDestroy, OnModuleInit } from '@nestjs/common'; import { unique } from '@vendure/common/lib/unique'; import { Asset, asyncObservable, AsyncQueue, Channel, Collection, ConfigService, FacetValue, ID, L...
import * as React from "react"; import * as ReactDOM from "react-dom"; import { Tabs, TabList, Tab, TabPanel, resetIdCounter } from "react-tabs"; resetIdCounter(); class TestApp extends React.Component { onSelect = (index: number, last: number, event: Event) => { console.log("selected tab: " + index.toStr...
import { UploadDataRepository } from "../repositories/UploadDataRepository"; export class DownloadAnnotationsExampleUseCase { constructor(private uploadDataRepository: UploadDataRepository) {} execute() { return this.uploadDataRepository.downloadAnnotationsExample(); } }
export { event } from './event' export { variable } from './variable' export { asyncVariable } from './asyncVariable' export { filter } from './filter' export { map } from './map' export { mutex } from './mutex' export { toAsync } from './toAsync' export { Emit, Subscribe, Variable, AsyncEmit, AsyncVariable, Lock } fro...
import { StyledIcon, StyledIconProps } from '..'; export declare const CaretSquareDown: StyledIcon<any>; export declare const CaretSquareDownDimensions: { height: any; width: any; }; export { StyledIcon, StyledIconProps };
import { throwIfFalsy } from 'throw-if-arg-empty'; import { Column, RawColumn } from '../core/core.js'; import { ColumnAttribute } from '../attrs.js'; declare module '../core/core.js' { // eslint-disable-next-line @typescript-eslint/no-unused-vars interface Column { as(name: string): RawColumn; attr(name: ...
import moment from 'moment'; import * as React from 'react'; import { Table } from 'semantic-ui-react'; /** Return array of week day names. * * getWeekDays() --> ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Su'] */ const getWeekDays = (m, localization) => { const weekDays = []; const day = localization ? m().locale(lo...
/** * Created by AAravindan on 5/5/16. */ import { Indicator, IndicatorInput } from "../indicator/indicator"; import { AverageGain } from "../Utils/AverageGain"; import { AverageLoss } from "../Utils/AverageLoss"; export class RSIInput extends IndicatorInput { public period: number; public values: number[]; } ...
import mongoose from 'mongoose'; try { mongoose.connect('mongodb://localhost:27017/desafiogeo', { useNewUrlParser: true, useUnifiedTopology: true, }); mongoose.Promise = global.Promise; } catch (error) { console.log(error); } export default mongoose;
import type { AppProps /*, AppContext */ } from 'next/app'; import Head from 'next/head'; import GlobalStyles from 'styles/global'; function App({ Component, pageProps }: AppProps) { return ( <> <Head> <title>Next.js Boilerplate</title> <link rel="shortcut icon" href="/img/icon-512.png" />...
// Copyright 2020 H2O.ai, 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...
declare namespace java { namespace awt { class Dimension extends java.awt.geom.Dimension2D implements java.io.Serializable { public width: int public height: int public constructor() public constructor(arg0: java.awt.Dimension) public constructor(arg0: number | java.lang.Integer, ar...
const routes = { feed: '/feed', grid: '/grid', profile: '/profile' } export default routes
import React, { FC } from 'react' import { RecommendationModel } from '@/common/types/release' type RecommendationCounterProps = { recommendation: RecommendationModel } const RecommendationCounter: FC<RecommendationCounterProps> = React.memo( ({ recommendation }): JSX.Element => { return ( <div classNam...
/********************************************************************************** * MIT License * * * * Copyright (c) 2021 Hyperjump Technology ...
module minerva.text { export interface ITextUpdaterAssets extends ITextAssets { fontFamily: string; fontSize: number; fontStretch: string; fontStyle: string; fontWeight: FontWeight; textDecorations: TextDecorations; language: string; } export class Te...
import { inject, injectable } from 'tsyringe'; import { Specification } from '../../../entities/Specification'; import { ISpecificationsRepository } from '../../../repositories/especification/ISpecificationRepository'; @injectable() class ListSpecificationService { constructor( @inject('SpecificationsRepository...
const backSlashes = /\\+/g; const trailingSlash = /\/+$/; const tsExtension = /\.ts(x?)$/; /** * Normalize `pathString` as follows: * * 1. Trim leading/trailing whitespaces. * 2. Replace `\` with `/`. * 3. Remove the trailing `/`. */ export const normalize = (pathString: string): string => pathString.trim().re...
/** * Core implementation for [MusicVAE]{@link https://g.co/magenta/musicvae} * models. * * @license * Copyright 2018 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 t...
/** * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-ge...
import { Component, Input, Output, EventEmitter } from '@angular/core'; export type ToolbarItem = { label: string, icon: ToolbarItemIcon, disabled?: boolean, showMore?: boolean }; export type ToolbarItemIcon = 'fa-download' | 'fa-share-alt' | 'fa-cloud' | 'fa-bars'; @Component({ selector: 'sam-ac...
import AddEditTokenModal from './AddEditTokenModal'; export default AddEditTokenModal;
import { Metric } from '../domain/metric' import { Statistics } from '../domain/statistics' export class MetricsHelper { static getDatabaseConnections (object: any): Metric { return MetricsHelper.getMetric(object, 'AWS/RDS.DatabaseConnections') } static getGcpDatabaseConnections (object: any): Metric { ...
/** * @license * Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { Injector } from '@angular/core'; import { NzDateConfig } from './date-con...
import { Color, DirectionalLight } from 'three' import { AudioComponent } from '../../audio/components/AudioComponent' import { Engine } from '../../ecs/classes/Engine' import { World } from '../../ecs/classes/World' import { defineQuery, getComponent } from '../../ecs/functions/ComponentFunctions' import { configureE...
import { IFilter } from "@temp/components/Filter"; import { UseNavigatorResult } from "@temp/hooks/useNavigator"; import { ActiveTab, Pagination, Search, Sort } from "@temp/types"; import { GetFilterQueryParam, getFilterQueryParams } from "../filters"; type RequiredParams = ActiveTab & Search & Sort & Pagination; typ...
import { SideBar } from './components/SideBar'; import { Content } from './components/Content'; import { MoviesProvider } from './context/MoviesContext'; import './styles/global.scss'; export function App() { return ( <MoviesProvider> <div style={{ display: 'flex', flexDirection: 'row' }}> <SideBar...
import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {RouterModule} from '@angular/router'; import {BreadCrumbsComponent} from './breadcrumbs.component'; @NgModule({ imports: [ CommonModule, RouterModule ], declarations : [ BreadCrumbsCompone...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-test-comp40', template: ` <div> <p>Hello {{ title }}</p> </div> `, styles: [] }) export class TestComp40Component implements OnInit { title: string = 'world'; ngOnInit() { this.title = "Luxembourg"; } }
import { Component, ViewChild } from '@angular/core'; import { ScreenOrientation } from '@ionic-native/screen-orientation'; import { SplashScreen } from '@ionic-native/splash-screen'; import { StatusBar } from '@ionic-native/status-bar'; import { Storage } from '@ionic/storage'; import { App, Events, ModalControl...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import React, { useEffect, useRef } from "react"; import ImageGallery from "react-image-gallery"; import { ImageGalleryModel } from "./model"; // eslint-disable-next-line import/no-internal-modules,...
import { ValidatorConstraint, ValidatorConstraintInterface, ValidationArguments } from "class-validator"; @ValidatorConstraint({ name: "IsEmail", async: false }) export class IsEmail implements ValidatorConstraintInterface { // tslint:disable-next-line:max-line-length private emailRegex = /^(([^<>()\[\]\\.,;...
/** * @file 蓝牙 */ declare namespace TBMiniProgram { interface IOpenBluetoothAdapterSuccessResult { /** * 是否支持 BLE */ readonly isSupportBLE: boolean } interface IOpenBluetoothAdapterFailResult { /** * - 12:蓝牙未打开 * - 13:与系统服务的链接暂时丢失 * - 14:未授权支付宝使用蓝牙功能 * - 15:未知错误 *...
import chalk from 'chalk'; import { writeFile, mkdir } from 'fs'; import type { Alias } from './types'; /** * Convert Windows backslash paths to slash paths: foo\\bar ➔ foo/bar * @param string * @returns */ export function slash(string: string) { return string.replace(/\\/g, '/') } /** * Split String on Sepe...
/* tslint:disable */ /* eslint-disable */ /** * Jellyfin API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 10.7.7 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech)...
import { WmtsProvider } from '@basemaps/geo'; import { BaseConfig } from './base.js'; export type ConfigProvider = WmtsProvider & BaseConfig;
import React from 'react'; import { isEqual, isString } from './jsUtils'; import { Nullable } from './tsUtils'; import { TableDefinition, FunctionDefinition } from './v1QueryUtils'; /** * Table/View utils ** */ export type TableRelationship = { rel_name: string; rel_def: { manual_configuration?: any; fore...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/** * Visit react-native-svg documentation for more details on styling * https://github.com/react-native-community/react-native-svg#common-props */ import React from 'react'; import { Icon } from '@ui-kitten/components'; export const IconInlineStylingShowcase = () => ( <Icon name='github' width={32} ...
import {IsOptional, Min} from 'class-validator'; import {TransferMultiTokenBatch} from './TransferMultiTokenBatch'; export class OneTransferMultiTokenBatch extends TransferMultiTokenBatch { @IsOptional() @Min(0) public fromShardID?: number; @IsOptional() @Min(0) public toShardID?: number; }
import React, { useEffect, useRef, useState } from 'react'; import { filter } from 'rxjs/operators'; import { COLORS, css, CssValue, FileUtil, Icons, MotionDraggable, MotionDraggableDef, MotionDraggableEvent, rx, t, useDragTarget, useResizeObserver, } from '../common'; export type DevImageDrag...
import Objectives from './objectives' /** * Objectives test */ describe('Objectives test', () => { test('Objectives is instantiable', () => { expect(new Objectives()).toBeInstanceOf(Objectives) }) })
import * as MarkdownIt from 'markdown-it' import type { PageFrontmatter, PageHeader } from '@vuepress/shared' import type { AnchorPluginOptions, AssetsPluginOptions, CodePluginOptions, EmojiPluginOptions, ExtractHeadersPluginOptions, HoistTagsPluginOptions, ImportCodePluginOptions, LinksPluginOptions, ...
import { GrammarRule } from "./GrammarRule"; import { PiClassifier, PiProperty } from "../../../languagedef/metalanguage"; import { getTypeAsString, Names } from "../../../utils"; import { ParserGenUtil } from "../ParserGenUtil"; import { RightHandSideEntry } from "./RHSEntries/RightHandSideEntry"; import { RHSPropEntr...
<TS language="hi" 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> <tra...