UNPKG

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.

15 lines (14 loc) 296 B
export interface TypeInfo { name: string; parameters: Array<TypeInfo>; } export interface PropertyInfo { name: string; isMethod: boolean; typeInfo: TypeInfo; } export interface ClassInfo { name: string; fields: Array<PropertyInfo>; methods: Array<PropertyInfo>; }