Skip to main content

Dagger NodeJS SDK

api/client.gen.FunctionArg

An argument accepted by a function.

This is a specification for an argument at function definition time, not an argument passed at function call time.

Hierarchy

  • BaseClient

    FunctionArg

Constructors

constructor

new FunctionArg(parent?, _id?, _defaultValue?, _description?, _name?): FunctionArg

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

Parameters

NameType
parent?Object
parent.ctxContext
parent.queryTree?QueryTree[]
_id?FunctionArgID
_defaultValue?JSON
_description?string
_name?string

Returns

FunctionArg

Overrides

BaseClient.constructor

Properties

_defaultValue

Private Optional Readonly _defaultValue: JSON = undefined


_description

Private Optional Readonly _description: string = undefined


_id

Private Optional Readonly _id: FunctionArgID = undefined


_name

Private Optional Readonly _name: string = undefined

Methods

defaultValue

defaultValue(): Promise<JSON>

A default value to use for this argument when not explicitly set by the caller, if any.

Returns

Promise<JSON>


description

description(): Promise<string>

A doc string for the argument, if any.

Returns

Promise<string>


id

id(): Promise<FunctionArgID>

A unique identifier for this FunctionArg.

Returns

Promise<FunctionArgID>


name

name(): Promise<string>

The name of the argument in lowerCamelCase format.

Returns

Promise<string>


typeDef

typeDef(): TypeDef

The type of the argument.

Returns

TypeDef