Module frameworks/filesystem/getDataHelpers
Functions
Const getElement
- getElement(metadata: undefined | null | Record<string, any>): string
Parameters
metadata: undefined | null | Record<string, any>
Returns string
Const getExtraProps
- getExtraProps(metadata: undefined | null | Record<string, any>): string
Parameters
metadata: undefined | null | Record<string, any>
Returns string
Const getImports
- getImports(metadata: undefined | null | Record<string, any>, outputFolderTokens?: string, tokensRelativeImportPrefix?: string): string
Parameters
metadata: undefined | null | Record<string, any>
Optional outputFolderTokens: string
Optional tokensRelativeImportPrefix: string
Returns string
Const getText
- getText(metadata: undefined | null | Record<string, any>): string
Parameters
metadata: undefined | null | Record<string, any>
Returns string
Helper block to decouple logic from prepareWrite function