type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
FunctionDeclaration |
export default function Checkbox(props: RZNTProps.Form.Checkbox) {
return (
<label {...props.containerProps} className={conclass('form-choicebox', props.containerProps?.className)}>
<span className="form-checkbox-control">
<input {...props} type="checkbox" className="form-checkbox-input"/>
... | rzfury/rz-next-tailwind | src/components/common/form/checkbox.tsx | TypeScript |
MethodDeclaration |
conclass('form-choicebox', props | rzfury/rz-next-tailwind | src/components/common/form/checkbox.tsx | TypeScript |
MethodDeclaration |
conclass('form-checkbox-icon', props | rzfury/rz-next-tailwind | src/components/common/form/checkbox.tsx | TypeScript |
MethodDeclaration |
conclass('form-checkbox-label', props | rzfury/rz-next-tailwind | src/components/common/form/checkbox.tsx | TypeScript |
TypeAliasDeclaration |
export type DownloadIconTypes = IconType; | rui-org/rummy-react-ui | packages/rummy-react-ui-icons/src/Download/Download.types.d.ts | TypeScript |
ArrowFunction |
(c) => onEnd((contents) => contents.push({
type: 'rect',
x: (c[0].x + c[1].x) / 2,
y: (c[0].y + c[1].y) / 2,
width: Math.abs(c[0].x - c[1].x),
height: Math.abs(c[0].y - c[1].y),
angle: 0,
} as RectContent)) | plantain-00/composable-editor-canvas | dev/commands/create-rect.tsx | TypeScript |
ArrowFunction |
(contents) => contents.push({
type: 'rect',
x: (c[0].x + c[1].x) / 2,
y: (c[0].y + c[1].y) / 2,
width: Math.abs(c[0].x - c[1].x),
height: Math.abs(c[0].y - c[1].y),
angle: 0,
} as RectContent) | plantain-00/composable-editor-canvas | dev/commands/create-rect.tsx | TypeScript |
MethodDeclaration |
useCommand({ onEnd, getAngleSnap, type }) {
const { line, onClick, onMove, input } = useLineClickCreate(
type === 'create rect',
(c) => onEnd((contents) => contents.push({
type: 'rect',
x: (c[0].x + c[1].x) / 2,
y: (c[0].y + c[1].y) / 2,
width: Math.abs(c[0].x - c[1].x),... | plantain-00/composable-editor-canvas | dev/commands/create-rect.tsx | TypeScript |
ArrowFunction |
(info) => {
const newWxOutFiles = {}
let {appJSON} = info.entryInfo
// 增加对 weixin目录下的app.json 文件处理
const userAppJSONPath = path.resolve(configure.inputFullpath, 'weixin', 'app.json')
if (fse.existsSync(userAppJSONPath)) {
const userAppJSON = require(userAppJSONPath)
appJSON = merg... | Kelin-Hong/alita | packages/alita-core/src/extractWxCompFiles/extractEntryFile.ts | TypeScript |
ArrowFunction |
(): RepositoryModel[] => [
{
title: 'Featured work',
subtitle: 'Some projects that I’ve finally finished... almost',
seeMore: 'I might have more',
url: 'https://www.linkedin.com/in/wikz87/',
collection: [
{
icon: '🤖',
companyLogo: 'logo-achieve',
name: 'Achieve Test... | toadeelali/Portfolio-Website | src/containers/repositories/RepositoriesData.ts | TypeScript |
InterfaceDeclaration |
export interface SingleProjectModel {
icon: '🤖'
companyLogo: string
name: string
url: string
description: string
status: 'done' | 'in-progress' | 'to-do'
} | toadeelali/Portfolio-Website | src/containers/repositories/RepositoriesData.ts | TypeScript |
InterfaceDeclaration |
export interface RepositoryModel {
title: String
subtitle: String
seeMore: String
url: String
collection: SingleProjectModel[]
} | toadeelali/Portfolio-Website | src/containers/repositories/RepositoriesData.ts | TypeScript |
TypeAliasDeclaration |
export type HeaderModelName = 'default' | 'headphones' | 'drawing' | 'dude' | toadeelali/Portfolio-Website | src/containers/repositories/RepositoriesData.ts | TypeScript |
ArrowFunction |
() => {
return (
<StateManagerProvider stateManager={stateManager}>
<h1 style={{padding: "1rem"}}>
For multiple queries with the same variables but different shapes,
queries with smaller shapes will not send out HTTP requests,
they will borrow t... | babyfish-ct/graph-state | example/client/src/graph/http/shape/App.tsx | TypeScript |
ArrowFunction |
(
center: IPosition,
current: IPosition,
angle: number
): IPosition => {
const radians = (Math.PI / 180) * angle;
const cos = Math.cos(radians);
const sin = Math.sin(radians);
const x =
cos * (current.x - center.x) + sin * (current.y - center.y) + center.x;
const y =
cos * (current.y - center.y... | christianalfoni/reactive-app | editor/src/client/flow-chart/container/utils/rotate.ts | TypeScript |
InterfaceDeclaration |
export interface ThemeState {
theme: Theme;
muiTheme: any;
themeSelection: string;
themeList: string[];
changeTheme?: (value: string) => void;
} | FirmaChain/FirmaChain-Explorer | src/contexts/settings/types.ts | TypeScript |
InterfaceDeclaration |
export interface DateFormatState {
dateFormat: 'locale' | 'utc';
changeDateFormat?: (value: string) => void;
dateFormatList: string[];
} | FirmaChain/FirmaChain-Explorer | src/contexts/settings/types.ts | TypeScript |
TypeAliasDeclaration |
export type Theme = 'light' | 'dark' | 'device' | 'deuteranopia' | 'tritanopia' | 'achromatopsia'; | FirmaChain/FirmaChain-Explorer | src/contexts/settings/types.ts | TypeScript |
TypeAliasDeclaration |
export type SettingsState = ThemeState & DateFormatState; | FirmaChain/FirmaChain-Explorer | src/contexts/settings/types.ts | TypeScript |
ClassDeclaration |
class Footer extends React.Component {
render() {
return (
<Fragment>
<footer className="footer">
<Row className="align-items-center justify-content-xl-between">
<Col xl="6">
<div className="copyright text-center text-xl-left text-muted">
© 2018{"... | dilsonjlrjr/argon-dashboard-react-typescript | src/components/Footers/AdminFooter.tsx | TypeScript |
MethodDeclaration |
render() {
return (
<Fragment>
<footer className="footer">
<Row className="align-items-center justify-content-xl-between">
<Col xl="6">
<div className="copyright text-center text-xl-left text-muted">
© 2018{" "}
<a
... | dilsonjlrjr/argon-dashboard-react-typescript | src/components/Footers/AdminFooter.tsx | TypeScript |
ArrowFunction |
() => {
return (
<div>
<div className="text-center mb-20">
<h1 className="sm:text-3xl text-2xl font-medium text-center title-font text-gray-900 mb-4">
Frequently Asked Question
</h1>
<p className="text-base leading-relaxed xl:w-2/4 lg:w-3/4 mx-auto">
The most com... | tomstagl/tomstagl.com | src/components/FrequentlyAskedQuestions/FrequentlyAskedQuestions.tsx | TypeScript |
FunctionDeclaration |
export function PlantCardSecondary({ data, handleRemove, ...rest }: PlantProps) {
return (
<Swipeable
overshootRight={false}
renderRightActions={() => (
<Animated.View>
<View>
<RectButton style={styles.buttonRemove} onPress={handleRemove}>
<Feather name="tr... | lukkanog/plant-manager | src/components/PlantCardSecondary.tsx | TypeScript |
InterfaceDeclaration |
interface PlantProps extends RectButtonProps {
data: {
name: string;
photo: string;
hour: string;
};
handleRemove: () => void;
} | lukkanog/plant-manager | src/components/PlantCardSecondary.tsx | TypeScript |
ArrowFunction |
() => {
let component: OutOfStockWindowComponent;
let fixture: ComponentFixture<OutOfStockWindowComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ OutOfStockWindowComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createCo... | AJEETX/Pharmacy-Mangment-System | src/app/mainwindow/a-exp-outofstock-window/out-of-stock-window/out-of-stock-window.component.spec.ts | TypeScript |
ArrowFunction |
() => {
TestBed.configureTestingModule({
declarations: [ OutOfStockWindowComponent ]
})
.compileComponents();
} | AJEETX/Pharmacy-Mangment-System | src/app/mainwindow/a-exp-outofstock-window/out-of-stock-window/out-of-stock-window.component.spec.ts | TypeScript |
ArrowFunction |
() => {
fixture = TestBed.createComponent(OutOfStockWindowComponent);
component = fixture.componentInstance;
fixture.detectChanges();
} | AJEETX/Pharmacy-Mangment-System | src/app/mainwindow/a-exp-outofstock-window/out-of-stock-window/out-of-stock-window.component.spec.ts | TypeScript |
ClassDeclaration |
@NgModule({
declarations: [],
imports: [
SharedModule
],
providers: [
{
provide: HTTP_INTERCEPTORS,
useClass: HttpInterceptorService,
multi: true
},
AuthService,
AuthGuard,
]
})
export class CoreModule { } | nirajkarki12/leader-registration | src/app/modules/core/core.module.ts | TypeScript |
ArrowFunction |
() => {
test('all changes when total amount is below limit', () => {
const summary = createSummary(
[
{
type: ChangeType.FieldRemoved,
message: 'breaking-1',
criticality: {
level: CriticalityLevel.Breaking,
},
},
{
type: ... | kamilkisiela/graphql-schema-comparator | packages/github/__tests__/utils.ts | TypeScript |
ArrowFunction |
() => {
const summary = createSummary(
[
{
type: ChangeType.FieldRemoved,
message: 'breaking-1',
criticality: {
level: CriticalityLevel.Breaking,
},
},
{
type: ChangeType.FieldRemoved,
message: 'breaking-2',
... | kamilkisiela/graphql-schema-comparator | packages/github/__tests__/utils.ts | TypeScript |
ArrowFunction |
() => {
const summary = createSummary(
[
{
type: ChangeType.FieldRemoved,
message: 'breaking-1',
criticality: {
level: CriticalityLevel.Breaking,
},
},
{
type: ChangeType.FieldRemoved,
message: 'breaking-2',
... | kamilkisiela/graphql-schema-comparator | packages/github/__tests__/utils.ts | TypeScript |
ArrowFunction |
() => {
const summary = createSummary(
[
{
type: ChangeType.FieldRemoved,
message: 'breaking-1',
criticality: {
level: CriticalityLevel.Breaking,
},
},
{
type: ChangeType.FieldRemoved,
message: 'breaking-2',
... | kamilkisiela/graphql-schema-comparator | packages/github/__tests__/utils.ts | TypeScript |
ClassDeclaration | /*
* 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 to in writing, software
* distribu... | 0xflotus/metatron-discovery | discovery-frontend/src/app/domain/dashboard/dashboard.globalOptions.ts | TypeScript |
ClassDeclaration | /**
* 대시보드 옵션 - 레이아웃 형태 정의 옵션 구조체
*/
export class BoardLayoutOptions {
public layoutType:BoardLayoutType; // Layout Type
public layoutHeight:number; // height value, if layoutType set FIT_TO_HEIGHT
public widgetPadding:number; // widget 간 간격
constructor() {
this.layoutType = BoardLayoutType.FIT_... | 0xflotus/metatron-discovery | discovery-frontend/src/app/domain/dashboard/dashboard.globalOptions.ts | TypeScript |
ClassDeclaration | /**
* 대시보드 옵션 - 차트 속성 표시 옵션 구조체
*/
export class BoardWidgetOptions {
public showTitle: WidgetShowType;
public showLegend: WidgetShowType;
public showMinimap: WidgetShowType;
constructor() {
this.showTitle = WidgetShowType.BY_WIDGET;
this.showLegend = WidgetShowType.BY_WIDGET;
this.showMinimap = W... | 0xflotus/metatron-discovery | discovery-frontend/src/app/domain/dashboard/dashboard.globalOptions.ts | TypeScript |
ClassDeclaration | /**
* 대시보드 옵션 - 실시간 옵션 구조체
*/
export class BoardSyncOptions {
public enabled: boolean = false;
public interval: number;
constructor(interval?: number) {
if (interval) {
this.enabled = true;
this.interval = interval;
}
}
} | 0xflotus/metatron-discovery | discovery-frontend/src/app/domain/dashboard/dashboard.globalOptions.ts | TypeScript |
EnumDeclaration | /**
* 레이아웃 타입
*/
export enum BoardLayoutType {
FIT_TO_SCREEN = <any>'FIT_TO_SCREEN',
FIT_TO_HEIGHT = <any>'FIT_TO_HEIGHT'
} | 0xflotus/metatron-discovery | discovery-frontend/src/app/domain/dashboard/dashboard.globalOptions.ts | TypeScript |
EnumDeclaration | /**
* 위젯 표시 여부
*/
export enum WidgetShowType {
ON = <any>'ON',
OFF = <any>'OFF',
BY_WIDGET = <any>'BY_WIDGET'
} | 0xflotus/metatron-discovery | discovery-frontend/src/app/domain/dashboard/dashboard.globalOptions.ts | TypeScript |
ArrowFunction |
loader => this.updateNotification(loader ? NotificationTypeEnum.Loader : NotificationTypeEnum.None) | TopWebGhost/Yahoo-API-Angular | src/client/app/core/api-notification.ts | TypeScript |
ArrowFunction |
error => this.updateNotification(error ? NotificationTypeEnum.Error : NotificationTypeEnum.None, error) | TopWebGhost/Yahoo-API-Angular | src/client/app/core/api-notification.ts | TypeScript |
ClassDeclaration |
export class CoreApiNotification extends Subscriptions {
notification:string;
notificationType:NotificationTypeEnum;
button:NotificationButtonInterface;
constructor(private state:CoreApiStateService,
private apiService:any) {
super();
this.subscriptions.push(state.loader$.subscribe(
... | TopWebGhost/Yahoo-API-Angular | src/client/app/core/api-notification.ts | TypeScript |
ClassDeclaration |
export class NotificationActions {
static Reload = 'reload';
} | TopWebGhost/Yahoo-API-Angular | src/client/app/core/api-notification.ts | TypeScript |
MethodDeclaration |
notificationAction(type:string) {
if (type === NotificationActions.Reload) {
this.apiService.reload();
}
} | TopWebGhost/Yahoo-API-Angular | src/client/app/core/api-notification.ts | TypeScript |
MethodDeclaration |
updateNotification(type:NotificationTypeEnum, value:any = null, button:NotificationButtonInterface = null) {
this.notificationType = type;
if (type === NotificationTypeEnum.Error) {
this.notification = value.value;
this.button = {
icon: 'refresh',
text: 'Try Again',
action: ... | TopWebGhost/Yahoo-API-Angular | src/client/app/core/api-notification.ts | TypeScript |
ClassDeclaration |
export default class PriceInput extends DecimalInput {
decimals(): number {
return app.forum.attribute('priceDecimals');
}
} | flamarkt/core | js/src/common/components/PriceInput.ts | TypeScript |
MethodDeclaration |
decimals(): number {
return app.forum.attribute('priceDecimals');
} | flamarkt/core | js/src/common/components/PriceInput.ts | TypeScript |
FunctionDeclaration |
export function getLab(args: GetLabArgs, opts?: pulumi.InvokeOptions): Promise<GetLabResult> {
if (!opts) {
opts = {}
}
if (!opts.version) {
opts.version = utilities.getVersion();
}
return pulumi.runtime.invoke("azure-nextgen:labservices/latest:getLab", {
"expand": args.exp... | test-wiz-sec/pulumi-azure-nextgen | sdk/nodejs/labservices/latest/getLab.ts | TypeScript |
InterfaceDeclaration |
export interface GetLabArgs {
/**
* Specify the $expand query. Example: 'properties($select=maxUsersInLab)'
*/
readonly expand?: string;
/**
* The name of the lab Account.
*/
readonly labAccountName: string;
/**
* The name of the lab.
*/
readonly labName: string;
... | test-wiz-sec/pulumi-azure-nextgen | sdk/nodejs/labservices/latest/getLab.ts | TypeScript |
InterfaceDeclaration | /**
* Represents a lab.
*/
export interface GetLabResult {
/**
* Object id of the user that created the lab.
*/
readonly createdByObjectId: string;
/**
* Lab creator name
*/
readonly createdByUserPrincipalName: string;
/**
* Creation date for the lab
*/
readonly c... | test-wiz-sec/pulumi-azure-nextgen | sdk/nodejs/labservices/latest/getLab.ts | TypeScript |
TypeAliasDeclaration |
export type IDataColumn = Column & {
title?: string;
disableHidden?: boolean;
disableSortBy?: boolean;
filterValue?: any;
preFilteredRows?: any;
setFilter?: any;
}; | RFXTechnologies/fleet | frontend/interfaces/datatable_config.ts | TypeScript |
InterfaceDeclaration | /**
* tasks
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ma... | allegroai/clearml-web | src/app/business-logic/model/tasks/tasksEnqueueManyResponseSucceeded.ts | TypeScript |
ClassDeclaration |
export abstract class Source {
size(): number;
map(options?: any): any;
sourceAndMap(options?: any): {
source: string;
map: RawSourceMap;
};
updateHash(hash: Hash): void;
source(options?: any): string;
node(options?: any): any;
listNode(options?: any): any;
li... | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
ClassDeclaration |
export class CachedSource {
_source: Source;
_cachedSource: string;
_cachedSize: number;
_cachedMaps: {
[prop: string]: RawSourceMap
};
node: (options: any) => SourceNode;
listMap: (options: any) => SourceListMap;
constructor(source: Source);
source(): string;
size():... | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
ClassDeclaration |
export class ConcatSource extends Source implements SourceAndMapMixin {
children: Array<(string | Source)>;
constructor(...args: Array<(string | Source)>);
add(item: string | Source): void;
source(): string;
size(): number;
node(options: any): SourceNode;
listMap(options: any): Source... | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
ClassDeclaration |
export class LineToLineMappedSource extends Source implements SourceAndMapMixin {
_value: string;
_name: string;
_originalSource: string;
constructor(value: string, name: string, originalSource: string);
source(): string;
node(options: any): SourceNode;
listMap(options: any): SourceList... | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
ClassDeclaration |
export class OriginalSource extends Source implements SourceAndMapMixin {
_value: string;
_name: string;
constructor(value: string, name: string);
source(): string;
node(
options?: {
columns?: boolean;
}
): SourceNode;
listMap(options: any): SourceListMap;
... | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
ClassDeclaration |
export class PrefixSource extends Source implements SourceAndMapMixin {
_source: Source | string;
_prefix: Source | string;
constructor(prefix: Source | string, source: Source | string);
source(): string;
node(options: any): SourceNode;
listMap(options: any): SourceListMap;
updateHash(... | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
ClassDeclaration |
export class RawSource extends Source {
_value: string;
constructor(value: string);
source(): string;
map(options: any): null;
node(options: any): SourceNode;
listMap(options: any): SourceListMap;
updateHash(hash: Hash): void;
} | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
ClassDeclaration |
export class ReplaceSource extends Source implements SourceAndMapMixin {
_source: Source;
_name: string;
replacements: any[][];
constructor(source: Source, name: string);
replace(start: number, end: number, newValue: string): void;
insert(pos: number, newValue: string): void;
source(): ... | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
ClassDeclaration |
export class SourceMapSource extends Source implements SourceAndMapMixin {
_value: string;
_name: string;
_sourceMap: SourceMapGenerator | RawSourceMap;
_originalSource: string;
_innerSourceMap: RawSourceMap;
constructor(
value: string,
name: string,
sourceMap: SourceMa... | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface SourceAndMapMixin {
map(options: { columns?: boolean }): RawSourceMap;
sourceAndMap(options: { columns?: boolean }): {
source: string;
map: RawSourceMap;
};
} | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
size(): number; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
map(options?: any): any; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
sourceAndMap(options?: any): {
source: string;
map: RawSourceMap;
}; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
updateHash(hash: Hash): void; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
source(options?: any): string; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
node(options?: any): any; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
listNode(options?: any): any; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
listMap(options?: any): any; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
source(): string; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
sourceAndMap(options: any): {
source: string;
map: RawSourceMap;
}; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
map(options: any): RawSourceMap; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
add(item: string | Source): void; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
node(options: any): SourceNode; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
listMap(options: any): SourceListMap; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
node(
options?: {
columns?: boolean;
}
): SourceNode; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
map(options: any): null; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
replace(start: number, end: number, newValue: string): void; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
insert(pos: number, newValue: string): void; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
_sortReplacements(): void; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
_replaceString(str: string): string; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
_replacementToSourceNode(oldNode: SourceNode, newString: string): string | SourceNode; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
_splitSourceNode(node: SourceNode, position: SourceNode[]): SourceNode[]; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
_splitSourceNode(node: string, position: number): number; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
_splitString(str: string, position: number): string[]; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
node(): SourceNode; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
MethodDeclaration |
listMap(
options: {
module?: boolean;
}
): SourceListMap; | Danlock/DefinitelyTyped | types/webpack-sources/index.d.ts | TypeScript |
ArrowFunction |
(res, rej) =>
ctx.req.session!.destroy((err) => {
if (err) return rej(false);
ctx.res.clearCookie('qid');
return res(true);
}) | JustineLicuanan/create-graphql-starter | public/auth-template/src/resolvers/AuthResolver.ts | TypeScript |
ArrowFunction |
(err) => {
if (err) return rej(false);
ctx.res.clearCookie('qid');
return res(true);
} | JustineLicuanan/create-graphql-starter | public/auth-template/src/resolvers/AuthResolver.ts | TypeScript |
ClassDeclaration |
@Resolver()
export class AuthResolver {
@Mutation(() => User)
async register(
@Arg('input') input: ResolverTypes.RegisterInput
): Promise<User> {
return await User.create(input).save();
}
@Mutation(() => User)
async login(
@Arg('input') input: ResolverTypes.LoginInput,
@Ctx() { req }: MyContext
): Prom... | JustineLicuanan/create-graphql-starter | public/auth-template/src/resolvers/AuthResolver.ts | TypeScript |
MethodDeclaration |
@Mutation(() => User)
async register(
@Arg('input') input: ResolverTypes.RegisterInput
): Promise<User> {
return await User.create(input).save();
} | JustineLicuanan/create-graphql-starter | public/auth-template/src/resolvers/AuthResolver.ts | TypeScript |
MethodDeclaration |
@Mutation(() => User)
async login(
@Arg('input') input: ResolverTypes.LoginInput,
@Ctx() { req }: MyContext
): Promise<User> {
const user = await User.findOne({ email: input.email });
if (!user) {
throw new ArgumentValidationError([
{
target: {
email: input.email,
},
value: input... | JustineLicuanan/create-graphql-starter | public/auth-template/src/resolvers/AuthResolver.ts | TypeScript |
MethodDeclaration |
@Query(() => User, { nullable: true })
async me(@Ctx() { req }: MyContext): Promise<User | undefined> {
return (req.session as any).user;
} | JustineLicuanan/create-graphql-starter | public/auth-template/src/resolvers/AuthResolver.ts | TypeScript |
MethodDeclaration |
@Mutation(() => Boolean)
logout(@Ctx() ctx: MyContext): Promise<boolean> {
return new Promise((res, rej) =>
ctx.req.session!.destroy((err) => {
if (err) return rej(false);
ctx.res.clearCookie('qid');
return res(true);
})
);
} | JustineLicuanan/create-graphql-starter | public/auth-template/src/resolvers/AuthResolver.ts | TypeScript |
FunctionDeclaration |
export default function GetScriptLanguagesApi(this: That, params?: T.GetScriptLanguagesRequest | TB.GetScriptLanguagesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.GetScriptLanguagesResponse>; | Vasenti/viewgames_api_v2 | node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.d.ts | TypeScript |
FunctionDeclaration |
export default function GetScriptLanguagesApi(this: That, params?: T.GetScriptLanguagesRequest | TB.GetScriptLanguagesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.GetScriptLanguagesResponse, unknown>>; | Vasenti/viewgames_api_v2 | node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.d.ts | TypeScript |
FunctionDeclaration |
export default function GetScriptLanguagesApi(this: That, params?: T.GetScriptLanguagesRequest | TB.GetScriptLanguagesRequest, options?: TransportRequestOptions): Promise<T.GetScriptLanguagesResponse>; | Vasenti/viewgames_api_v2 | node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.d.ts | TypeScript |
InterfaceDeclaration |
interface That {
transport: Transport;
} | Vasenti/viewgames_api_v2 | node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.d.ts | TypeScript |
FunctionDeclaration | /**
* Creates a {@link vscode.Task Task} to build all targets in this package.
*/
function createBuildAllTask(folder: vscode.WorkspaceFolder): vscode.Task {
const additionalArgs: string[] = [];
if (process.platform !== "darwin") {
additionalArgs.push("--enable-test-discovery");
}
if (process.p... | compnerd/vscode-swift | src/SwiftTaskProvider.ts | TypeScript |
FunctionDeclaration | /**
* Creates a {@link vscode.Task Task} to run an executable target.
*/
function createBuildTasks(product: Product, folder: vscode.WorkspaceFolder): vscode.Task[] {
const debugArguments = process.platform === "win32" ? ["-Xlinker", "-debug:dwarf"] : [];
return [
createSwiftTask(
[
... | compnerd/vscode-swift | src/SwiftTaskProvider.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.