Something went wrong. Try again.
fork of hey-api/openapi-ts because I need some additional things
Something went wrong. Try again.
1.6 kB · 56 lines
TypeScript
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657import type { File } from './files/file';import type { BindingKind } from './symbols/types';
export interface ExportMember { /** * Name under which the symbol is exported in this file. * * export { Foo as Bar } from "./models" * * exportedName === "Bar" */ exportedName: string; /** Whether this export is type-only. */ isTypeOnly: boolean; /** Export flavor. */ kind: BindingKind; /** The exported name of the symbol in its source file. */ sourceName: string;}
export type ExportModule = Pick<ExportMember, 'isTypeOnly'> & { /** Whether this module can export all symbols: `export * from 'module'`. */ canExportAll: boolean; /** Members exported from this module. */ exports: Array<ExportMember>; /** Source file. */ from: File; /** Namespace export: `export * as ns from 'module'`. Mutually exclusive with `exports`. */ namespaceExport?: string;};
export interface ImportMember { /** Whether this import is type-only. */ isTypeOnly: boolean; /** * The name this symbol will have locally in this file. * This is where aliasing is applied: * * import { Foo as Foo$2 } from "./x" * * localName === "Foo$2" */ localName: string; /** The exported name of the symbol in its source file. */ sourceName: string;}
export type ImportModule = Pick<ImportMember, 'isTypeOnly'> & Pick<Partial<ImportMember>, 'localName'> & { /** Source file. */ from: File; /** List of symbols imported from this module. */ imports: Array<ImportMember>; /** Import flavor. */ kind: BindingKind; };