text
stringlengths
10
953k
import "quasar"; declare module "quasar" { type QuasarCapacitorTargets = "android" | "ios"; interface QuasarCapacitorConfiguration { /** If not present, will look for `package.json > capacitorId/cordovaId` */ id?: string; /** If not present, will look for `package.json > name` */ appName?: strin...
import { WithStyle } from '@medly-components/utils'; import React, { FC } from 'react'; import FlightIconSvg from '../../assets/Maps/flight_24px_rounded.svg'; import SvgIcon, { SvgIconProps } from '../../SvgIcon'; const Component: FC<SvgIconProps> = React.memo(props => { const { size, withHoverEffect, color, margi...
/** * @fileoverview This file is generated by the Angular 2 template compiler. * Do not edit. * @suppress {suspiciousCode,uselessCode,missingProperties} */ /* tslint:disable */ import * as import0 from '../../../../../../../app/view/components/testcase-eas/tree/add/eas_addPhase.component'; import * as import1 fro...
import { rename, unlink } from "fs/promises"; import type { NextApiRequest, NextApiResponse } from "next"; import { join } from "path"; import { FILE_DATA_DIR } from "../../../lib"; import { getUser } from "../../../lib/utils"; export default async function handler(req: NextApiRequest, res: NextApiResponse) { const u...
class AppException extends Error { public readonly code: number public readonly error: string constructor (code: number, message: string) { super(message) this.code = code this.error = message } } export default AppException
/* * Copyright (C) 2017-2019 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ import { BaseTechniqueParams, BufferAttribute, DecodedTile, Expr, ExtrudedPolygonTechnique, FillTechnique, Geometry, GeometryKind, Geome...
import React from 'react'; import { ActivityIndicator, View } from 'react-native'; export default class Loading extends React.Component { render() { return ( <View> <ActivityIndicator size="large" animating /> </View> ); } }
import { Field, InputType } from "type-graphql"; @InputType() export class SetReminder { @Field() private readonly description: string; @Field() private readonly maturityTime: Date; @Field() private readonly alertTime: Date; }
import { Api, ApiResolver, Client, InvokeApiOptions, InvokeApiResult, Manifest, Plugin, PluginModules, PluginPackage, QueryApiOptions, QueryApiResult, SchemaDocument, Uri, UriRedirect, resolveUri, } from "../"; describe("resolveUri", () => { const client = ( redirects: UriRedirect[]...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want to start measuring performance in yo...
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { ToastrService } from 'ngx-toastr'; import { User } from 'src/app/models/user'; import { AuthService } from 'src/app/services/auth.service'; import { ...
import { Component, State, Listen, h } from '@stencil/core'; import i18next, { initialLanguage, LANGUAGES } from '../../global/utils/i18n'; import { ROUTES, IS_DEV } from '../../global/constants'; import { IS_CHARITE } from '../../global/layouts'; import { TRACKING_IS_ENABLED } from '../../global/custom'; import setti...
import isNil from '.'; // 正确的测试用例 const correctCase = [null, undefined]; // 错误的测试用例 const wrongCase = [0, '', 'a', true, [], {}, ['a']]; describe('isNil', () => { it('正确的', () => { correctCase.forEach((item) => { expect(isNil(item)).toEqual(true); }); }); it('错误的', () => { wrongCase.forEach(...
import { IBase, setAttrForObject2 } from '../common'; import { inPlaceConvertToSaved, newEmptyBase } from '../Base'; import { NotTabSpaceId } from '../chromeSession/ChromeSession'; import produce from 'immer'; export interface Bookmark extends IBase { tabSpaceId: string; name: string; url: string; favIconUrl:...
import { Contract } from "@ethersproject/contracts"; import ERC20_ABI from "../abis/erc20"; import useContract from "./useContract"; export default function useTokenContract(tokenAddress?: string): Contract { return useContract(ERC20_ABI, tokenAddress); }
// ----- this file has been automatically generated - do not edit import { LocalizedText } from "node-opcua-data-model" import { UAString } from "node-opcua-basic-types" import { DTStructure } from "node-opcua-nodeset-ua/source/dt_structure" /** * | | | * |--...
import * as tf from '../../dist/tfjs.esm.js'; import { ConvParams, SeparableConvParams } from '../common'; import { depthwiseSeparableConv } from '../common/depthwiseSeparableConv'; import { DenseBlock3Params, DenseBlock4Params } from './types'; export function denseBlock3( x: tf.Tensor4D, denseBlockParams: Dense...
export { Container } from './Container'
<TS language="mr_IN" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>एक नवीन पत्ता तयार करा</translation> </message> <message> <source>&amp;New</source> <translation>&amp;नवा</translation> </message> ...
import './Item.scss'; import { ItemProps } from '../Models/ItemProps'; import { Button } from '../Button'; import { Favorite } from '../Favorite'; import { t } from '../../core'; export const Item = ({ item, handleAddToCart, setFavorite }: ItemProps) => { return <div className="item"> <div className="item__image...
import { StyledIcon, StyledIconProps } from '..'; export declare const FireExtinguisher: StyledIcon<any>; export declare const FireExtinguisherDimensions: { height: any; width: any; }; export { StyledIcon, StyledIconProps };
/* * Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. * * This is a generated file powered by the SAP Cloud SDK for JavaScript. */ export enum BoBoeTypes { bobt_Incoming = 'bobt_Incoming', bobt_Outgoing = 'bobt_Outgoing' }
export const countryList: { id: string; name: string; }[] = [ { id: 'AFG', name: 'Afghanistan' }, { id: 'ALA', name: 'Åland Islands' }, { id: 'ALB', name: 'Albania' }, { id: 'DZA', name: 'Algeria' }, { id: 'ASM', name: 'American Samoa' }, { id: 'AND', name: 'Andorra' }, { id: 'AGO', name: 'Angola' }, ...
import { find } from 'lodash' import { Post } from '../types' import { authors, posts } from '../data' export const queries = { posts: () => posts, } interface UpvotePostArgs { postId: number, } export const mutations = { upvotePost: (_: void, args: UpvotePostArgs) => { const { postId } = args const p...
import * as React from 'react'; import { StyleSheet, View, StyleProp, LayoutChangeEvent, TextStyle, ViewStyle, } from 'react-native'; import TouchableItem from './TouchableItem'; import { Scene, Route, NavigationState } from './types'; import Animated from 'react-native-reanimated'; type Props<T extends Ro...
// Type definitions for adone 0.6 // Project: https://github.com/ciferox/adone // Definitions by: am <https://github.com/s0m3on3>, Maximus <https://github.com/maxveres> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 /// <reference path="./adone.d.ts" /> /// <reference pat...
import VoilabPdfTable = require('..'); export = VoilabPdfTablePluginFitColumn; declare namespace VoilabPdfTablePluginFitColumn { interface VoilabPdfTablePluginFitColumnConf<T> { column?: keyof T; maxWidth?: number; } } interface VoilabPdfTablePluginFitColumn<T = any> { // tslint:disable-n...
import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { DataTablesModule } from 'angular-datatables'; import { ReactiveFormsModule } from '@angular/forms'; import { NgSelectModule } ...
/** * Created by Ivo Meißner on 28.07.17. */ import { getArgumentValues, } from 'graphql/execution/values'; import { ValidationContext, FragmentDefinitionNode, OperationDefinitionNode, FieldNode, FragmentSpreadNode, InlineFragmentNode, assertCompositeType, GraphQLField, isCompositeType, GraphQLCom...
import { Config } from "@stencil/core"; import builtins from "rollup-plugin-node-builtins"; import globals from "rollup-plugin-node-globals"; // https://stenciljs.com/docs/config export const config: Config = { outputTargets: [{ type: "www" }], globalScript: "src/global/app.ts", globalStyle: "src/global/app.css...
import React from "react"; import { View, Text, TouchableOpacity } from "react-native"; import { StyleSheet, lightTheme, darkTheme } from "../style"; export default function Toggle() { const isLight = StyleSheet.theme.name === "light"; const onPress = () => { const newTheme = isLight ? darkTheme : lightTheme;...
import { HttpException, HttpStatus, Injectable } from '@nestjs/common'; import { InjectModel } from '@nestjs/sequelize'; import * as bcrypt from 'bcryptjs'; import { User } from './users.model'; import { CreateUserDto } from './dto/create-user.dto'; import { RolesService } from '../roles/roles.service'; @Injectable() ...
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer } from "ethers"; import { Provider } from "@ethersproject/providers"; import type { IExtendedPriceAggregator } from "./IExtendedPriceAggregator"; export class IExtendedPriceAggregatorFactory { static...
import './customScriptOnLogout';
import {MessageCommandFactory, MessageType} from './MessageCommandFactory'; import {TeamGeneratorCommand} from './TeamGeneratorCommand'; export interface OnMessageCommandPayload { type: string | number; payload: DefaultMessagePayload; } export interface DefaultMessagePayload { sessionId: string; [key: string]...
import { deflateSync, inflateSync } from 'fflate'; const EPOCH = 1577836800; //2020-01-01T00:00:00 export const Serializer = { //ArrayBuffer: byte-array in physical memory: generic fixed-length container for binary data. // Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint3A...
import * as assert from 'assert'; import { arrayInsertAt, arrayRemoveAt, pureArraySet, pureArrayInsertAt, pureArrayRemoveAt, } from '../dist/main.js'; it('arrayInsertAt', () => { const a = [1, 2, 3]; const b = arrayInsertAt(a, 1, -1); assert.deepStrictEqual(a, [1, -1, 2, 3]); assert.strictEqual(b, un...
// *** 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 inputs from "../types/input"; import * as outputs from "../types/output"; import * as utilitie...
import { Observable } from '../../internal/Observable'; import { multicast } from '../../internal/patching/operator/multicast'; Observable.prototype.multicast = <any>multicast; declare module '../../internal/Observable' { interface Observable<T> { multicast: typeof multicast; } }
// Type definitions for eslint 7.28 // Project: https://eslint.org // Definitions by: Pierre-Marie Dartus <https://github.com/pmdartus> // Jed Fox <https://github.com/j-f1> // Saad Quadri <https://github.com/saadq> // Jason Kwok <https://github.com/JasonHK> // ...
import React, {createContext, useContext, useEffect, useState,useRef} from 'react'; import {Image, TouchableOpacity, StyleSheet, Platform, View, Text} from 'react-native'; import icons from '../assets/icons'; import RtcContext from '../../agora-rn-uikit/src/RtcContext'; import PropsContext from '../../agora-rn-uikit/sr...
import React from 'react'; import { Table } from 'antd'; import { useData } from '../../contexts/ContactContext'; import styles from './styles.module.scss'; const ContactTable: React.FC = () => { const { data, columns } = useData(); return <Table columns={columns} dataSource={data} className={styles.root} paginat...
import { UserService } from '@app/user/services/user.service'; // attempts to authenticate user if the token stored in the browser still exists export function appInitializer(userService: UserService) { return () => new Promise((resolve) => { userService.refreshToken().subscribe().add(resolve); }); }
import { logger, api } from './globals'; import * as colors from 'chalk'; const showArticle = (article: any): void => { const starStr = article.is_starred ? colors.magenta('starred') : 'no-starred'; const archStr = article.is_archived ? colors.magenta('archived') : 'no-arhived'; const urlStr = colors.grey(...
namespace $ { $mol_test( { 'convertion to primitives'() { var unit = new $mol_unit_money_usd( 5 ) $mol_assert_equal( unit.valueOf() , 5 ) $mol_assert_equal( ( unit as any ) * 2 , 10 ) $mol_assert_equal( unit + '' , '$5' ) $mol_assert_equal( `${unit}` , '$5' ) $mol_assert_equal( unit....
/// <reference path="base-component.ts" /> /// <reference path="../decorators/autobind.ts" /> /// <reference path="../models/project.ts" /> /// <reference path="../models/drag-drop.ts" /> namespace App { // ProjectItem Class export class ProjectItem extends Component<HTMLUListElement, HTMLLIElement> implements...
import React, { Component } from "react"; import ContentAdminPage from "Components/Admin/ContentAdminPage"; import { codelistEditor } from "Components/Editing/Editors/codelistEditor"; import { ToggleEditor } from "Components/Editing/ToggleEditor"; import { textEditor } from "Components/Editing/Editors/textEditor"; ex...
export const environment = { production: true, environment: $ENV.ENVIRONMENT, APIKeys: { } };
/* * Copyright (C) 2012 The Android Open Source Project * * 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...
// *** 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, enums } from "../types"; import * as utilities from "../utili...
import { IsDefined, IsEmail } from 'class-validator'; export class LoginBodyDto { @IsDefined() @IsEmail() email: string; @IsDefined() password: string; }
import { html, LitElement, PropertyDeclarations, TemplateResult, } from "lit-element"; import "@polymer/paper-button/paper-button"; import "@polymer/paper-card/paper-card"; import "@polymer/paper-toggle-button/paper-toggle-button"; // tslint:disable-next-line import { PaperToggleButtonElement } from "@polymer/p...
import { ModuleWithProviders, NgModule } from '@angular/core'; import { AnimationLoader } from '../animation-loader'; import { CacheableAnimationLoader } from './cacheable-animation-loader'; @NgModule() export class LottieCacheModule { static forRoot(): ModuleWithProviders<LottieCacheModule> { return { ng...
export interface IConfig { readonly host: string; readonly port: number; readonly expire_timeout: number; readonly alive_timeout: number; readonly key: string; readonly path: string; readonly concurrent_limit: number; readonly allow_discovery: boolean; readonly proxied: boolean | string; readonly cl...
version https://git-lfs.github.com/spec/v1 oid sha256:192ad9fac257a1058702b6b9fd0ac8b7f20d5e223e9943baae064307509dbf6e size 383332
import { connect } from 'react-redux'; import OneTimePasswordRegistrationView from '../../../views/OneTimePasswordRegistrationView/OneTimePasswordRegistrationView'; import { RootState } from '../../../reducers'; import { Dispatch } from 'redux'; import {to} from 'await-to-js'; import { generateTotpSecret, generateTotpS...
import { scaleLinear as d3ScaleLinear, scaleBand as d3ScaleBand, } from 'd3-scale'; import { ARGUMENT_DOMAIN, VALUE_DOMAIN, } from '../constants'; import { ScaleObject, FactoryFn, DomainInfo, NumberArray, DomainBounds, DomainItems, } from '../types'; /** @internal */ export const scaleLinear: FactoryFn = d3Scale...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Component, OnInit, ViewChild } from '@angular/core'; import { NgbModalRef, NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { faCalendar, faEnvelope } from '@fortawesome/free-solid-svg-icons'; import { faFacebook, faTwitter, faGooglePlus, faLinkedin } from '@fortawesome/free-brands-svg-icons'; @Compo...
import * as colors from 'colors'; import * as fs from 'fs'; import * as path from 'path'; export const checkDirectory = (directoryPath: string): void => { if (!fs.existsSync(directoryPath)) { directoryPath.split(path.sep) .reduce( (currentPath, folder) => { c...
import 'reflect-metadata'; import { Logger, LoggerService, LogLevelString } from '@mu-ts/logger'; import { SQSEventCondition } from './interfaces/SQSEventCondition'; import { Validation } from './interfaces/Validation'; import { SQSRoute } from './interfaces/SQSRoute'; const METADATA_KEY: string = '__mu-ts_sqs'; const...
import { NextApiRequest, NextApiResponse } from 'next'; import server from '../../../../../server.json'; const Api = (request: NextApiRequest, response: NextApiResponse) => { const { query } = request; let result; server.episodes.forEach((el, i) => { if (el.id === query.id) { result =...
import { Component, ElementRef, OnInit } from '@angular/core'; import * as $ from 'jquery'; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.css'] }) export class HomeComponent implements OnInit { constructor() { } ngOnInit() { } scrollToTarget(tar...
import { Box, Button, FormControlLabel, Switch, Typography } from "@material-ui/core"; import React = require("react"); import { connect, ConnectedProps } from "react-redux"; import { setAggregationAction } from "../../Ducks/AggregationDuck"; import { setHoverWindowMode, WindowMode } from "../../Ducks/HoverSettingsDuck...
/** * @license * Copyright 2020 Google LLC. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * Code distributed by Google as part of this project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ import {...
export { AwsSubscribe } from './aws-subscribe'; export { AwsAuth, protectResolversWithAuthRules } from './auth'
export const AbapFsCommands = { connect: "abapfs.connect", activate: "abapfs.activate", search: "abapfs.search", create: "abapfs.create", execute: "abapfs.execute", runInGui: "abapfs.runInGui", unittest: "abapfs.unittest", createtestinclude: "abapfs.createtestinclude", quickfix: "abapfs.quickfix", c...
import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn } from 'typeorm'; import { ObjectType, Field } from 'type-graphql'; @ObjectType() @Entity() export class Person { @Field() @PrimaryGeneratedColumn() id: number; @Field() @Column({ unique: true }) username: string...
export type Participant = string; export type Option = string; export default class Vote { protected participants: Set<Participant>; protected options: Set<Option>; public votes: Map<Participant, Option> = new Map<Participant, Option>(); public isClosed = false; protected results: Map<Option, number>; protected ...
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack"; import * as __aws_sdk_types from "@aws-sdk/types"; import * as _stream from "stream"; import { AssociateNode } from "../model/operations/AssociateNode"; import { InputTypesUnion } from "../types/InputTypesUnion"; import { OutputTypesUnion } from "...
import { Dispatch } from "redux"; import { ProductModel } from "../models"; import axios from 'axios'; import { ProductActionType } from "../action-types"; import { cansa } from "../../consts/Selector"; export interface ProductErrorAction { readonly type: ProductActionType.ON_PRODUCT_ERROR, payload: any } exp...
import React, {FC} from 'react'; const CompleteBountiesIcon: FC<{size?: number}> = ({size = 40}) => { return ( <svg width={size} height={size} viewBox="0 0 40 41" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clipPath="url(#completeBountiesClip0)"> <path d="M35.192 35.1045C34.1519 36...
import { BrowserHttpOptions as __HttpOptions__ } from "@aws-sdk/types"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * ConnectCustomKeyStoreInput shape */ export interface ConnectCustomKeyStoreInput { /** * <p>Enter the key store ID of the custom key store that you want to connect. To find the ID of a...
/* eslint-disable no-console */ import EColor from './enum/EColor'; class Logger { private _debug = true; constructor(private context: string, private color: EColor) {} private processMessage(message: any): string { if (typeof message === 'object') { return JSON.stringify(message); } return...
import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; /** * Generated class for the FavouritePage page. * * See https://ionicframework.com/docs/components/#navigation for more info on * Ionic pages and navigation. */ @IonicPage() @Component({ selector: ...
const currencyFormatter = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', minimumFractionDigits: 2 }); export const formatAsUsd = currencyFormatter.format; /** * Trims leading and trailing whitespace and line terminators and replaces all * characters after character 90 with an ellipsis. ...
import profileMapper from '../../src/utils/profile.utils'; describe('ProfileUtils', () => { describe('profileMapper', () => { test('should return a profile', () => { // Given const user = { username: 'RealWorld', bio: 'My happy life', image: null, followedBy: [], ...
import React, { useState, useEffect } from 'react'; import styled, { createGlobalStyle } from 'styled-components'; import { Link } from 'gatsby'; import { LinkGetProps } from '@reach/router'; import { switchProp } from 'styled-tools'; import { chevron_down } from '@manifoldco/icons'; import { base64 } from './Icon'; im...
import * as debug from "debug"; import { PreventIframe } from "express-msteams-host"; import { TurnContext, CardFactory, MessagingExtensionQuery, MessagingExtensionResult } from "botbuilder"; import { IMessagingExtensionMiddlewareProcessor } from "botbuilder-teams-messagingextensions"; <% if (messagingExtensionType =="...
import {Button, Classes, Colors, Dialog} from '@blueprintjs/core'; import * as React from 'react'; import styled from 'styled-components/macro'; import {copyValue} from 'src/DomUtils'; import {FontFamily} from 'src/ui/styles'; const CURRENT_ALERT_CHANGED = 'alert-changed'; interface ICustomAlert { body: React.Reac...
import { registerDecorator, ValidationOptions, ValidationArguments } from 'class-validator'; /** * Декоратор для проверки того, что целевое свойство - это массив уникальных объектов по значению * некоторого параметра, например, id * То есть массив уникальных объектов, где сравнение производится по значен...
import React, { ChangeEvent, FC, SelectHTMLAttributes, useCallback } from 'react' import styled, { css } from 'styled-components' import { isMobileSafari, isTouchDevice } from '../../libs/ua' import { Theme, useTheme } from '../../hooks/useTheme' import { FaSortIcon } from '../Icon' type Option = { value: string }...
export interface Props { name:string; title:string }
import Product from './Product'; import Coordinates from './Coordinates' import { runInThisContext } from 'vm'; export default class Order { constructor(products: Array<Product>= [] , coordinates: Coordinates, extra: String, payment: String){ this._products = products; this._coordinates = coordinat...
/** * @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 { logging } from '@angular-devkit/core'; import { Observable } from 'rxjs'; import { DelegateTree, Rule, Schem...
/* eslint-disable no-lonely-if */ /** * Legacy code. Should avoid to use if you are new to import these code. */ import React from 'react'; import warning from 'rc-util/lib/warning'; import TreeNode, { TreeNodeProps } from './TreeNode'; import { NodeElement, Key, DataNode, DataEntity, NodeInstance, FlattenNode, Dire...
/* * 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 { schema } from '@kbn/config-schema'; import { SAMLLoginStep } from '....
import React, {Component} from "react"; import {QueryRenderer, Environment} from "react-relay"; import {graphql} from "babel-plugin-relay/macro"; import {getEnvironment, QueryResult} from "../common/Transport"; import {User, Person} from "./Person"; import {PeopleQuery} from "../__generated__/PeopleQuery.graphql"; i...
// TypeScript, you make me sad. // https://github.com/Microsoft/TypeScript/issues/18756 interface Window { PointerEvent: typeof PointerEvent; Touch: typeof Touch; } interface PointerEvent { getCoalescedEvents(): PointerEvent[]; }
// TypeScript Version: 2.1 import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; export default class IoFlashOff extends React.Component<IconBaseProps, any> { }
declare module '@commitlint/lint' { interface WarnAndErr { level: number; valid: boolean; name: string; message: string; } interface CommitLintFn { (message: string, rules: Record<string, (number | string | string[])[]>): Promise<{ input: string; valid: boolean; errors: WarnA...
import { getGlobalClassNames, getTheme } from '@fluentui/style-utilities'; import type { IBaseFloatingSuggestionsStyles, IBaseFloatingSuggestionsStylesProps } from './FloatingSuggestions.types'; const GlobalClassNames = { root: 'ms-FloatingSuggestions', callout: 'ms-FloatingSuggestions-callout', }; export const g...
import React from 'react' import Typography from '@material-ui/core/Typography' import { makeStyles } from '@material-ui/core/styles' import { lang } from '../lib/Language' import { MSG } from '../messages' const useStyles = makeStyles({ root: { position: 'absolute', left: '2vmin', top: '60%', textAl...
import Database from "./Database"; import { LegacyFormat } from "./JetFormat"; import PageType, { assertPageType } from "./PageType"; import SysObject, { isSysObjectType, isSystemObject, SysObjectType } from "./SysObject"; import Table from "./Table"; const MSYS_OBJECTS_TABLE = "MSysObjects"; const MSYS_OBJECTS_PAGE =...
import 'any-observable/register/zen'; import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as jsYaml from 'js-yaml'; (window as any)['jsyaml'] = jsYaml; (process as any)['stdout'] = (process as any)['stderr'] = { isTTY: undefined, write: () => false,...
import { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { GlobalBaseurl } from 'app/config/baseUrl'; import { throwError } from 'rxjs'; import { catchError } from 'rxjs/operators'; @Injectable({ providedIn: 'root', }) export class CardServ...
import { Types } from ".."; /** * OData */ export declare class OData { /*********************************************************************************************************************************/ /*********************************************************************************************************...
import { NewAppPage } from './app.po'; describe('new-app App', () => { let page: NewAppPage; beforeEach(() => { page = new NewAppPage(); }); it('should display message saying app works', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('app works!'); }); });
import { Module } from '@nestjs/common'; import { CompanyController } from './company.controller'; import { CompanyService } from './company.service'; import { Company } from './models/company.model'; import { TypegooseModule } from 'nestjs-typegoose'; @Module({ imports: [TypegooseModule.forFeature([Company])], co...
import type { FC } from 'react' import Image from 'next/image' import { Manager } from 'types/manager' import loader from 'utils/img-loader' type Props = { manager: Manager selected: boolean onClick: () => void } const ManagerCheckbox: FC<Props> = ({ manager, selected, onClick }) => ( <button className={...