UNPKG

@mendix/pluggable-widgets-tools

Version:
18 lines (17 loc) 711 B
export declare class ImportableModule { readonly from: string; readonly exportedMembers: string[]; constructor(from: string, exportedMembers: string[]); /** * Creates an import statement which binds names found in the given code to exported members of the module. */ generateImportStatement(unboundCode: string): ImportStatement; } export declare class ImportStatement { readonly from: string; readonly members: string[]; constructor(from: string, members: string[]); get type(): "single" | "multiple" | "none"; toString(): string; } export declare function generateImports(importableModules: ImportableModule[], generatedTypesCode: string): ImportStatement[];