Class: GeneratedCode
The result of running an SDK's codegen.
Extends
BaseClient
Constructors
new GeneratedCode()
new GeneratedCode(
parent
?,_id
?):GeneratedCode
Constructor is used for internal usage only, do not create object from it.
Parameters
• parent?
• parent.ctx?: Context
• parent.queryTree?: QueryTree
[]
• _id?: GeneratedCodeID
Returns
Overrides
BaseClient.constructor
Methods
code()
code():
Directory
The directory containing the generated code.
Returns
id()
id():
Promise
<GeneratedCodeID
>
A unique identifier for this GeneratedCode.
Returns
Promise
<GeneratedCodeID
>
vcsGeneratedPaths()
vcsGeneratedPaths():
Promise
<string
[]>
List of paths to mark generated in version control (i.e. .gitattributes).
Returns
Promise
<string
[]>
vcsIgnoredPaths()
vcsIgnoredPaths():
Promise
<string
[]>
List of paths to ignore in version control (i.e. .gitignore).
Returns
Promise
<string
[]>
with()
with(
arg
):GeneratedCode
Call the provided function with current GeneratedCode.
This is useful for reusability and readability by not breaking the calling chain.
Parameters
• arg
Returns
withVCSGeneratedPaths()
withVCSGeneratedPaths(
paths
):GeneratedCode
Set the list of paths to mark generated in version control.
Parameters
• paths: string
[]
Returns
withVCSIgnoredPaths()
withVCSIgnoredPaths(
paths
):GeneratedCode
Set the list of paths to ignore in version control.
Parameters
• paths: string
[]