Skip to main content

Dagger NodeJS SDK

api/client.gen.GeneratedCode

The result of running an SDK's codegen.

Hierarchy

  • BaseClient

    GeneratedCode

Constructors

constructor

new GeneratedCode(parent?, _id?): GeneratedCode

Constructor is used for internal usage only, do not create object from it.

Parameters

NameType
parent?Object
parent.ctxContext
parent.queryTree?QueryTree[]
_id?GeneratedCodeID

Returns

GeneratedCode

Overrides

BaseClient.constructor

Properties

_id

Private Optional Readonly _id: GeneratedCodeID = undefined

Methods

code

code(): Directory

The directory containing the generated code.

Returns

Directory


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

NameType
arg(param: GeneratedCode) => GeneratedCode

Returns

GeneratedCode


withVCSGeneratedPaths

withVCSGeneratedPaths(paths): GeneratedCode

Set the list of paths to mark generated in version control.

Parameters

NameType
pathsstring[]

Returns

GeneratedCode


withVCSIgnoredPaths

withVCSIgnoredPaths(paths): GeneratedCode

Set the list of paths to ignore in version control.

Parameters

NameType
pathsstring[]

Returns

GeneratedCode