text stringlengths 10 953k |
|---|
import { Either } from "./Either";
import Right from "./Right";
export const left = <L, A>(l: L): Either<L, A> => {
return new Left(l);
};
export default class Left<L, A> {
readonly value: L;
constructor(value: L) {
this.value = value;
}
isLeft(): this is Left<L, A> {
return true;
}
isRight()... |
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.14
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class m... |
import * as React from 'react';
// FIXME upgrading redux types is causing many errors at this time
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
import { useDispatch, useSelector } from 'react-redux';
import { Link } from 'react-router-dom';
import { sortable } from '@patternfly/react-table... |
/**
* Copyright 2020 Goldman Sachs
*
* 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 ... |
"use strict";
import {define, initMethod, inject, injectFactoryMethod, singleton} from '../../../../index';
import {BaseManager} from "./baseManager";
import {Manager4} from "./manager4";
@define()
@singleton()
export class Manager7 extends BaseManager {
@inject() manager4: Manager4;
protected _initCount = ... |
'use strict'
import { stackExec, mapFailureToFriendlyMessage } from './stack'
const EXECUTABLE_NAME = 'floskell'
const firstLine = (lines: string) => lines.split('\n', 1)[0]
export const getFloskellVersion = (cwd: string) =>
stackExec(EXECUTABLE_NAME, ['--version'], {
cwd,
}).bimap(mapFailureToFrien... |
import * as React from "react";
import classNames from "classnames";
import { columnIndexToLabel } from "hot-formula-parser";
import { useContextSelector } from "use-context-selector";
import * as Types from "./types";
import * as Actions from "./actions";
import * as Selections from "./selections";
import context from... |
import { NumberExt } from '../../util'
import { Point, Rectangle } from '../../geometry'
import { EdgeView } from '../../view/edge'
export interface PaddingOptions {
padding?: NumberExt.SideOptions
}
export function getPointBBox(p: Point) {
return new Rectangle(p.x, p.y, 0, 0)
}
export function getPaddingBox(opt... |
// Auto-generated via `yarn axiasolar-types-from-defs`, do not edit
/* eslint-disable */
/* eslint-disable sort-keys */
import type { DefinitionsTypes } from '../../types';
export default {
/**
* Lookup3: frame_system::AccountInfo<Index, pallet_balances::AccountData<Balance>>
**/
FrameSystemAccountInfo: {
... |
export const isNullOrUndefined = function isNullOrUndefined (
val: any
): boolean {
return val === null || val === undefined
} |
import { Injectable } from '@angular/core';
import {
HttpClient,
HttpErrorResponse,
} from '@angular/common/http';
import {
User,
UserJson,
} from '@app/models/User';
import {
Room,
RoomJson,
} from '@app/models/Room';
import {
Message,
MessageJson,
} from '@app/models/Message';
... |
import { Structure as _Structure_ } from "@aws-sdk/types";
export const DuplicateRequest: _Structure_ = {
type: "structure",
required: [],
members: {
message: {
shape: {
type: "string"
}
}
},
exceptionType: "DuplicateRequest"
}; |
import React, { FC } from 'react';
import { Icon, IconInterface } from "@redesign-system/ui-core";
export const ArrowUpDownBoldOutlineIcon: FC<IconInterface> = function ArrowUpDownBoldOutlineIcon({
className,
...propsRest
}) {
const classNames = `ArrowUpDownBoldOutlineIcon ${className}`;
... |
import { SCALAR_TYPES } from './EntityFactory';
import { EntityData, EntityMetadata, EntityProperty, FilterQuery, AnyEntity } from '../typings';
import { Utils, ValidationError } from '../utils';
import { ReferenceType } from './enums';
export class EntityValidator {
constructor(private strict: boolean) { }
vali... |
/*
Copyright (C) 2017 Red Hat, 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 ... |
import { SecureDomPipe } from './secure-dom.pipe';
describe('SecureDomPipe', () => {
it('create an instance', () => {
const pipe = new SecureDomPipe();
expect(pipe).toBeTruthy();
});
}); |
import { errors, ObjectUtils, SyntaxKind } from "@ts-morph/common";
import { CodeBlockWriter } from "../../../codeBlockWriter";
import { getRangeWithoutCommentsFromArray, insertIntoParentTextRange, verifyAndGetIndex } from "../../../manipulation";
import { Structure } from "../../../structures";
import { Constructor } ... |
import { HoverMerged } from '@sourcegraph/codeintellify/lib/types'
import { flatten } from 'lodash'
import { forkJoin, Observable } from 'rxjs'
import { map } from 'rxjs/operators'
import { Definition, Location, TextDocumentDecoration } from '../../../shared/src/api/protocol/plainTypes'
import { ExtensionsControllerPro... |
// imports.
import { ServicePrompt } from 'lib/console/compose/builder/prompts';
import * as types from 'lib/console/compose/builder/prompts/types';
// Class RedisPrompt.
export class RedisPrompt extends ServicePrompt {
// service / question name.
public name: string = 'Redis';
// service slug (lowercase, normal... |
import { Test, TestingModule } from '@nestjs/testing';
import { ConfigModule } from '../../config/config.module';
import { UpdateModule } from '../update.module';
import { NginxService } from './nginx.service';
describe('NginxService', () => {
let service: NginxService;
beforeEach(async () => {
const module: ... |
import {TestBed} from '@angular/core/testing';
import {Injectable} from '@angular/core';
import {of as observableOf} from 'rxjs';
import {AuthenticatedOrganizationGuardService} from './authenticated-organization-guard.service';
import {Router} from '@angular/router';
import {AdministratorOrganizationDataService} from ... |
import { runTestFor } from './helper';
test('should handle imports from externals (deox)', () => {
const result = runTestFor('deox.ts', {
imports: ['deox'],
});
expect(result).toBe(`declare module "test" {
export const ACTION: "ACTION";
export const action1: (<_T>(...args: Array<any>) => {
type: "AC... |
import {ZipOperator} from './zip';
import {Observable} from '../Observable';
/**
* @param project
* @return {Observable<R>|WebSocketSubject<T>|Observable<T>}
* @method zipAll
* @owner Observable
*/
export function zipAll<T, R>(project?: (...values: Array<any>) => R): Observable<R> {
return this.lift(new ZipOper... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { IDiceRollerController } from "./controller";
/**
* Render an IDiceRollerController into a given div as a text character, with a button to roll it.
* @param diceRoller - The dice roller to be rendered
* ... |
import {
BgColorsOutlined,
CreditCardOutlined,
LayoutOutlined,
LockOutlined,
SafetyOutlined,
DownloadOutlined,
} from "@ant-design/icons";
import { Row, Typography } from "antd";
import React from "react";
import FeatureCard from "./FeatureCard";
import Container from "../layout/Container";
import { gutter } from... |
/*
* 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 { i18n } from '@kbn/i18n';
import d3 from 'd3';
import { difference, m... |
import { Box, Flex, Input } from '..'
import { IInput } from '../atoms/Input'
import { COMMON, CommonProps } from '../../global'
import styled from 'styled-components'
interface IIconInput extends IInput {
before?: React.ReactNode
after?: React.ReactNode
}
const IconInputBase = ({ before, after, ...props }: IIcon... |
import Joi, { StringSchema } from '@hapi/joi';
import mongoose from 'mongoose';
interface Root extends Joi.Root {
objectId(): StringSchema;
}
export default Joi.extend((joi) => {
return {
type: 'objectId',
base: joi.string(),
messages: {
objectId: 'needs to be a valid Objec... |
import { Component, OnDestroy, OnInit } from '@angular/core';
import { HttpResponse } from '@angular/common/http';
import { DatePipe } from '@angular/common';
import { ActivatedRoute, Router } from '@angular/router';
import { JhiAlertService, JhiParseLinks } from 'ng-jhipster';
import { ITEMS_PER_PAGE } from 'app/shar... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const RiTaxiLine: IconType; |
import { BellOutlined } from '@ant-design/icons'
import { Badge, Spin, Tabs } from 'antd'
import useMergedState from 'rc-util/es/hooks/useMergedState'
import React from 'react'
import classNames from 'classnames'
import type { NoticeIconTabProps } from './NoticeList'
import NoticeList from './NoticeList'
import HeaderD... |
interface PropType$Primitive {
name:
| 'string'
| 'number'
| 'boolean'
| 'bool'
| 'int'
| 'float'
| 'any'
| 'void'
| 'Object'
| 'String'
| 'node'
| 'object'
| 'element'
| 'any'
| 'array'
| 'Element'
| 'element'
| 'Element<any>'
| 'Function'
| 'Node'
| 'ComponentType<object>';
... |
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
const cssnano = require("cssnano");
import CoreAPI from "../../CoreAPI";
import { isProductionEnv, isDevelopmentEnv } from "../../utils/environment";
export default (api: CoreAPI)... |
import { RestResolver } from '../../../../lib/server'
import { SongAPIDefinition } from '../../../shared'
import { Locals, RequestMeta } from '../types'
export class SongResolver extends RestResolver<
SongAPIDefinition,
RequestMeta,
Locals
> {
public async createLocals({
requestMeta,
}: {
fnArgs: any... |
import { IQueryResult, $$, l } from 'coveo-search-ui';
import { createSandbox, SinonSandbox, SinonStub } from 'sinon';
import { Mock, Fake } from 'coveo-search-ui-tests';
import { CopyToClipboard, ICopyToClipboardOptions } from '../../../src/components/CopyToClipboard/CopyToClipboard';
describe('CopyToClipboard Result... |
import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import { transformArguments } from './EVAL_RO';
describe('EVAL_RO', () => {
testUtils.isVersionGreaterThanHook([7]);
it('transformArguments', () => {
assert.deepEqual(
transformArguments('return K... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type { IERC20, IERC20Interface } from "../../../token/erc20/IERC20";
import type { Provider } from "@ethersproject/providers";
import { Contract, Signer, utils } from "ethers";
const _abi = [
{
inputs: [],
name... |
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="da" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About OduwaCoin</source>
<translation>Om OduwaCoin</translation>
</message>
<message>
<locati... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ky" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Mavro</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3... |
export * from './UIMediaCard';
export type { UIMediaCardProps } from './types'; |
import { CodePipelineClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodePipelineClient";
import { ListPipelineExecutionsInput, ListPipelineExecutionsOutput } from "../models/models_0";
import {
deserializeAws_json1_1ListPipelineExecutionsCommand,
serializeAws_json1_1ListPipelineExecutionsCom... |
// This is grabbed from source code of https://beta.openai.com/tokenizer?view=bpe
export default bpeRegex; |
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanDeactivate, RouterStateSnapshot } from '@angular/router';
import { MemberEditAccountComponent, MemberEditProfileComponent } from '@settings/components';
@Injectable({ providedIn: 'root' })
export class PreventUnsavedChangesGuard implements... |
export const c_dual_list_selector__list_item_row_BackgroundColor: {
"name": "--pf-c-dual-list-selector__list-item-row--BackgroundColor",
"value": "#fff",
"var": "var(--pf-c-dual-list-selector__list-item-row--BackgroundColor)"
};
export default c_dual_list_selector__list_item_row_BackgroundColor; |
import { validateLastmod, validatePriority } from '../validation'
describe('validateLastmod', () => {
describe('valid', () => {
it('2020-10-10', () => {
expect(validateLastmod('2020-10-10')).toBe(true)
})
})
describe('invalid', () => {
it('202-1-1', () => {
expect(validateLastmod('202-1-... |
import './form-control.css';
declare const _default: {
"formControl": "pf-c-form-control",
"modifiers": {
"success": "pf-m-success",
"expanded": "pf-m-expanded",
"icon": "pf-m-icon",
"warning": "pf-m-warning",
"search": "pf-m-search",
"calendar": "pf-m-calendar",
"clock": "pf-m-clock",
... |
import { GatsbyConfig } from "gatsby"
export default {
siteMetadata: {
title: `Publication-as-a-Website i18n Starter`,
description: `Kick off your next PaaW project with this basic starter.`,
author: `@vnLab1`,
siteUrl: `http://vnlab.filmschool.lodz.pl/`,
},
plugins: [
`gatsby-plugin-react-he... |
import React, { useCallback, useEffect, useState } from 'react'
import { SCircularMonogram } from './styles'
interface CircularMonogramProps {
fullString: string
}
const CircularMonogram: React.FC<CircularMonogramProps> = ({ fullString }) => {
const [monogram, setMonogram] = useState('')
const createMonogram = us... |
import {
WebGLRenderer as WebGL
} from 'three';
export default class WebGLRenderer extends WebGL{
constructor() {
super({
antialias: true
});
this.setVisualization();
this.toRender();
}
private setVisualization(): void {
this.setPixelRatio(window.de... |
import { DataSourcePlugin } from '@grafinsight/data';
import { GrafInsightDatasource } from './datasource';
import { QueryEditor } from './components/QueryEditor';
import { GrafInsightQuery } from './types';
import { GrafInsightAnnotationsQueryCtrl } from './annotation_ctrl';
export const plugin = new DataSourcePlugin... |
import * as React from "react";
import {PluginManager} from "../PluginManager";
import {Job} from "../shell/Job";
import {Link} from "../utils/Link";
import {join} from "path";
import {colors} from "../views/css/colors";
PluginManager.registerPrettyfier({
prettify: (job: Job): React.ReactElement<any> => {
return... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
import * as E from 'fp-ts/lib/Either';
import { Account, CreateAccountParams } from './account.entity';
import { hashPassword } from '@shopon/shared/domain';
describe('Account', () => {
describe('create', () => {
let data: CreateAccountParams;
beforeEach(async () => {
const password = 'Str0ngP@ssW0rd... |
import { GUIEditor } from "../index";
var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
if (typeof globalObject !== "undefined") {
(<any>globalObject).BABYLON = (<any>globalObject).BABYLON || {};
(<any>globalObject).BABYLON.GuiEditor = GUIEdit... |
import { CustomLocale } from "../types/locale";
export declare const Croatian: CustomLocale;
declare const _default: {
ar?: CustomLocale | undefined;
at?: CustomLocale | undefined;
az?: CustomLocale | undefined;
be?: CustomLocale | undefined;
bg?: CustomLocale | undefined;
bn?: CustomLocale | un... |
import { ThemeColorGenericState } from '../_generic';
/**
* @public
*/
export declare type ThemeColorButtonModeKey = 'default' | 'ghost' | 'bleed';
/**
* @deprecated
* @public
*/
export declare type ThemeColorButtonState = ThemeColorGenericState;
/**
* @public
*/
export interface ThemeColorButtonStates {
ena... |
export { default as valudateNotNull } from './validateNotNull.util';
export { default as runPromise } from './runPromise.util'; |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { EmpresasModule } from './empresas/empresas.module';
import { VentasModule } from './ventas/ventas.module';
import { ProductosModule } from './productos/productos.module';
import { PersonasModule } from './personas/persona... |
import { basename, dirname, extname, join, resolve } from 'path';
import {
isImportClause,
isImportDeclaration,
isImportSpecifier,
isTypeOnlyImportOrExportDeclaration,
Node,
Program,
SourceFile,
TransformationContext,
Transformer,
TransformerFactory,
visitEachChild,
visitNode,
} from 'typescript... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React, {useCallback, useEffect, useState} from 'react';
import {useDispatch, useSelector} from 'react-redux';
import {get, getInt} from 'mattermost-redux/selectors/entities/preferences';
import {Glo... |
/// <reference path="../Map.ts"/>
class MapJsonDecoder{
private rootMap:Map<any>;
private dataString:string;
constructor(dataString:string) {
this.rootMap = new Map<any>('rootMap');
this.dataString = dataString;
}
public decode():Map<any>{
this.parseStringToMap(this.dataSt... |
import { TatumKlaytnSDK } from '@tatumio/klaytn'
import { REPLACE_ME_WITH_TATUM_API_KEY } from '@tatumio/shared-testing-common'
const klaytnSDK = TatumKlaytnSDK({ apiKey: REPLACE_ME_WITH_TATUM_API_KEY })
export async function klaytnSubscriptionsExample() {
const id = await klaytnSDK.subscriptions.createSubscription... |
export interface FilterOption {
key: number | string;
label: string;
isSaved: boolean;
isChecked: boolean;
}
export interface FilterProps {
list: FilterOption[];
labelKey: string;
placeholder: string;
buttonText: string;
type: string;
searchable ?: boolean;
multi ?: boolean;... |
/**
* Events in Amazon CloudWatch Events are represented as JSON objects. For more information about JSON objects, see RFC 7159.
*
* Rules use event patterns to select events and route them to targets. A
* pattern either matches an event or it doesn't. Event patterns are represented
* as JSON objects with a struct... |
import React from 'react';
import {
Accordion,
AccordionHeaderButton,
AccordionItem,
AccordionPanel,
ChevronDownIcon,
Text,
} from 'supernova-ui';
import {
Button,
CakeIcon,
CoinIcon,
ModShieldIcon,
NewCommunityIcon,
SwitchButton,
} from '../../atoms';
import { useUser } from '../../../hooks';
... |
import { traverseLayers } from "./functions/traverse-layers";
import { settings } from "./constants/settings";
import { fastClone } from "./functions/fast-clone";
import { getLayout, hasChildren, isGroupNode } from "../lib/helpers";
const allPropertyNames = [
"id",
"width",
"height",
"currentPage",
"cancel",... |
import { ModCombination } from '../../Mods/ModCombination';
/**
* Describes the performance of a score, as output by a performance calculator.
*/
export abstract class PerformanceAttributes {
/**
* The mods which were applied to the beatmap.
*/
mods: ModCombination;
/**
* The total performance of a s... |
/*
* Copyright 2020 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
import React, { Fragment, useState, useEffect, HTMLAttributes, PropsWithChildren } from 'react';
import { DataStore, Roxie } from '@roxie/core';
interface ListProps extends HTMLAttributes<HTMLDivElement> {
store: DataStore<any>,
render: (item: any) => JSX.Element,
}
export function ListItem(props: PropsWithChildr... |
/* eslint-disable @typescript-eslint/camelcase */
import { Either, either } from "fp-ts/lib/Either";
import * as t from "io-ts";
import { makeGatewayEvent } from "@app/store/api/gateway";
import {
LogEvents,
BaseGatewayPacket,
TSnowflake,
THoarFrost,
} from "@app/utility/types";
export type MockBotEventAction... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { TestBed, ComponentFixture, fakeAsync, tick } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { MegaMenu } from './megamenu';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { RouterTestingModule } from '@angular/router/testing';
import { ... |
import * as React from "react";
import clsx from "clsx";
import {remote} from "electron";
import {OAuth} from "oauth";
import http from "http";
import uuidv4 from "uuid/v4";
import wretch from "wretch";
import {IgApiClient, IgCheckpointError, IgLoginTwoFactorRequiredError} from "instagram-private-api";
import {
Avat... |
import { authSetUser } from 'fm3/actions/authActions';
import {
l10nSetChosenLanguage,
l10nSetLanguage,
} from 'fm3/actions/l10nActions';
import { httpRequest } from 'fm3/authAxios';
import { getEffectiveChosenLanguage } from 'fm3/langUtils';
import { Processor } from 'fm3/middlewares/processorMiddleware';
import {... |
import { shallow } from 'enzyme';
import * as React from 'react';
import { ActivitySummary } from './ActivitySummary';
const requests = require.requireMock('src/services/account');
requests.getEvents = jest.fn(() => Promise.resolve([]));
jest.mock('src/services/account', () => ({
getEvents: () => jest.fn()
}));
c... |
import type { FC } from 'react'
import type { Languages } from '@/types'
import classnames from 'classnames'
import { CodeExampleButton } from './CodeExampleButton'
interface Props {
handleButtonClick: (language: Languages) => void
selectedLanguage: Languages
}
const LANGUAGES_ARRAY: Languages[] = ['javascript', ... |
// Extends standard Jest's expect with DOM-specific assertions
// https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';
import * as TestingLibrary from '@testing-library/react';
jest.setTimeout(60000);
TestingLibrary.configure({
testIdAttribute: 'data-automation-id'
}); |
import React from "react";
import { connect } from "@webiny/app-page-builder/editor/redux";
import { getPage } from "@webiny/app-page-builder/editor/selectors";
import { omit, isEqual } from "lodash";
import { useSnackbar } from "@webiny/app-admin/hooks/useSnackbar";
import useReactRouter from "use-react-router";
impor... |
import { createRouter, createWebHistory } from '@ionic/vue-router';
import { RouteRecordRaw } from 'vue-router';
import Login from '@/views/Login.vue'
import Settings from "@/views/Settings.vue"
import store from '@/store'
import Tabs from '@/views/Tabs.vue'
const authGuard = (to: any, from: any, next: any) => {
if ... |
/**
* Unofficial type definition for jquery-jeditable module v2.0.10
*
* API document: https://jeditable.elabftw.net/api/#jquery-jeditable
*/
/// <reference types="jquery" />
interface JQuery {
editable(action: string | JQueryJEditable.CustomAction, options: JQueryJEditable.Options): void;
}
declare namespace ... |
import React from 'react'
import { IconProps } from './types'
const IconBookmarkAdded: React.FC<IconProps> = ({ ...props }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
enableBackground="new 0 0 24 24"
viewBox="0 0 24 24"
{...props}
>
{props.title && <title>{props.title}</title>}
<rect fill... |
import { h, Component } from 'preact';
import TabBar from 'preact-material-components/TabBar';
import './create-account.scss';
import { Translate } from '../../components/translate/translate.component';
import { bind } from 'bind-decorator';
import { Blockchain } from 'moonlet-core/src/core/blockchain';
import Select ... |
import * as path from 'path';
import {existsSync, writeFileSync} from 'fs';
import {app, shell, Menu, MenuItemConstructorOptions, BrowserWindow, dialog} from 'electron';
import {
is,
appMenu,
openUrlMenuItem,
aboutMenuItem,
openNewGitHubIssue,
debugInfo
} from 'electron-util';
import config from './config';
impor... |
import { compileFiles } from './compiler/compiler';
import { getFinalConfig } from './config';
import { log, warn, error } from './logging';
import { resolveFiles } from './resolver';
import { ParsedArgs } from 'minimist';
export function runNgdt(command: ParsedArgs): void {
const config = getFinalConfig(command);
... |
import { model, Schema } from "mongoose";
const UserSchema = new Schema({
Name: {
type: String,
required: true
},
Birthday: {
type: Date,
required: true
},
Gender: {
type: String,
required: false
},
Lists: [{
type: Schema.Types.ObjectId,
required: true
}],
Username: {... |
import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* GetJobUnlockCodeInput shape
*/
export interface GetJobUnlockCodeInput {
/**
* <p>The ID for the job that you want to get the <code>UnlockCode</code> value for, for example <code>JID123e4... |
import { Component, OnInit, Inject, ChangeDetectorRef } from '@angular/core';
import { SharedService } from '../../shared/shared.service';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { TramitesService } from '../tramites.service';
import { ImportarService } from '../importar.service';
im... |
// Copyright (c) 2011-2012 Turbulenz Limited
/*global TurbulenzServices*/
/*global TurbulenzBridge*/
/*global Utilities*/
//
// API
//
interface BadgeManagerDataSpec
{
gameSessionId?: string;
badge_key?: string;
current?: number;
};
//badges is created by Turbulenzservices.createBadges
class BadgeManager... |
import {
Disposable,
TextEditorSelectionChangeEvent,
window,
workspace,
} from "vscode";
import {
PartialDocument,
PartialTextEditor,
} from "./active-text-editor";
export interface EditorEvents {
changeActiveEditor<T>(
callback: (e: PartialTextEditor | undefined) => void,
t... |
import { Product } from '@app/models/product';
import { deepCopy } from '@app/store/helpers';
import { createReducer, on } from '@ngrx/store';
import * as SingleProductActions from './single-product.actions';
export const singleProductFeatureKey = 'singleProduct';
export interface SingleProductState {
product: Prod... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class AppService {
cadastroUrl = 'https://reqres.in/api/';
constructor(private http: HttpClient) {}
listar() {
return this.http.get<Array<any>>(this.cadast... |
version https://git-lfs.github.com/spec/v1
oid sha256:44e17e60594fb3646df546ed231e9c5f67744883795607e756e928bee26af17c
size 336332 |
import useForm from "./useForm";
import {Method} from "./types";
export default function visit(method: Method, href: any, data: object = {}, options: object = {}, requestOptions: object = {}) {
const form = useForm(data);
form.submit(method, href, options, requestOptions);
return form;
} |
import { IBSheetOptions } from './options'
export interface IBSheetCreateOptions {
// global name
id?: string
// traget element id
el?: string
// ibsheet options
options?: IBSheetOptions
data?: any
}
export interface IBSheetInstance {
id: string
length: number
} |
import * as object from "../src";
describe("object util", () => {
describe("deepMerge", () => {
test("deepMerge() inject normal object1", () => {
const obj = {
a: {
b: {
c: "d"
}
}
};
const result = object.deepMerge(
{
aa: {
... |
import Box from "../../primitives/Box/Box";
const Separator = Box.extend`
width: 100%;
border-top: 1px solid ${props => props.theme.color.gray3};
`;
Separator.defaultProps = {
height: 0,
width: 1,
marginTop: 0,
marginBottom: 1
};
export default Separator; |
// remove type imports from http for Deno compatibility
// see https://github.com/octokit/octokit.js/issues/24#issuecomment-817361886
// import { IncomingMessage, ServerResponse } from "http";
type IncomingMessage = any;
type ServerResponse = any;
import { createNodeMiddleware as oauthNodeMiddleware } from "@octokit/o... |
import { Component } from '@angular/core';
import { ModalController,Events } from 'ionic-angular';
// import service
import { CustomService } from '../../../service/custom.service';
import { ComplaintSuggestion } from '../../../service/cs.service';
import { Configuration } from '../../../service/app.constants';
// im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.