跳到主要内容
版本:0.7.x

Platform

@agros/platforms / Platform

Interface: Platform

Table of contents​

Properties​

Properties​

generateComponent​

• Optional generateComponent: <T>(componentInstance: ComponentInstance, component: any) => Promise<T>

Type declaration​

▸ <T>(componentInstance, component): Promise<T>

Type parameters​
NameType
Tany
Parameters​
NameType
componentInstanceComponentInstance
componentany
Returns​

Promise<T>

Defined in​

platform.interface.ts:17


getBootstrapCode​

• getBootstrapCode: (ensuredImportsMap: Record<string, string>, addVirtualFile: AddVirtualFile) => string

Type declaration​

▸ (ensuredImportsMap, addVirtualFile): string

Parameters​
NameType
ensuredImportsMapRecord<string, string>
addVirtualFileAddVirtualFile
Returns​

string

Defined in​

platform.interface.ts:9


getComponentFactoryCode​

• getComponentFactoryCode: (ensuredImportsMap: Record<string, string>, filePath: string, componentIdentifierName: string, lazy: boolean) => string

Type declaration​

▸ (ensuredImportsMap, filePath, componentIdentifierName, lazy): string

Parameters​
NameType
ensuredImportsMapRecord<string, string>
filePathstring
componentIdentifierNamestring
lazyboolean
Returns​

string

Defined in​

platform.interface.ts:10


getDecoratorImports​

• getDecoratorImports: () => Omit<EnsureImportOptions, "statements">[]

Type declaration​

▸ (): Omit<EnsureImportOptions, "statements">[]

Returns​

Omit<EnsureImportOptions, "statements">[]

Defined in​

platform.interface.ts:8


getDefaultConfig​

• Optional getDefaultConfig: () => Record<string, any>

Type declaration​

▸ (): Record<string, any>

Returns​

Record<string, any>

Defined in​

platform.interface.ts:16


getLoaderImports​

• getLoaderImports: () => Omit<EnsureImportOptions, "statements">[]

Type declaration​

▸ (): Omit<EnsureImportOptions, "statements">[]

Returns​

Omit<EnsureImportOptions, "statements">[]

Defined in​

platform.interface.ts:7