UNPKG

@boostercloud/metadata-booster

Version:

Emits detailed metadata of your types. You can then get it in runtime to deal with schema-aware operation, like defining GraphQL schemas, ORM operations, etc.

5 lines (4 loc) 419 B
import * as ts from 'typescript'; import { ClassInfo } from './metadata-extractors'; export declare function createClassMetadataDecorator(f: ts.NodeFactory, classInfo: ClassInfo, filterInterfaceFunctionName: ts.Identifier, typesByModule: Record<string, string>): ts.Decorator; export declare function createFilterInterfaceFunction(f: ts.NodeFactory, filterInterfaceFunctionName: ts.Identifier): ts.FunctionDeclaration;