text stringlengths 10 953k |
|---|
import {Config} from "../../src/config";
import {MemoryFile} from "../../src/files/memory_file";
import {Issue} from "../../src/issue";
import {Registry} from "../../src/registry";
import {ParserError} from "../../src/rules/parser_error";
import {Version} from "../../src/version";
import {testRule} from "./_utils";
imp... |
import { Component, NgZone } from '@angular/core';
import { DemoSharedNativescriptOpenDefaultApp } from '@demo/shared';
import {} from '@convosco/nativescript-open-default-app';
@Component({
selector: 'demo-nativescript-open-default-app',
templateUrl: 'nativescript-open-default-app.component.html',
})
export class N... |
import { AfterContentInit, ContentChildren, Directive, ElementRef, Optional, QueryList, Renderer } from '@angular/core';
import { NgControl } from '@angular/forms';
import { Config } from '../../config/config';
import { BaseInput } from '../../util/base-input';
import { assert } from '../../util/util';
import { Segmen... |
import React from 'react'
import { createAuthClient } from './authClients'
import type {
AuthClient,
SupportedAuthTypes,
SupportedAuthClients,
SupportedUserMetadata,
} from './authClients'
export interface CurrentUser {
roles?: Array<string>
}
export interface AuthContextInterface {
/* Determining your c... |
export * from './view-updater'; |
export * from './rating.component'; |
export interface GetPersonalInfo_ServerResponse {
lastName?: string
name?: string
patronymic?: string
birthDate?: string
phoneNumber?: string
email?: string
docType?: string
docSeries?: string
docNumber?: string
docDate?: string
docOrganization?: string
taxNumber?: string... |
import { render, screen } from "@testing-library/react";
import { ComponentMask } from "components/ComponentMask";
describe("ComponentMask", () => {
test("component renders", () => {
render(<ComponentMask />);
const renderedComponentMask = screen.getByTestId("component-mask");
expect(renderedComponentM... |
import { KeyValue } from '@angular/common';
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'search',
})
export class SearchPipe implements PipeTransform {
transform(
items: KeyValue<string, unknown>[],
filter: string,
): KeyValue<string, unknown>[] {
return items.filter(item =>
... |
import {runIfMain} from "../../deps/mocha.ts";
import "../../deps/chai.ts";
import {Connection} from "../../../src/connection/Connection.ts";
import {closeTestingConnections, createTestingConnections, reloadTestingDatabases} from "../../utils/test-utils.ts";
import {MysqlDriver} from "../../../src/driver/mysql/MysqlDri... |
import { Injectable } from "@angular/core";
// If you import a module but never use any of the imported values other than as TypeScript types,
// the resulting javascript file will look as if you never imported the module at all.
import { ipcRenderer, webFrame, remote, BrowserWindow } from "electron";
import * as chil... |
import { Module } from '@nestjs/common';
import { JwtStrategy } from 'src/auth/strategy';
import { MealController } from './meal.controller';
import { MealService } from './meal.service';
@Module({
controllers: [MealController],
providers: [MealService, JwtStrategy],
})
export class MealModule {} |
import { Networkish } from "@ethersproject/networks";
import { JsonRpcProvider } from "./json-rpc-provider";
export declare type ExternalProvider = {
isMetaMask?: boolean;
host?: string;
path?: string;
sendAsync?: (request: {
method: string;
params?: Array<any>;
}, callback: (error: ... |
import { IObjectOf, SEMAPHORE } from "@thi.ng/api";
import { diffArray, DiffMode, diffObject } from "@thi.ng/diff";
import {
equiv as _equiv,
equivArrayLike,
equivMap,
equivObject,
equivSet
} from "@thi.ng/equiv";
import { HDOMImplementation, HDOMOpts } from "./api";
const isArray = Array.isArray;
... |
import { Request, Response } from 'express';
import { getRepository } from 'typeorm';
import orphanageView from '../views/orphanages_view';
import * as Yup from 'yup';
import Orphanage from '../models/Orphanage';
export default {
async index(request: Request, response: Response) {
const orphanagesRepository = g... |
import { baqend, model } from 'baqend'
import { AsyncFactory } from './_AsyncFactory'
import { setQueued, setFailed } from './_Status'
import { TestBuilder } from './_TestBuilder'
import { TestParams } from './_TestParams'
/**
* Creates multi comparisons, which are comparisons with multiple runs.
*/
export class Mul... |
import { TypeormBlueprint } from '@entity-factory/typeorm';
import { Comment } from '../entities/Comment.entity';
import { Post } from '../entities/Post.entity';
import { User } from '../entities/User.entity';
export class PostBlueprint extends TypeormBlueprint<Post> {
constructor() {
super();
thi... |
// Copyright 2017-2021 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DropdownOptions } from '../../util/types';
import { ApiPromise } from '@polkadot/api';
export default function createOptions (api: ApiPromise): DropdownOptions {
return Object
.keys(api... |
import React, { FC } from 'react';
import classNames from 'classnames';
import { TdDividerProps } from './type';
import useConfig from '../_util/useConfig';
import withNativeProps, { NativeProps } from '../_util/withNativeProps';
export interface DividerProps extends TdDividerProps, NativeProps {}
const defaultProps ... |
import { ProductoService } from './producto.service';
import { Body, Controller, Delete, Get, Param, ParseIntPipe, Post, Put, UseGuards, UsePipes, ValidationPipe} from '@nestjs/common';
import { ProductoDto } from './dto/producto.dto';
@Controller('producto')
export class ProductoController {
constructor(private ... |
import * as React from 'react';
import { Container } from './styles';
export const H4 = ({ children, ...props }: any) => (
<Container {...props}>
{children}
</Container>
);
export default H4; |
import { AxiosRequestConfig } from './types'
import xhr from './xhr'
import { bulidURL } from './helpers/url'
import { transformRequest } from './helpers/data'
function axios(config: AxiosRequestConfig): void {
processConfig(config)
xhr(config)
}
function processConfig (config: AxiosRequestConfig): void {
confi... |
// Copyright 2018 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/**
* @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 { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import { Schema as Applicatio... |
export * from './error-snack.service'; |
import {spawn} from "cross-spawn"
import which from "npm-which"
interface Constructor<T = unknown> {
new (...args: never[]): T
}
interface EnhancedPrismaClientAddedMethods {
$reset: () => Promise<void>
}
interface EnhancedPrismaClientConstructor<TPrismaClientCtor extends Constructor> {
new (...args: Constructo... |
import { FormKitValidationMessages } from '@formkit/validation'
/**
* Here we can import additional helper functions to assist in formatting our
* language. Feel free to add additional helper methods to libs/formats if it
* assists in creating good validation messages for your locale.
*/
import { sentence as s, li... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. 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... |
export default function deepFreeze<T extends object>(object: T): Readonly<T>; |
export * from './create-subject'
export * from './generate-channel-id'
export * from './pick'
export * from './mutable-ref'
export * from './host-to-url'
export * from './append-url-params'
export * from './logger'
export * from './create-message-handler'
export * from './create-dispatch'
export * from './remove-childe... |
declare module "*.svg";
declare module "*.png";
declare const Lute: ILute;
interface ILuteRender {
renderLinkDest: (node: {
TokensStr: () => string;
__internal_object__: {
Parent: {
Type: number,
},
}
}, entering: boolean) => [stri... |
import { TestBed, inject } from '@angular/core/testing';
import { VisPatrimonioService } from './vis-patrimonio.service';
describe('VisPatrimonioService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [VisPatrimonioService]
});
});
it('should be created', inject([VisPatri... |
import React, { useEffect, useState } from "react";
import { FaWhatsapp } from "react-icons/fa";
import { FiClock, FiInfo } from "react-icons/fi";
import { Map, Marker, TileLayer } from "react-leaflet";
import { useParams } from "react-router-dom";
import { Sidebar } from "../components";
import { mapIcon } from "../u... |
export * from './AdminSlider'; |
export * from './NativeStruct';
export * from './MethodInfo';
export * from './StaticMethodInfo';
export * from './UnknownObject'; |
export async function reactify(svgString: string) {
const res = await fetch(
'https://us-central1-svg-gobbler.cloudfunctions.net/SVGR',
{
headers: {
'content-type': 'text/html',
},
method: 'post',
body: svgString,
}
)
const json = await res.text()
return json
} |
import { track } from "Artsy/Analytics"
import * as Schema from "Artsy/Analytics/Schema"
import { isString } from "lodash"
import React, { Component } from "react"
import { renderToStaticMarkup } from "react-dom/server"
import styled from "styled-components"
import { DisplayProps } from "styled-system"
import truncate ... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lt" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About concoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="... |
import { Component } from '@angular/core';
import { Discount } from './core';
import { Observable } from 'rxjs';
import { DiscountService } from './discount.service';
@Component({
selector: 'app-discount',
template: `
<div class="container columns">
<div *ngIf="discounts$ | async as discounts" class="col... |
export * from './extend_lock_request_payload';
export * from './fetch_and_lock_request_payload';
export * from './finish_external_task_request_payload';
export * from './handle_bpmn_error_request_payload';
export * from './handle_service_error_request_payload'; |
import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/sequelize';
import { NewsDto } from './dto/news.dto';
import { News } from './models/news.model';
@Injectable()
export class NewsService {
constructor(@InjectModel(News) private newsRepository: typeof News) {}
public async creat... |
// *** 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";
/**
* Get information about a Yandex Compute Disk Placement gr... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
// tslint:disable:max-classes-per-file
import { ThemeIcon, TreeItem, TreeItemCollapsibleState, Uri } from 'vscode';
import { Commands } from '../../common/constants';
import { getIcon } from '../../common/ut... |
import { AlertOptions, alertController } from '@ionic/core/components';
import { IonAlert as IonAlertCmp } from '@ionic/core/components/ion-alert.js';
import { createControllerComponent } from './createControllerComponent';
export const IonAlert = /*@__PURE__*/ createControllerComponent<AlertOptions, HTMLIonAlertElem... |
export const PROJECT_NAME = 'Skulls In Love';
export const PAGE_SIZE = 10; |
/**
* @file IconPetrol 汽油
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper('IconPetrol', (props: ISvgIconProps) => (
'<?xml version="1.0" encoding="UTF-8"?>'
+ '<svg w... |
import {
CreateApolloClient,
UserAuthTicket
} from '@kibocommerce/graphql-client';
import { apiClientFactory, ApiClientExtension } from '@vue-storefront/core';
import getProduct from './api/getProduct';
import getRelatedProducts from './api/getRelatedProducts';
import searchProducts from './api/searchProducts';
im... |
import * as React from "react";
import "./footer.css";
export interface FooterProps {}
export interface FooterState {}
class Footer extends React.Component<FooterProps, FooterState> {
constructor(props: FooterProps) {
super(props);
this.state = {};
}
render() {
return (
... |
export const bluetooth16: string; |
import express from 'express';
import { ApiError } from '../../../common/api.error';
import { ResponseHandler } from '../../../common/response.handler';
import { uuid } from '../../../domain.types/miscellaneous/system.types';
import { MedicalConditionService } from '../../../services/clinical/medical.condition.service'... |
/// <reference path="jqwidgets.d.ts" />
import { Component, Input, Output, EventEmitter, ElementRef, forwardRef, OnChanges } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
const noop = () => { };
declare let $: any;
export const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any... |
export interface UserInfo {
id: number;
path: string;
name: string;
image: string;
gender: string;
birthday: string;
job: string;
address: string;
description?: string;
sign_up_date: string;
} |
export class RoboFanDelay {
constructor(
public Min: number = 0,
public Max: number = 0,
) {}
} |
import {Reporter} from '../reporter';
import {EventTarget} from '../EventTarget';
import {ReporterManager, ReporterManagerInstance} from './ReporterManager';
export class Reportable<T = never> extends EventTarget<T> {
static IGNORE_FUNCTION_MEMBER: Array<PropertyKey> = ['toString', 'addEventListener', 'toJSON'];
s... |
export interface ThresholdOptions {
color: string
value: number
priority?: number
} |
import {
Backdrop,
Dialog,
DialogTitle,
DialogContent,
DialogActions,
Button,
rgbToHex,
} from '@material-ui/core';
import React, { useCallback, useEffect, useState } from 'react';
import { ChromePicker } from 'react-color';
import { COLOR_CHANGE_EVENT, DEFAULT_CURRENT_COLOR } from '../../constants';
import { Co... |
export const SERVER_PATTERN_NAME = "apps"; |
export type ArenaConfigObject = {
Width: number,
Height: number,
};
export type EnvironmentConfigObject = {
Width: number,
Height: number,
NumRows: number,
NumCols: number,
StartX: number,
StartZ: number,
};
export type GameConfig = {
Arena: ArenaConfigObject,
Environment: EnvironmentConfigObject,... |
import * as Bus from './internal/bus'
import { parseStack } from './internal/helpers/parseStack'
let isRegistered = false
let stackTraceLimit: number | undefined = undefined
function onUnhandledError(ev: ErrorEvent) {
const error = ev?.error
if (!error || !(error instanceof Error) || typeof error.stack !== 'strin... |
import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {Http} from '@angular/http';
import {Messages, StorageUtilities, Utilities} from '../../providers';
import {DEFAULT_IMG} from '../';
@IonicPage()
@Component({
selector: 'page-chat',
templateUrl: 'chat... |
import React, { FC } from "react";
import AlpsLogoSquareProps from "./types";
const AlpsLogoSquare1: FC<AlpsLogoSquareProps> = ({
width = "auto",
height = "auto",
style,
}) => (
<svg
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
width={width}
height={height}
v... |
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react'
import SnippetsOutlinedSvg from 'infra-design-svgs/lib/asn/SnippetsOutlined';
import AntdIcon, { AntdIconProps } from '../components/AntdIcon';
const SnippetsOutlined = (
props: AntdIconProps,
ref: React.MutableRefObject... |
import { SIZE } from '../../src/constants';
import { heightOf, widthOf } from '../../src/utils/family';
import { Gender, RelData, Size } from '../../src/types';
const X = 40;
const uP = 4; // unit padding
const nP = 10; // node padding
const FONT_SIZE = 10;
interface IRenderOptions {
root: string;
debug: boolean;... |
// DateTime definition object
import {isNumber, isObject} from 'vega-util';
import * as log from './log';
import {TIMEUNIT_PARTS} from './timeunit';
import {duplicate, isNumeric, keys} from './util';
/**
* @minimum 1
* @maximum 12
* @TJS-type integer
*/
export type Month = number;
/**
* @minimum 1
* @maximum 7... |
export interface User {
id: string;
name: string;
email: string;
passwordHash: string;
}
export interface UserPayload {
name: string;
email: string;
password: string;
} |
import { IConfig } from 'umi-types';
// ref: https://umijs.org/config/
const config: IConfig = {
treeShaking: true,
plugins: [
// ref: https://umijs.org/plugin/umi-plugin-react.html
['umi-plugin-react', {
antd: true,
dva: true,
dynamicImport: { webpackChunkName: true },
title: 'Umi... |
// 按需加载依赖
// object
export * from 'xe-utils/assign'
export * from 'xe-utils/objectEach'
// export * from 'xe-utils/lastObjectEach'
export * from 'xe-utils/objectMap'
export * from 'xe-utils/merge'
// array
export * from 'xe-utils/map'
export * from 'xe-utils/some'
// export * from 'xe-utils/every'
export * from 'xe-u... |
import type { VFC } from "react";
import type { LabelProps } from "@patternfly/react-core";
import { Label } from "@patternfly/react-core";
import type { AclResourceType } from "../types";
import "./ResourceTypeLabel.css";
export type SolidLabelProps = {
variant: AclResourceType;
};
type Variant = {
labelColor: L... |
import { AmiChart } from "./entities/ami-chart.entity"
import { AmiChartCreateDto, AmiChartUpdateDto } from "./dto/ami-chart.dto"
import { InjectRepository } from "@nestjs/typeorm"
import { Repository } from "typeorm"
import { QueryOneOptions } from "../shared/services/abstract-service"
import { NotFoundException } fro... |
export * from './locale-protocol';
export * from './locale-manager'; |
<TS language="uk" 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>
... |
import * as React from 'react';
import MetricResultClassification from './metricResultClassification';
import { ITableColumn } from 'kayenta/layout/table';
import { IMetricResultsTableRow } from './metricResultsList';
export const metricResultsColumns: ITableColumn<IMetricResultsTableRow>[] = [
{
label: 'metric ... |
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { SharedModule } from '../shared/shared.module';
import { ComponentsModule } from '../wechat/components/components.module';
import { HomeComponent } from './home/home.component';
import { routes } from './wechat.route';
@N... |
import { NgModule } from '@angular/core';
import { NgxEchartsModule } from 'ngx-echarts';
import { ThemeModule } from '../../@theme/theme.module';
import { InicioComponent } from './inicio.component';
@NgModule({
imports: [
ThemeModule,
NgxEchartsModule,
],
declarations: [
InicioComponent,
],
})
... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { StoryEditorComponent } from './story-editor.component';
import { StepDefinitionBackground } from '../model/StepDefinitionBackground';
import { Story } from '../model/Story';
import { of } from 'rxjs';
import { StepType } from '../model/... |
global._singletons = global._singletons || {}
export const singleton = <T>(id: string, factory: () => T): T => {
if (!global._singletons[id]) {
global._singletons[id] = factory()
}
return global._singletons[id]
}
export const singletonAsync = <T>(
id: string,
factory: () => Promise<T>,
singleton = tru... |
import { DirStructure, RewriteKeySource, RewriteKeyContext } from '../core/types'
import { LanguageId } from '../utils'
import { Framework } from './base'
class UI5Framework extends Framework {
id = 'ui5'
display = 'SAP UI5'
detection = {
packageJSON: [
'@ui5/cli',
],
}
languageIds: LanguageI... |
import { useEffect } from 'react';
import { useFirstMountState } from '../useFirstMountState';
/**
* Hook that ignores the first invocation (e.g. on mount). The signature is exactly the same as the `useEffect` hook.
*/
export const useUpdateEffect: typeof useEffect = (effect, deps) => {
const isFirstMount = useF... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import axios, {AxiosResponse} from "axios";
export class Httpclient {
private axiosInstance = axios.create({
baseURL: "http://localhost:9200",
headers: {
"Content-type": "application/json"
}
});
public post(path: string, data: any): Promise<AxiosResponse> {
retu... |
import { TestBed } from '@angular/core/testing';
import { SkyAgGridFixtureModule } from '../../fixtures/ag-grid.module.fixture';
import { SkyCellRendererValidatorParams } from '../../types/cell-renderer-validator-params';
import { ValidatorOptions } from '../../types/validator-options';
import { SkyAgGridCellRendererVa... |
/**
* @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 {CompileDirectiveMetadata, CompileIdentifierMetadata, CompileInjectableMetadata, CompileNgModuleMetadata, Com... |
/*
* <<
* Davinci
* ==
* Copyright (C) 2016 - 2017 EDP
* ==
* 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 b... |
import { TemplateAssertions } from '@aws-cdk/assertions';
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
import { Alarm, Metric } from '../lib';
describe('Metrics', () => {
test('metric grant', () => {
// GIVEN
const stack = new cdk.Stack();
const role = new iam.Role(stack... |
import React, { memo, useCallback } from 'react'
import { X } from 'react-feather'
import { Trans, useTranslation } from 'react-i18next'
import { Atom, PrimitiveAtom, useAtom } from 'jotai'
import { useAtomValue } from 'jotai/utils'
import { Text } from 'rebass/styled-components'
import styled from 'styled-components/m... |
/***************************************************** COPYRIGHT *******************************************************
* *
* Copyright 2021 Braden Hitchcock ... |
import {Module} from '@nestjs/common';
import {AppController} from './app.controller';
import {TypeOrmModule} from '@nestjs/typeorm';
import {Connection, EntityManager} from 'typeorm';
import {ArticlesModule} from './modules/articles/articles.module';
import {Articles} from './modules/articles/articles.entity';
@Modu... |
import express, { Router } from 'express'
import DBController from '../database/DBController'
import { DatabaseType, Collection, CollectionItem } from '../database/types'
import { RequestMethods, CRUDRouter as CRUDRouterInterface } from './types'
const defaultAllowedMethods = [
RequestMethods.GET,
RequestMetho... |
import * as React from 'react'
import { CourseImage, Wrapper } from './styledComponents'
import { SideBarMenu } from 'common/components/loaders'
import { injectIntl } from 'react-intl'
import { withRouter } from 'react-router-dom'
import InjectedIntlProps = ReactIntl.InjectedIntlProps
import messages from './messages'
... |
/*
* 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 { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
import * ... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './shared/components/home/home.component';
const appRoutes: Routes = [
{ path: '', component: HomeComponent },
{ path: 'menu', loadChildren: './modules/menu/menu.module#MenuModule' }... |
// @target: es5
// @lib: esnext
// @filename: F1.ts
async function * f1() {
}
// @filename: F2.ts
async function * f2() {
const x = yield;
}
// @filename: F3.ts
async function * f3() {
const x = yield 1;
}
// @filename: F4.ts
async function * f4() {
const x = yield* [1];
}
// @filename: F5.ts
async function... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Request } from 'express';
import MockExpressRequest from 'mock-express-request';
import { User } from 'src/api/models/User';
import { AuthService } from '../../../src/auth/AuthService';
import { LogMock } from '../lib/LogMock';
import { RepositoryMock } from '../lib/RepositoryMock';
import {env} from '../../.... |
import { Injectable } from '@nestjs/common';
@Injectable()
export class LineService {} |
import * as bip32path from 'bip32-path';
/**
* Class to specify An account used to query the ledger.
*/
enum SupportedCoin {
/**
* @see https://lisk.io
*/
LISK = 134
}
/**
* Defines an Account to be used when communicating with ledger
*/
export class LedgerAccount {
// tslint:disable variable-name
p... |
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { SubscriptionModule } from './subscription/subscription.module';
import { APP_FIL... |
import {MusicSheet} from "../MusicSheet";
import {SourceMeasure} from "../VoiceData/SourceMeasure";
import {Fraction} from "../../Common/DataObjects/Fraction";
import {InstrumentReader} from "./InstrumentReader";
import {IXmlElement} from "../../Common/FileIO/Xml";
import {Instrument} from "../Instrument";
import {ITex... |
interface LogMessage {
message: string
context: object
}
export default class Log {
static debug(log: string | LogMessage) {
if (isComplexLog(log)) {
printComplexLog("debug", log)
}
else {
print("debug", log);
}
}
static error(log: string | ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.