UNPKG

@nestjs/graphql

Version:

Nest - modern, fast, powerful node.js web framework (@graphql)

14 lines (13 loc) 912 B
import * as ts from 'typescript'; export declare function getDecoratorOrUndefinedByNames(names: string[], decorators: ts.NodeArray<ts.Decorator>): ts.Decorator | undefined; export declare function getTypeReferenceAsString(type: ts.Type, typeChecker: ts.TypeChecker): string; export declare function isPromiseOrObservable(type: string): boolean; export declare function hasPropertyKey(key: string, properties: ts.NodeArray<ts.PropertyAssignment>): boolean; export declare function replaceImportPath(typeReference: string, fileName: string): string; export declare function isDynamicallyAdded(identifier: ts.Node): boolean; export declare function isAutoGeneratedEnumUnion(type: ts.Type, typeChecker: ts.TypeChecker): ts.Type; export declare function isAutoGeneratedTypeUnion(type: ts.Type): boolean; export declare function extractTypeArgumentIfArray(type: ts.Type): { type: ts.Type; isArray: boolean; };