text stringlengths 10 953k |
|---|
import axios from 'axios'
class ArrendatarioService {
async getAll() {
const response = axios.get(`https://inmobiliaria.test/api/arrendatarios`);
return (await response).data;
}
async destroyArrendatario(id: number) {
const response = axios.delete(`https://inmobiliaria.test/api/arre... |
import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { HomeComponent } from "./home.component";
const routes: Routes = [{ path: "", component: HomeComponent }];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class Ho... |
import axios from "axios";
const axiosInstance = axios.create({
baseURL: "https://api.boardroom.info/v1",
});
export default axiosInstance; |
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import { ValidationPipe } from '@nestjs/common';
const cookieSession = require('cookie-session')
async function bootstrap() {
const app = await NestFactory.create(A... |
import { DatabaseId, RepositoryId } from "./CommonTypes";
export declare type DailySyncLogDatabaseId = DatabaseId;
export declare type DailySyncLogRepositoryId = RepositoryId;
export declare type DailySyncLogSynced = number;
export declare type DailySyncLogDateNumber = number;
export declare type DailySyncLogValues = [... |
import ReasonGroup from "./ReasonGroup";
import type ReasonsClassType from "./Reasons";
export default class QuestionGroup extends ReasonGroup {
constructor(main: ReasonsClassType) {
super(
main,
1,
System.data.locale.reportedContents.categoryFilterFirstOption.reasonsFor
.Question,
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Neil Enns. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*-------------------------------------------------------------------------------... |
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react'
import LayoutTwoToneSvg from 'infra-design-svgs/lib/asn/LayoutTwoTone';
import AntdIcon, { AntdIconProps } from '../components/AntdIcon';
const LayoutTwoTone = (
props: AntdIconProps,
ref: React.MutableRefObject<HTMLSpan... |
import 'zone.js/dist/long-stack-trace-zone';
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
import './matchers';
declare var require: any;
getTestBed().... |
import * as React from 'react';
import { __DEV__ } from '@nature-ui/utils';
import { CSSTransition } from 'react-transition-group';
import type {
TransitionProps as TProps,
TransitionStatus,
} from 'react-transition-group/Transition';
export type BaseProps = Pick<
TProps,
| 'in'
| 'onEnter'
| 'onEntering'
... |
import * as globals from "../globals";
import { type_wall } from "../../../server/types";
export function renderWall(
canvas: HTMLCanvasElement,
centre: [number, number],
state: type_wall
): void {
const context = canvas.getContext('2d');
const viewportX = globals.getViewportX();
const viewpor... |
/// <reference lib="dom" />
import { test } from "@siteimprove/alfa-test";
import { Future } from "../src/future";
function wait(delay: number): Future<void> {
return Future.defer((callback) => setTimeout(callback, delay));
}
test("#map() applies a function to the value of a future", async (t) => {
const n = wa... |
import { botCache } from "../../../cache.ts";
import { PermissionLevels } from "../../types/commands.ts";
import { createSubcommand, sendResponse } from "../../utils/helpers.ts";
import { sendMessage } from "../../../deps.ts";
import { db } from "../../database/database.ts";
// This command will only execute if there ... |
import { verifySpecification } from './mutatorAssertions';
import BlockMutator from '../../../src/mutator/BlockMutator';
import BlockMutatorSpec from '@stryker-mutator/mutator-specification/src/BlockMutatorSpec';
verifySpecification(BlockMutatorSpec, BlockMutator); |
// Copyright 2017-2020 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TFunction } from 'i18next';
import type { Route } from './types';
import Component, { useCounter } from '@polkadot/app-bounties';
export default function create (t: TFunction): Route {
return {... |
import config from "config";
import dayjs, {Dayjs} from 'dayjs';
import CalendarService from "../calendar/CalendarService";
import Room from "../calendar/Room";
import Meeting from "../calendar/Meeting";
import Color from "../bulbNetworks/Color";
import BulbNetwork from "../bulbNetworks/BulbNetwork";
import Bulb from "... |
import * as React from 'react';
import {
useK8sWatchResources,
WatchK8sResource,
} from '@console/internal/components/utils/k8s-watch-hook';
import { PersistentVolumeClaimModel, PodModel } from '@console/internal/models';
import { PersistentVolumeClaimKind, PodKind, TemplateKind } from '@console/internal/module/k8s... |
import type { LoggerInterface } from './logger.interface';
export class NullLogger implements LoggerInterface {
debug(): any {
//
}
info(): any {
//
}
warn(): any {
//
}
error(): any {
//
}
} |
import { FlagRegister } from "./register"
describe(`FlagRegister`, () => {
const flagRegister = new FlagRegister()
test(`set(32767)`, () => {
flagRegister.set(32767)
expect(flagRegister.toString()).toEqual("000")
})
test(`set(32768)`, () => {
flagRegister.set(32768)
expect(flagR... |
/**!
* jsziptools: zip utility implemented with JavaScript for browser
*
* @author Syu Kato <ukyo.web@gmail.com> <https://ukyo.github.com>
* @license MIT
*/
import * as common from './common';
import * as core from './core';
import * as zlib from './zlib';
import * as gz from './gz';
import * as zip from './zip... |
import React from 'react';
import {
QueryFilter,
ProFormText,
ProFormDatePicker,
ProFormRadio,
ProFormCheckbox,
} from '@ant-design/pro-form';
export default () => {
return (
<QueryFilter layout="vertical">
<ProFormText name="name" label="这是一个超级超级长的名称" />
<ProFormDatePicker name="birth" lab... |
import { useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import useForm, { Schema } from '@knightburton/react-use-form';
import Stack from '@mui/material/Stack';
import Paper from 'components/core/Paper';
import Title from 'components/core/Title';
import Form from 'compo... |
import React, { useState, useEffect, useRef, useImperativeHandle } from 'react';
import clsx from 'clsx';
import { Flex } from '../Flex';
import { Icon } from '../Icon';
import { useLocale } from '../LocaleProvider';
import canUse from '../../utils/canUse';
const passive = canUse('passiveListener') ? { passive: false ... |
import * as S from "sequelize-typescript"
export interface CreateTranslationDto {
fr: string;
en: string;
}
/**
* Translation
*/
@S.Table
export default class Translation extends S.Model<Translation> {
@S.PrimaryKey
@S.AutoIncrement
@S.Column(S.DataType.INTEGER)
id: number;
@S.AllowNu... |
import React, { FC, useCallback } from 'react'
import classPrefixMaker from '../utils/classPrefixMaker'
import './checkbox.scss'
const scopedClass = classPrefixMaker('hit-ui-checkbox')
interface IProps extends React.InputHTMLAttributes<HTMLInputElement> {}
export const Checkbox: FC<IProps> = ({ className, children, ... |
import {Type, stringify, isFunction} from 'angular2/src/core/facade/lang';
/**
* An interface that a function passed into {@link forwardRef} has to implement.
*
* ### Example
*
* ```typescript
* var fn:ForwardRefFn = forwardRef(() => Lock);
* ```
*/
export interface ForwardRefFn { (): any; }
/**
* Allows to ... |
import {QueryParamsHandling} from '@angular/router';
export interface INavAttributes {
[propName: string]: any;
}
export interface INavWrapper {
attributes: INavAttributes;
element: string;
}
export interface INavBadge {
text: string;
variant: string;
class?: string;
}
export interface INavLabel {
cla... |
export interface ODataProperty {
name: string
type: string
isCollection: boolean
isNullable: boolean
}
export interface ODataEntity {
name: string
properties: ODataProperty[]
navigationProperties: ODataProperty[]
}
export interface ODataEnumMember {
name: string
value: number
}
export interface ODa... |
import React from "/vendor/react";
import { Sink } from "/lib/component/relocation/Relocation";
import { BANNER } from "/lib/component/relocation/types";
interface Props {
children: React.ReactElement;
}
const BannerSink = React.memo(({ children }: Props) => {
const props = {
children: {
render: () => ... |
import { observable, computed } from "mobx";
import { IThemeJson } from "../interface";
export class ThemeStore {
@observable private Theme: IThemeJson = {
light: {
BgThemed: {
"background-color": "#fff"
},
TextThemed: {
color: "#222"
}
},
dark: {
BgThemed: {
... |
/**
* Solc compiler configuration input.
* @see http://solidity.readthedocs.io/en/v0.5.11/using-the-compiler.html
*/
export interface SolcInput {
// Source code language.
language?: "Solidity" | "Yul";
// Source.
sources?: {
[file: string]: {
// Hash of the source file.
keccak256?: string;
... |
import { printWarn } from '../src';
describe('@curong/term/printWarn', () => {
test('测试1', () => {
expect(printWarn('xxx')).toBe(undefined);
});
}); |
import {CorsConfig} from "authoritarian/dist/interfaces.js"
export interface AccountPopupConfig {
cors: CorsConfig
}
export interface TokenStorageConfig {
cors: CorsConfig
}
export interface AccountPopupSettings extends AccountPopupConfig {
debug: boolean
googleAuthDetails: GoogleAuthDetails
}
export interface ... |
import { Component } from '@angular/core';
@Component({
selector: 'fd-busy-indicator-size-example',
templateUrl: './busy-indicator-size-example.component.html'
})
export class BusyIndicatorSizeExampleComponent {} |
import { BigNumber } from "bignumber.js";
import { isValidAddress } from "ethereumjs-util";
import { EventEmitter, EventSubscription } from "fbemitter";
import * as _ from "lodash";
import Web3 from "web3";
import { WyvernProtocol } from "wyvern-js";
import * as WyvernSchemas from "wyvern-schemas";
import { Schema } fr... |
import {Type} from '@angular/core'
export class AdItem{
constructor(
public component: Type<any>,
public data: any
){}
} |
import {expect, test} from '@oclif/test'
describe('groups:delete', () => {
test
.stdout()
.command(['groups:delete'])
.it('runs hello', ctx => {
expect(ctx.stdout).to.contain('hello world')
})
test
.stdout()
.command(['groups:delete', '--name', 'jeff'])
.it('runs hello --name jeff', ctx => {
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// Copyright 2017-2022 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { isString } from '.';
describe('isString', (): void => {
it('returns true on valid strings', (): void => {
expect(
isString('123')
).toEqual(true);
});
it('returns true on empty strings', (... |
'use strict'
import Mru from '../model/mru'
import { ExtendedCompleteItem } from '../types'
export type Selection = 'none' | 'recentlyUsed' | 'recentlyUsedByPrefix'
export default class MruLoader {
private mru: Mru
private max = 0
private items: Map<string, number> = new Map()
private itemsNoPrefex: Map<strin... |
import { InjectionToken, Provider } from 'injection-js';
import { Transform } from '../../graph/transform';
import { TransformProvider, provideTransform } from '../../graph/transform.di';
import { STYLESHEET_PROCESSOR, STYLESHEET_PROCESSOR_TOKEN } from '../../styles/stylesheet-processor.di';
import { OPTIONS_TOKEN } fr... |
import React, { useState, useEffect, memo } from "react";
import {
Button,
Grid,
CircularProgress,
Typography,
Paper,
Box,
FormControl,
Select,
InputLabel,
FormHelperText
} from "@material-ui/core";
import {
useHistory
} from "react-router-dom";
import { toast } from "react-t... |
import {Pipe, PipeTransform} from '@angular/core';
import {of} from 'rxjs';
import {filter, switchMap, take, tap} from 'rxjs/operators';
import {AppState} from '../../app.state';
import {Store} from '@ngrx/store';
import {Category} from '../../model/value';
import {getCategoriesByIds, getCategoryById} from '../store/va... |
// Type definitions for Google Feed Apis
// Project: https://developers.google.com/feed/
// Definitions by: RodneyJT <https://github.com/RodneyJT>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace google.feeds {
export class Feed {
constructor();
constructor(url: ... |
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { DescribeRoutingProfileRequest, DescribeRoutingProfileResponse } from "../models/models_0";
import {
deserializeAws_restJson1DescribeRoutingProfileCommand,
serializeAws_restJson1DescribeRoutingProfileComma... |
// Imports
import * as React from 'react'
import styled, { css, keyframes } from '../../../Common/theming/themedComponents';
import remStringFromPX from '../../../Common/utils'
import { Dictionary } from '../../../Common/utils/types'
import { UpButtonStyledProps, fontSizeMap, buttonSizeMap } from './'
import defaultThe... |
export { stateReducer } from "./AppStateReducer"; |
import { FactionTypeData } from '@lib'
export const thieves: FactionTypeData = {
type: 'thieves',
leader: {
format: {
group: 1,
individual: 5
},
qualification: {
'the most skilled of the group': 1,
'able to rise to power by completing an ordeal': 2,
'the most charismatic o... |
import "jest";
import { createStore } from "../../src";
interface ITodoAppState {
logged: boolean;
todos: ITodo[];
}
interface ITodo {
id: string;
label: string;
done: boolean;
}
const actions = {
LOGIN: 'LOGIN', // payload: boolean
ADD_TODO: 'ADD_TODO', // payload: IADD_T... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/// <reference types="react" />
declare const ManInTuxedo: ({ size, rem }: {
size: number | string;
rem?: boolean | undefined;
}) => JSX.Element;
export default ManInTuxedo; |
/*
Copyright 2015 - 2022 The Matrix.org Foundation C.I.C.
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... |
import { Avalanche, BN } from "../../src"
import { AVMAPI } from "../../src/apis/avm"
const ip: string = "localhost"
const port: number = 9650
const protocol: string = "http"
const networkID: number = 1337
const avalanche: Avalanche = new Avalanche(ip, port, protocol, networkID)
const xchain: AVMAPI = avalanche.XChain... |
import { Badge, Button, Divider, Grid, IconButton, Stack, Typography, alpha, Slider, Avatar, TextField, SnackbarOrigin } from "@mui/material";
import { makeStyles } from '@mui/styles'
import { Box } from "@mui/system";
import CollectionButton from "../components/buttons/CollectionButton";
import VideoBackground from '.... |
import { Injectable, OnDestroy } from '@angular/core';
import { IdbAdapter } from '@likelymindslm/lmbase-idb-adapter';
import {
BatchedOpsBuilder,
BatchedOps,
} from '@likelymindslm/lmbase-batched-ops';
import {
IDocument,
ICollectionsMetadata,
} from '@likelymindslm/lmbase-shared-types';
import {
Collections... |
import React, { useState, useMemo } from 'react'
import imageExtensions from 'image-extensions'
import isUrl from 'is-url'
import { Transforms, createEditor, Descendant } from 'slate'
import {
Slate,
Editable,
useSlateStatic,
useSelected,
useFocused,
withReact,
} from 'slate-react'
import { withHistory } fr... |
import { Requester, Validator } from '@chainlink/ea-bootstrap'
import { ExecuteWithConfig } from '@chainlink/types'
import { Config } from '../../../config'
export const NAME = 'event'
const customParams = {
eventId: true,
}
export const execute: ExecuteWithConfig<Config> = async (request, _, config) => {
const ... |
import React from 'react'
import ReactDOM from 'react-dom'
import $Cypress from '@packages/driver'
import {
StudioRecorder,
dom,
} from '@packages/runner-shared'
import { Reporter } from '@packages/reporter/src/main'
import shortcuts from '@packages/reporter/src/lib/shortcuts'
import * as MobX from 'mobx'
export c... |
import React from 'react';
import Adapter from 'enzyme-adapter-react-16';
import Enzyme from 'enzyme';
import { Container, Button } from 'react-bootstrap';
import { SteppedForm, useFormStepper } from '.';
import { Input } from '..';
import { render, act } from '@testing-library/react';
import { fireEvent } from '@testi... |
const who = 'world';
console.log(`Hello ${who}!`); |
import PlusCircle from '@geist-ui/react-icons/plusCircle';
import * as React from 'react';
import 'twin.macro';
import { SiteLayout } from '$/blocks/layout';
import { PageTitle } from '$/blocks/page-title';
import { ProjectCard } from '$/blocks/project-card';
import { Button } from '$/components/button';
import { Dial... |
import { Prop as InnerProp } from '@alilc/lowcode-designer';
import { CompositeValue, TransformStage } from '@alilc/lowcode-types';
import { propSymbol } from './symbols';
import Node from './node';
export default class Prop {
private readonly [propSymbol]: InnerProp;
constructor(prop: InnerProp) {
this[propS... |
import { Link } from "react-router-dom"
import illustrationImg from "../assets/images/illustration.svg"
import logoImg from "../assets/images/logo.svg"
import { Button } from "../components/Button"
//import { useAuth } from "../hooks/useAuth"
import "../styles/auth.scss"
export function NewRoom() {
// const { use... |
import * as FIREBASE from 'firebase';
declare module 'firebase' {
namespace firestore {
// Snapshots
export interface DocumentSnapshot<T = DocumentData> {
data(options?: SnapshotOptions): D | undefined;
}
export interface QueryDocumentSnapshot<T = DocumentData> extends DocumentSnapshot {
... |
import { Component } from '@angular/core'
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.sass'],
})
export class AppComponent {
title = 'badge'
} |
/*@ qualif HasDP(v: Str, s: a): hasDirectProperty(v,s) */
/*@ qualif HasP (v: Str, s: a): hasProperty(v,s) */
/*@ qualif EnumP(v: Str, s: a): enumProp(v,s) */
/*@ extend :: ( src: { [s:string]: string }, dest: { [s:string]: top }) => {[s:string]: top } */
function extend(src, dest) {
for (let p in... |
import React from 'react';
import toReact from '@egoist/vue-to-react';
import { StoryFn } from '@storybook/addons';
import { addParameters } from '@storybook/client-api';
import { extractArgTypes } from './extractArgTypes';
import { extractComponentDescription } from '../../lib/docgen';
addParameters({
docs: {
i... |
import { uuidv4 } from "../utils/uuid";
import { Watcher } from "../utils/Watcher";
import { GamepadState } from "./GamepadState";
const DEFAULT_OPTIONS: Options = {
sensitivity: 0.05,
};
export enum ActionTypes {
BUTTON_ACTION = "buttonAction",
STICK_ACTION = "stickAction",
}
export function readableActionTyp... |
import React from "react";
import {
LeagueTableCell,
LeagueTableContainer,
LeagueTableHeader,
LeagueTableHeaderCell,
} from "../LeagueTable/LeagueTable.styled";
import { PredictionLeagueTableRow } from "./PredictionsBreakdown.styled";
interface IFixture {
fixture: string;
score: string;
prediction: strin... |
import {
KinesisAnalyticsV2ClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../KinesisAnalyticsV2Client.ts";
import { AddApplicationVpcConfigurationRequest, AddApplicationVpcConfigurationResponse } from "../models/models_0.ts";
import {
deserializeAws_json1_1AddApplicationVpcConfigurationCom... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { LineItemCrewComponent } from './line-item-crew.component';
describe('LineItemCrewComponent', () => {
let component: LineItemCrewComponent;
let fixture: ComponentFixture<LineItemCrewComponent>;
beforeEach(async(() => {
TestBe... |
import { Module, Logger } from '@nestjs/common';
import { UsuarioModule } from './usuario/usuario.module';
import { TypeOrmModule } from '@nestjs/typeorm';
@Module({
providers: [Logger],
imports: [TypeOrmModule.forRoot(), UsuarioModule],
})
export class InfraestructuraModule {} |
import { Marking, MarkingView } from "../graphics/marking";
import * as visuals from "../../core/visuals";
import { LineVector, FillVector } from "../../core/property_mixins";
import * as p from "../../core/properties";
import { Context2d } from "../../core/util/canvas";
export declare abstract class ArrowHeadView exte... |
import React from "react";
import { ReactComponent as Illustration } from "../assets/skills.svg";
import Heading from "../components/Heading";
import { SECTIONS, skills } from "../data/data";
import AnimateVisible from "../utils/AnimateVisible";
const SkillsContainer: React.FC = () => {
return (
<div className="... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { LoadoutToolbarComponent } from './loadout-toolbar.component';
describe('LoadoutToolbarComponent', () => {
let component: LoadoutToolbarComponent;
let fixture: ComponentFixture<LoadoutToolbarComponent>;
beforeEach(async(() => {
... |
import { StyledIcon } from '@styled-icons/styled-icon';
export declare const Radar: StyledIcon;
export declare const RadarDimensions: {
height: number;
width: number;
}; |
/**
* Process the handshake request.
*
* @param {Object} opts option parameters
* opts.handshake(msg, cb(err, resp)) handshake callback. msg is the handshake message from client.
* opts.hearbeat heartbeat interval (level?)
* opts.version required clie... |
import {Http, Response} from '@angular/http';
import {Injectable} from '@angular/core';
import {environment} from '../../../environments/environment';
import {Observable} from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/catch';
import 'rxjs/add/observable/throw';
import {AuthHttp} from... |
import { TaskState } from "./Api/TaskState";
export function getAllTaskStates(): TaskState[] {
return Object.values(TaskState);
}
export const cancelableStates = [TaskState.New, TaskState.WaitingForRerun, TaskState.WaitingForRerunAfterError];
export const rerunableStates = [
TaskState.Fatal,
TaskState.Fi... |
import { Delegate, Route, Opaque, MatchCallback } from "./route-recognizer/dsl";
export { Delegate, MatchCallback } from './route-recognizer/dsl';
export interface Params {
[key: string]: Opaque;
[key: number]: Opaque;
queryParams?: QueryParams | null;
}
export interface QueryParams {
[param: string]: a... |
import { MapPipe } from './map.pipe';
describe('MapPipe', () => {
let pipe: MapPipe;
beforeEach(() => {
pipe = new MapPipe();
});
it('Should return the modified array', () => {
const array = [0, 1, 2, 3];
const fn = function (item: any) {
return ... |
import crypto from "crypto";
import multer from "multer";
import { resolve } from "path";
const tmpFolder = resolve(__dirname, "..", "..", "tmp");
export default {
tmpFolder,
storage: multer.diskStorage({
destination: tmpFolder,
filename: (request, file, callback) => {
const fileH... |
/**
* This example demonstrates how a dot-nested object can be created
*
* Usage:
* $ npx esno ./examples/dot-nested --env.TOKEN=123 --env.CI
*/
import typeFlag from '..';
type Environment = {
TOKEN?: string;
CI?: boolean;
};
function EnvironmentObject(value: string): Environment {
const [propertyName, prope... |
export {};
interface Todo {
title: string
description: string
completed: boolean
}
type TodoPreview = MyPick<Todo, 'title' | 'completed'>
const todo: TodoPreview = {
title: 'Clean room',
completed: false,
}
// SOLUTION
type MyPick<O, KEYS extends keyof O> = {
[TO_PICK in KEYS]: O[TO_PICK]
} |
namespace LambdaProperty {
interface IFoo {
y: number;
z: number;
bar: () => number;
baz: (i: number) => number;
}
let x: IFoo = {
y: 3, z: 4, bar: () => {
return 0
}, baz: (i: number) => i + 1
}
x.bar = () => {
return x.y
}
... |
import { MainRuntime } from '@teambit/cli';
import { ComponentAspect } from '@teambit/component';
import { ScopeAspect } from '@teambit/scope';
import { WorkspaceAspect } from '@teambit/workspace';
import { GraphAspect } from './graph.aspect';
import { provide } from './graph.provider';
export const GraphMain = {
n... |
export * from "./Clone"; |
/**
* @file RowHeight 行高度
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconHelper, IconWrapper} from '../runtime';
export default IconWrapper(
'row-height',
true,
(h: IconHelper, props: ISvgIconProps) => (
<svg... |
import { defineMessages } from "react-intl";
export const messages = defineMessages({
siteNameLabel: {
id: "appServiceModal.siteNameLabel",
defaultMessage: "Site Name"
},
ariaSiteNameLabel: {
id: "appServiceModal.siteNameLabel",
defaultMessage: "Site Name Dropdown"
},
siteNameSubLabel: {
... |
import { Component, Element, h, Host, Prop, VNode } from "@stencil/core";
import { guid } from "../../utils/guid";
import { Scale } from "../interfaces";
@Component({
tag: "calcite-loader",
styleUrl: "calcite-loader.scss",
shadow: true
})
export class CalciteLoader {
//-----------------------------------------... |
export * from './SizedArrayBuffer';
export * from './ArrayBufferProvider';
export * from './DataBuffer';
export * from './DataBitBuffer'; |
/***********************************************************
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License
**********************************************************/
import { call, put, takeLatest } from 'redux-saga/effects';
import { Action } from 'typescript-fsa';
im... |
/*
* index.tsx
* Copyright (C) 2018 disoul <disoul@DiSouldeMacBook-Pro.local>
*
* Distributed under terms of the MIT license.
*/
import React from 'react';
import { RouteComponentProps } from 'react-router';
import request from '../../common/request';
import { inject, observer } from 'mobx-react';
import { RouterS... |
import { Controller, Get, Res, HttpStatus, Param, NotFoundException, Post, Body, Put, Query, Delete } from '@nestjs/common';
import { NoticeService } from '../notice.service';
import { CreateNoticeDTO } from '../dto/create-notice.dto';
@Controller('notice')
export class NoticeController {
constructor(private notice... |
import { Expose, Type } from 'class-transformer';
import { IPatchUserParams } from '../interfaces/patch-user-params.interface';
export class PatchUserParams implements IPatchUserParams {
@Expose({ name: 'first_name' })
public firstName?: string;
@Expose({ name: 'last_name' })
public lastName?: string;
@Expos... |
import { ComponentProps, FC } from 'react'
import { KINDS } from '../../types'
import { Property } from '@stitches/react/types/css'
import { StyledTag } from './styled'
export type TagProps = ComponentProps<typeof StyledTag> & {
kind?: KINDS
textTransform?: Property.TextTransform
}
export type TagComponent = FC<T... |
import needle from 'needle';
import { injectable } from 'inversify';
export type SentimentMetricArgs = {
name: string;
value: number;
attrs?: { [key: string]: string };
timestamp?: number;
};
@injectable()
export class NewRelicMetricClient {
sendMetric = (args: SentimentMetricArgs): void => {
const { na... |
import React from "react"
import { useIntl } from "react-intl"
import { makeStyles, Typography } from "@material-ui/core"
import { Destination, SourcePDF, DragAndDrop } from "./components"
import { usePdfManager } from "./pdfManager"
const useStyles = makeStyles((theme) => ({
root: {
display: "grid",
gridTem... |
import React from "react";
import styled from "styled-components";
import Stepper from "./Stepper";
import { Step, StepNumber } from "./Step";
import { Status } from "./types";
import Card from "../Card/Card";
import CardBody from "../Card/CardBody";
export default {
title: "Components/Stepper",
component: Stepper... |
import * as vscode from 'vscode';
import * as assert from 'assert';
import { showFile, getDiagnosticsAndTimeout } from '../../helper';
import { getDocUri, sameLineRange } from '../../util';
import { CodeAction } from 'vscode-languageclient';
describe('Should do codeAction', () => {
const docUri = getDocUri('codeActi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.