index
@agros/utils
@agros/utils
Table of contents
Interfaces
- BundlessPlatform
- CodeLocation
- ComponentScript
- EnsureImportOptions
- EnsureImportResult
- RequireFromStringOptions
Type Aliases
Functions
Type Aliases
EnsureImportType
Ƭ EnsureImportType: "named" | "default" | "namespace"
Defined in
Functions
ensureImport
▸ ensureImport(options): EnsureImportResult
Parameters
| Name | Type |
|---|---|
options | EnsureImportOptions |
Returns
Defined in
parseAST
▸ parseAST(source): ParseResult<File>
Parameters
| Name | Type |
|---|---|
source | string |
Returns
ParseResult<File>
Defined in
permanentlyReadJson
▸ permanentlyReadJson(pathname?): any
Parameters
| Name | Type |
|---|---|
pathname? | string |
Returns
any
Defined in
requireFromString
▸ requireFromString(code, options?): any
Parameters
| Name | Type |
|---|---|
code | string |
options? | RequireFromStringOptions |
Returns
any
Defined in
▸ requireFromString(code, filename?, options?): any
Parameters
| Name | Type |
|---|---|
code | string |
filename? | string |
options? | RequireFromStringOptions |
Returns
any
Defined in
requireModule
▸ requireModule(filename): any
Parameters
| Name | Type |
|---|---|
filename | string |
Returns
any