text stringlengths 10 953k |
|---|
import { SampleData } from 'src/sample/domain/sample.domain';
export class CreateDummyApiRequest {
readonly name: string;
readonly comment?: string;
readonly note?: string;
readonly isValid?: boolean;
constructor({
name,
comment,
note,
isValid,
}: {
name: string;
comment?: string... |
export * from './EventDispatcher'; |
import { WidgetProps } from "widgets/BaseWidget";
import {
PropertyPaneConfig,
ValidationConfig,
} from "constants/PropertyControlConstants";
import { get, isObject, isUndefined, omitBy } from "lodash";
import { FlattenedWidgetProps } from "reducers/entityReducers/canvasWidgetsReducer";
import { EvaluationSubstitut... |
import { MessageAttachment } from 'discord.js';
import {
calcPercentOfNum,
calcWhatPercent,
increaseNumByPercent,
objectKeys,
reduceNumByPercent,
round,
Time,
uniqueArr
} from 'e';
import { CommandStore, KlasaMessage, KlasaUser } from 'klasa';
import { Bank, Monsters } from 'oldschooljs';
import { MonsterAttrib... |
import { EventlogOptions, TodayUseDurationRes } from '../types/eventlog';
/**
* 获取当前登陆用户今天在线时长
* @param {EventlogOptions<TodayUseDurationRes>} [options]
* @returns {Promise<TodayUseDurationRes>}
*/
export default function getTodayUseDuration(options?: EventlogOptions<TodayUseDurationRes>): Promise<TodayUseDurationR... |
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
import { promisify } from "./_util/_util_promisify.ts";
import { callbackify } from "./_util/_util_callbackify.ts";
import { ERR_INVALID_ARG_TYPE, ERR_OUT_OF_RANGE, errorMap } from "./_errors.ts";
import * as types from "./_util/_util_types.ts";... |
import styled from 'styled-components/native';
import { Animated } from 'react-native';
import { initialWindowSafeAreaInsets } from 'react-native-safe-area-context';
export const Container = styled(Animated.View)`
justify-content: center;
position: absolute;
top: ${initialWindowSafeAreaInsets.top + 10}px;
left... |
import { Observable } from 'rxjs';
import { mergeScan } from 'rxjs/internal-compatibility';
(Observable as any).prototype.mergeScan = mergeScan;
declare module 'rxjs/internal/Observable' {
interface Observable<T> {
mergeScan: typeof mergeScan;
}
} |
/// <reference path="../definetelyTyped/knockout.d.ts" />
/// <amd-dependency path="promise"/>
/// <amd-dependency path="ojs/ojlistview"/>
/// <amd-dependency path="ojs/ojoffcanvas"/>
/// <amd-dependency path="ojs/ojinputnumber"/>
/// <amd-dependency path="ojs/ojbutton"/>
/// <amd-dependency path="ojs/ojmodule"/>
/// <... |
export class Product {
constructor(
public id: String,
public title: String,
public description: String,
public due_date: String,
) {}
} |
/**
* Copyright (c) Meta Platforms, Inc. and 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 {CertificateExchangeMedium} from '../utils/CertificateProvider';
import {
ClientDescription,
ClientQuer... |
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient";
import { DescribeGameSessionPlacementInput, DescribeGameSessionPlacementOutput } from "../models/models_0";
import {
deserializeAws_json1_1DescribeGameSessionPlacementCommand,
serializeAws_json1_1DescribeGameSes... |
import QbForm from './QbForm.vue'
export default QbForm |
import {expect} from './header';
import {countPrimes} from '../src';
describe('countPrimes', () => {
describe('x < 2', () => {
it('must produce 0 count', () => {
expect(countPrimes(1.999)).to.eql(0);
expect(countPrimes(1)).to.eql(0);
expect(countPrimes(0)).to.eql(0);
... |
import { Controller, Get, Param, Post, Body } from '@nestjs/common';
import { TodoService } from './todo.service';
import TodoDto from './todo.dto';
@Controller('todos')
export class TodosController {
constructor(private readonly todoService: TodoService) {}
@Get()
getTodos(): any {
return this.todoService.... |
/**
* An interface that defines an access information to be queried.
* When you start a method chain with `AccessControl#can` method, you're
* actually building this query object which will be used to check the access
* permissions.
* @interface
*/
interface IQueryInfo {
/**
* Indicates a single or... |
export * from './concentration-failed-dialog.component'; |
import { Avatar } from "@chakra-ui/avatar";
import { Box, Heading, Text } from "@chakra-ui/layout";
import { useState } from "react";
import { BsChatSquare, BsHeart, BsHeartFill } from "react-icons/bs";
import { ExtendedPostSchema } from "../models/post";
import { useAppSelector } from "../redux/ReduxStore";
import { M... |
version https://git-lfs.github.com/spec/v1
oid sha256:c3cec2ba530e5bb01f348539868b4db13b286a40b74afe3f6c14e405c8217beb
size 119192 |
import React, { Component, ReactNode, SyntheticEvent } from 'react';
import {
Dropdown as PfDropdown,
DropdownToggle,
DropdownPosition,
DropdownDirection,
} from '@patternfly/react-core';
import { OneOf } from '../../typeUtils';
import './Dropdown.scss';
export { DropdownDirection, DropdownPosition } from '@pa... |
/* eslint-env jest */
import * as RPCTypes from '../../constants/types/rpc-gen'
import * as Constants from '../../constants/provision'
import * as Tabs from '../../constants/tabs'
import * as ProvisionGen from '../provision-gen'
import * as RouteTreeGen from '../route-tree-gen'
import HiddenString from '../../util/hidd... |
import { IStandardHeader } from './set/standard_header';
import { IBidCompRspGrp } from './set/bid_comp_rsp_grp';
export interface IBidResponse {
BidID?: string;
ClientBidID?: string;
StandardHeader?: IStandardHeader;
BidCompRspGrp?: IBidCompRspGrp[];
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DeckSideNavComponent } from './deck-side-nav.component';
describe('DeckSideNavComponent', () => {
let component: DeckSideNavComponent;
let fixture: ComponentFixture<DeckSideNavComponent>;
beforeEach(async(() => {
TestBed.con... |
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { GaugeSettings, GaugeProperty, GaugeEvent, GaugeEventType, GaugeStatus, GaugeActionStatus } from '../../_models/hmi';
import { Utils } from '../../_helpers/utils';
// declare var SVG: any;
@Component({
selector: 'gauge-base',... |
import React from "react";
function Send() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
fill="currentColor"
version="1.1"
viewBox="0 0 24 24"
>
<path d="M2 21l21-9L2 3v7l15 2-15 2v7z"></path>
</svg>
);
}
export default Send; |
import {
ChangeDetectionStrategy,
Component,
Input,
OnDestroy,
OnInit,
Optional,
} from '@angular/core';
import {
CmsSearchBoxComponent,
PageType,
RoutingService,
WindowRef,
} from '@spartacus/core';
import { Observable, of, Subscription } from 'rxjs';
import { filter, map, switchMap, tap } from 'rx... |
import { _AvailabilityZone } from "./_AvailabilityZone";
import { Structure as _Structure_ } from "@aws-sdk/types";
export const _Subnet: _Structure_ = {
type: "structure",
required: [],
members: {
SubnetIdentifier: {
shape: {
type: "string"
}
},
SubnetAvailabilityZone: {
sh... |
import { Router } from "express";
import { isLoggedIn } from "../session";
import { BadRequest } from "../errors";
const router = Router();
router.get("/stats", (req, res) => {
if (!isLoggedIn(req)) {
throw new BadRequest("Client must be logged in to access /stats");
}
res.json({
ip:
req.ip === ... |
import { Component } from '@angular/core';
import {FormGroup, FormControl, ValidationErrors} from "@angular/forms";
function ssnValidator(control: FormControl): ValidationErrors | null{
const value: string = control.value || '';
const valid = value.match(/^\d{9}$/);
return valid ? null : {ssn: {description: 'SS... |
import {
arg,
Command,
format,
HelpError,
isError,
getSchemaPath,
logger,
isCi,
getCommandWithExecutor,
} from '@prisma/sdk'
import path from 'path'
import chalk from 'chalk'
import prompt from 'prompts'
import { Migrate } from '../Migrate'
import { ensureDatabaseExists, getDbInfo } from '../utils/ens... |
import { idToUuid } from 'notion-utils'
import { ReturnGetAllPostsParams} from './getAllPosts'
export default function getAllPageIds(collectionQuery: ReturnGetAllPostsParams['collectionQuery'], viewId?: string): string[] {
const views = Object.values(collectionQuery)[0]
let pageIds = []
if (viewId) {
const v... |
import { Routes } from '@angular/router';
import { TosComponent } from './tos/tos.component';
import { OmnibusComponent } from './omnibus/omnibus.component';
import { CodeOfConductComponent } from './code-of-conduct/code-of-conduct.component';
import { AboutOffprintComponent } from './about-offprint/about-offprint.com... |
import {normalizeFilter} from '../../src/utils/FilterUtils';
describe('FilterUtils', () => {
it('Should normalize all filters', () => {
const filterToNormalize = {
NaME: 'appName',
'variant-id': 'var id',
TYPE: 'android',
'push-application-id': 'pushappid',
developer: 'test',
};... |
import { _call } from "../../utility/function/_call";
export type FunctionKeyType = keyof typeof Function;
describe('_call', () => {
test('_call should change the `this` when processing', () => {
const origin = {
name: 'ddzy',
};
const expected = {
name: 'ddzy',
arg0: 0,
arg1: 1,... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import throat from 'throat';
import type {JestEnvironment} from '@jest/environment';
import {
AssertionResu... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SysModuleComponent } from './module/module.component';
import { SysUserComponent } from './user/user.component';
const routes: Routes = [
{ path: 'module', component: SysModuleComponent },
{ path: 'user', c... |
import * as React from 'react';
const DataGridHeaderColumnResizer: React.SFC<{
columnResizing?: boolean;
columnResizerLeft?: number;
}> = ({ columnResizing = false, columnResizerLeft = 0 }) =>
columnResizing ? (
<div data-column-resizer-track>
<div data-column-resizing style={{ left: columnResizerLeft ... |
import {IHttpClientSession, IProgress, IRequest, IResponse} from "../httpClient";
import {Stream} from "../stream";
export class MockHttpClientSession implements IHttpClientSession {
public readonly promise: Promise<IResponse>;
public readonly onUploadProgress = new Stream<IProgress>();
public readonly onDownloa... |
import Database from '../db';
import Express from 'express';
export module Majors {
export const getAllMajors = async (req: Express.Request, res: Express.Response) => {
await Database.connectToMongo();
res.type("json");
Database.majors.find({}).toArray().then((result) => res.send(JSON.strin... |
export function preventDefault(fn: () => void) {
return (event: React.SyntheticEvent<any>) => {
event.preventDefault()
fn()
}
} |
import { InjectionToken } from '@angular/core';
import { Voucher } from '../../../model/cart.model';
import { Converter } from '../../../util/converter.service';
export declare const CART_VOUCHER_NORMALIZER: InjectionToken<Converter<any, Voucher>>; |
import { Pipe, PipeTransform } from '@angular/core';
import { Translations } from './translations.service';
@Pipe({
name: 'trans',
pure: true,
})
export class TransPipe implements PipeTransform {
constructor(private i18n: Translations) {}
transform(value: string, values?: object): string {
ret... |
import { GenericResponse } from './shared';
export type GetLatestResponse = GenericResponse; |
import { expect } from 'chai';
/**
* 同步测试
*/
describe('test add', () => {
it('1 + 1 should be equal to 2', () => {
expect(1 + 1).to.equal(2);
});
});
/**
* 异步测试
*/
describe('test async add', () => {
it('2 + 2 should be equal to 4', (done) => {
setTimeout(() => {
expect(2 + 2).to.equal(4);
... |
/* tslint:disable:no-unused-variable */
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {DebugElement} from '@angular/core';
import {DashboardComponent} from './dashboard.component';
describe('DashboardComponent', () => {
let component: Da... |
/**
* @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 * as ts from 'typescript';
export function aliasTransformFactory(exportStatements: Map<string, Map<string, [... |
<TS language="sr@latin" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klikni desnim tasterom za uređivanje adrese ili oznake</translation>
</message>
<message>
<source>Create a new address</sourc... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { AppRoutingModule } from './app-routing.module';
import { JwtInterceptor, ErrorInterceptor } from './helpers';
import { AppComponent }... |
<TS language="lv_LV" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Izveidot jaunu adresi</translation>
</message>
<message>
<source>&New</source>
<translation>&Jauns</translation>
</message>
... |
import marked from "marked";
import React, { useState } from "react";
import Note from "./typings/Note";
interface NoteElementProps {
note: Note;
editNote: (id: string, body: string) => void;
deleteNote: (id: string) => void;
}
const NoteElement: React.VFC<NoteElementProps> = ({ note, editNote, deleteNote... |
import Vue from 'vue'
import VueRouter, {RouteConfig} from 'vue-router'
import Home from '../pages/Home.vue'
Vue.use(VueRouter)
const routes: Array<RouteConfig> = [
{
path: '/',
name: 'Home',
component: Home
},
{
path: '/about',
name: 'About',
// route level... |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import {MainPage} from './src/MainPage';
import {Settings} from "./src/models/Settings";
import {DatGuiWidget} from "./src/DatGuiWidget";
const app = document.createElement('div');
document.body.appendChild(app);
const settings = new Settings();
... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import {
Widget
} from 'phosphor/lib/ui/widget';
import {
ISanitizer
} from '../sanitizer';
/**
* The rendermime interface.
*/
export
interface IRenderMime extends RenderMime {}
/**
* A composite renderer... |
/*************************************************************
*
* Copyright (c) 2017 The MathJax Consortium
*
* 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.ap... |
<TS language="fa" 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>
<transl... |
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {FunctionComponent} from "react";
import {Control } from "../../type/control";
import {OutGroup} from "../../api/type";
import {faBolt, faStopwatch, faToggleOn} from "@fortawesome/free-solid-svg-icons";
import styles from './control-info.module.sas... |
/**
* Returns the pokemon list with its information
* @returns All the pokemon info
*/
export const retrievePokemonList = () => {
return fetch('http://localhost:3001/api/v1/pokemon').then((res) => res.json());
};
/**
* Retrieves the pokemon information from the API introducing its name
* @param name the pokemon... |
import "./assets/antd.css";
import "./assets/FormBuilder.css";
import { Button, Modal } from "antd";
import React, { useState } from "react";
import { Quiz, QuizzBuilder } from "./App";
import ReactDOM from "react-dom";
function DevStart() {
const [formdata, setFormData] = useState([]);
const [modalVisibility, set... |
// Type definitions for Node.js 10.5.x
// Project: http://nodejs.org/
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>
// DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
// Parambir Singh <https://github.com/parambirs>
// Christian ... |
/* tslint:disable:no-unused-variable */
import * as React from 'react';
/* tslint:enable:no-unused-variable */
import { Breadcrumb } from './Breadcrumb';
import { IRenderFunction } from '../../Utilities';
export interface IBreadcrumb {
}
export interface IBreadcrumbProps extends React.Props<Breadcrumb> {
/**
* ... |
import { Component } from "./Component";
/**
* <code>CommonScript</code> 类用于创建公共脚本类。
*/
export class CommonScript extends Component {
/**
* @inheritDoc
* @override
*/
get isSingleton(): boolean {
return false;
}
constructor() {
super();
}
/**
* 创建后只执行一次
* 此方法为虚方法,使用时重写覆盖即可
*/
onAwake(): vo... |
import { Element } from "typings/html";
import { Component } from "components/component";
export interface SelectAPI {
select(option: Component, nth: number): Promise<void>;
select(option: Element, nth: number): Promise<void>;
isSelected(): Promise<boolean>;
getSelectedIndex(): Promise<number>;
} |
import { Component } from '@angular/core';
import { NavController, LoadingController } from 'ionic-angular';
import { HomeService } from './home.service';
import { HomeModel } from "./home.model";
import { ProductDetailPage } from "../product-detail/product-detail";
import { ShopDetailPage } from "../shop-detail/shop... |
import { Injectable, Logger } from '@nestjs/common';
import { InjectModel } from 'nestjs-typegoose';
import * as mongoose from 'mongoose';
import { ReturnModelType } from '@typegoose/typegoose';
import { User } from './types/User';
import { Company } from './types/Company';
import { NotificationChannel } from './models... |
import { InMemoryDBEntity } from "@nestjs-addons/in-memory-db";
import { IsDateString, IsNotEmpty, IsString } from "class-validator";
import { Ticket } from "src/ticket/entities/ticket.entity";
export class Event implements InMemoryDBEntity{
id: string;
tickets: Ticket[];
@IsString()
@IsNotEmpty()
e... |
declare module 'svelte-state-renderer' {} |
import React, { Component } from 'react'
import { COM_TYPE_MOCKS } from 'src/mocks/Selectors'
import { Field } from 'react-final-form'
import { InputField } from 'src/components/Form/Fields'
import { Button } from 'src/components/Button'
import { Modal } from 'src/components/Modal/Modal'
import Text from 'src/component... |
import { IVizConfEditorProps } from "../../../type_defs/vizComp/IVizConfEditorProps";
import { ILinePlotSeriesConfig } from "./ILinePlotSeriesConfig";
export interface ILinePlotSeriesConfEditorProps extends IVizConfEditorProps {
value?: ILinePlotSeriesConfig["customConfig"]
onChange?: (v: ILinePlotSeriesConfig[... |
export * from './canary';
export * from './code';
export * from './schedule';
// AWS::Synthetics CloudFormation Resources:
export * from './synthetics.generated'; |
import { ConfigService } from '@nestjs/config';
import { DefaultDeserializer } from 'v8';
import { EnvVariables } from './environment/env-variables.enum';
export const databaseConfigFactory = (configService: ConfigService) => ({
type: configService.get(EnvVariables.DATABASE_TYPE),
host: configService.get(EnvVariab... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-lavoratore-layout',
templateUrl: './lavoratore-layout.component.html',
styleUrls: ['./lavoratore-layout.component.scss']
})
export class LavoratoreLayoutComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import fs from 'fs'
import path from 'path'
import readline from 'readline'
import { Worker } from 'worker_threads'
export default (filepath: string, outpath: string) =>
new Promise(resolve => {
let cache: string[] = []
let result = ''
const worker = new Worker(path.join(__dirname, 'worker.js'))
wor... |
import '../styles/global.scss';
import styles from '../styles/app.module.scss';
import { Header } from "../components/Header";
import { Player } from '../components/Player'
import{ PlayerContext, PlayerContextProvider} from '../contexts/PlayerContext';
import { useState } from 'react';
function MyApp({ Component, p... |
/* This file is generated by createIcons.js any changes will be lost. */
import { IconType } from '../createIcon';
declare const CameraRetroIcon: IconType;
export default CameraRetroIcon; |
import fs from "fs"
import { ethers, Wallet } from "ethers"
import { assertExists, assertIsNonEmptyString, keccak256 } from "../../utils"
import { AddToIpfs } from "../../utils/add.to.ipfs"
// uploads signed agent manifest to ipfs and returns ipfs reference
export type UploadManifest = (imageReference: string, private... |
import { Buffer } from "./buffer";
import { stdin } from "./files";
import { TextEncoder, TextDecoder } from "./text_encoding";
import { Reader } from "./io";
export type XevalFunc = (v: string) => void;
async function writeAll(buffer: Buffer, arr: Uint8Array): Promise<void> {
let bytesWritten = 0;
while (bytesWr... |
/**
* Data Safe API
* APIs for using Oracle Data Safe.
* OpenAPI spec version: 20181201
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you un... |
import * as _ from 'lodash'
import * as fs from 'fs'
import * as Steps from 'screener-runner/src/steps'
import * as keys from 'screener-runner/src/keys'
const DEFAULT_THEMES: ScreenerThemes = ['teams']
Steps.prototype.resetExternalLayout = function resetExternalLayout() {
return this.executeScript(`window.resetExte... |
import { by, element } from 'protractor';
export class UsuarioPage{
private linkRegistrarUsuario = element(by.id('linkRegistrar usuario'));
private linkListarUsuarios= element(by.id('linkListar usuarios'));
async clickLinkRegistrarUsuario() {
await this.linkRegistrarUsuario.click();
}
... |
import * as React from 'react';
import { TextField } from '~/text-field';
import { Autocomplete } from '~/autocomplete';
function Grouped_() {
const options = top100Films.map((option) => {
const firstLetter = option.title[0].toUpperCase();
return {
firstLetter: /[0-9]/.test(firstLetter) ? '0-9' : first... |
import { MonoTypeOperatorFunction, SchedulerLike } from '../types';
/**
* Asynchronously subscribes Observers to this Observable on the specified {@link SchedulerLike}.
*
* With `subscribeOn` you can decide what type of scheduler a specific Observable will be using when it is subscribed to.
*
* Schedulers control ... |
import { DbIconDefinition } from "@digibearapp/digibear-common-types";
declare const dbArrowBendDownLeftBadge: DbIconDefinition;
export default dbArrowBendDownLeftBadge; |
import add from './add';
import getAll from './getAll';
import getOne from './getOne';
import update from './update';
import deleteXatGrupTancat from './delete';
export {
add,
getAll,
getOne,
update,
deleteXatGrupTancat
}; |
/* tslint:disable */
/* eslint-disable */
/**
* KubeVirt API
* This is KubeVirt API an add-on for Kubernetes.
*
* The version of the OpenAPI document: 1.0.0
* Contact: kubevirt-dev@googlegroups.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-ge... |
import { Peripheral } from "@abandonware/noble";
import compareVersion from "compare-versions";
import { IBLEAbstraction } from "../interfaces";
import { LPF2Hub } from "./lpf2hub";
import * as Consts from "../consts";
import Debug = require("debug");
const debug = Debug("movehub");
/**
* The MoveHub is emitted ... |
import { css, Global } from "@emotion/react";
import emotionReset from "emotion-reset";
import palette from "./palette";
const globalStyle = css`
${emotionReset}
* {
box-sizing: border-box;
}
body {
font-family: Noto Sans, Noto Sans KR, sans-serif;
color: ${palette.black};
}
a {
text-dec... |
import {runIfMain} from "../../../../deps/mocha.ts";
import {expect} from "../../../../deps/chai.ts";
import {closeTestingConnections, createTestingConnections, reloadTestingDatabases} from "../../../../utils/test-utils.ts";
import {Connection} from "../../../../../src/connection/Connection.ts";
import {Post} from "./e... |
/**
* quantimodo
* We make it easy to retrieve and analyze normalized user data from a wide array of devices and applications. Check out our [docs and sdk's](https://github.com/QuantiModo/docs) or [contact us](https://help.quantimo.do).
*
* OpenAPI spec version: 5.8.112511
*
*
* NOTE: This class is auto generate... |
import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";
import { TestBed, async } from "@angular/core/testing";
import { Platform } from "@ionic/angular";
import { SplashScreen } from "@ionic-native/splash-screen/ngx";
import { StatusBar } from "@ionic-native/status-bar/ngx";
import { AppComponent } from "./app.compo... |
import { MaterialModule } from './material/material.module';
import { ToastrModule } from 'ngx-toastr';
import { CommonModule } from '@angular/common';
import { HttpClient, HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser'... |
import { Message, Data, Transaction, Wallet } from '../src/index'
import { Address } from '../src/wallet'
const { MsgSend } = Message
const { Coin } = Data
const { PrivateKey } = Wallet
describe('Transaction', () => {
const coin = new Coin(100000, 'uband')
const msgSend = new MsgSend(
Address.fromAccBech32('b... |
declare namespace Jymfony.Component.Config {
export class FileLocatorInterface {
public static readonly definition: Newable<FileLocatorInterface>;
/**
* Returns a full path for a given file name.
*
* @param name The file name to locate
* @param currentPath The cu... |
import {
Encoder,
Decoder,
EventSigner,
EventStreamSerdeProvider,
Provider
} from "@aws-sdk/types";
import { EventStreamMarshaller } from "./EventStreamMarshaller";
/** NodeJS event stream utils provider */
export const eventStreamSerdeProvider: EventStreamSerdeProvider = (options: {
utf8Encoder: Encoder;
... |
import { Test } from '@nestjs/testing';
import * as bcrypt from 'bcryptjs';
import { UserRepository } from './user.repository';
import { AuthCredentialsDto } from './dto/auth-credentials.dto';
import {
ConflictException,
InternalServerErrorException,
} from '@nestjs/common';
import { User } from './user.entity';
... |
/** ------------------------------------------------------
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
* -------------------------------------------------------
*/
/* tslint:disable */
/* eslint-disable */
export class CreateUserInput {
username: string;
email: string;
password: string;
}
e... |
/// <reference types="node"/>
import EventEmitter = require('events');
import {Except} from 'type-fest';
import Conf = require('conf');
declare namespace ElectronStore {
type Schema = Conf.Schema;
type Options<T> = Except<
Conf.Options<T>,
'configName' | 'projectName' | 'projectVersion' | 'projectSuffix'
> & {... |
export * from './create-question.dto';
export * from './question.model';
export * from './response-question';
export * from './update-question.dto'; |
import { Provide } from '@midwayjs/decorator';
import { InjectEntityModel } from '@midwayjs/orm';
import { Repository } from 'typeorm';
import Post from '../entities/Post.entity';
import { PostCreateInput, PostUpdateInput } from '../graphql/post.type';
@Provide()
export class PostService {
@InjectEntityModel(Post)
... |
export * from './qualifications.component'; |
import {
IExecuteFunctions,
} from 'n8n-core';
import {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
segmentApiRequest,
} from './GenericFunctions';
import {
groupFields,
groupOperations,
} from './GroupDescription';
import {
identifyFields,
identifyOpe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.