Platform
@agros/platforms / Platform
Interface: Platform
Table of contents
Properties
- generateComponent
- getBootstrapCode
- getComponentFactoryCode
- getDecoratorImports
- getDefaultConfig
- getLoaderImports
Properties
generateComponent
• Optional generateComponent: <T>(componentInstance: ComponentInstance, component: any) => Promise<T>
Type declaration
▸ <T>(componentInstance, component): Promise<T>
Type parameters
| Name | Type |
|---|---|
T | any |
Parameters
| Name | Type |
|---|---|
componentInstance | ComponentInstance |
component | any |
Returns
Promise<T>
Defined in
getBootstrapCode
• getBootstrapCode: (ensuredImportsMap: Record<string, string>, addVirtualFile: AddVirtualFile) => string
Type declaration
▸ (ensuredImportsMap, addVirtualFile): string
Parameters
| Name | Type |
|---|---|
ensuredImportsMap | Record<string, string> |
addVirtualFile | AddVirtualFile |
Returns
string
Defined in
getComponentFactoryCode
• getComponentFactoryCode: (ensuredImportsMap: Record<string, string>, filePath: string, componentIdentifierName: string, lazy: boolean) => string
Type declaration
▸ (ensuredImportsMap, filePath, componentIdentifierName, lazy): string
Parameters
| Name | Type |
|---|---|
ensuredImportsMap | Record<string, string> |
filePath | string |
componentIdentifierName | string |
lazy | boolean |
Returns
string
Defined in
getDecoratorImports
• getDecoratorImports: () => Omit<EnsureImportOptions, "statements">[]
Type declaration
▸ (): Omit<EnsureImportOptions, "statements">[]
Returns
Omit<EnsureImportOptions, "statements">[]
Defined in
getDefaultConfig
• Optional getDefaultConfig: () => Record<string, any>
Type declaration
▸ (): Record<string, any>
Returns
Record<string, any>
Defined in
getLoaderImports
• getLoaderImports: () => Omit<EnsureImportOptions, "statements">[]
Type declaration
▸ (): Omit<EnsureImportOptions, "statements">[]
Returns
Omit<EnsureImportOptions, "statements">[]