Platform
@agros/tools / Platform
Interface: Platform
Table of contents
Properties
- generateComponent
- getBootstrapCode
- getComponentFactoryCode
- getDecoratorImports
- getDefaultConfig
- getEntryTailCode
- 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
packages/agros-tools/src/platform.interface.ts:32
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
packages/agros-tools/src/platform.interface.ts:29
getComponentFactoryCode
• getComponentFactoryCode: (data
: GetComponentFactoryCodeData
) => string
| FactoryCode
Type declaration
▸ (data
): string
| FactoryCode
Parameters
Name | Type |
---|---|
data | GetComponentFactoryCodeData |
Returns
string
| FactoryCode
Defined in
packages/agros-tools/src/platform.interface.ts:30
getDecoratorImports
• getDecoratorImports: () => Omit
<EnsureImportOptions
, "statements"
>[]
Type declaration
▸ (): Omit
<EnsureImportOptions
, "statements"
>[]
Returns
Omit
<EnsureImportOptions
, "statements"
>[]
Defined in
packages/agros-tools/src/platform.interface.ts:28
getDefaultConfig
• Optional
getDefaultConfig: () => Record
<string
, any
>
Type declaration
▸ (): Record
<string
, any
>
Returns
Record
<string
, any
>
Defined in
packages/agros-tools/src/platform.interface.ts:31
getEntryTailCode
• Optional
getEntryTailCode: (data
: EntryTailCodeData
) => string
[]
Type declaration
▸ (data
): string
[]
Parameters
Name | Type |
---|---|
data | EntryTailCodeData |
Returns
string
[]
Defined in
packages/agros-tools/src/platform.interface.ts:33
getLoaderImports
• getLoaderImports: () => Omit
<EnsureImportOptions
, "statements"
>[]
Type declaration
▸ (): Omit
<EnsureImportOptions
, "statements"
>[]
Returns
Omit
<EnsureImportOptions
, "statements"
>[]