Skip to main content

Dagger NodeJS SDK

api/client.gen.InterfaceTypeDef

A definition of a custom interface defined in a Module.

Hierarchy​

  • BaseClient

    ↳ InterfaceTypeDef

Constructors​

constructor​

new InterfaceTypeDef(parent?, _id?, _description?, _name?, _sourceModuleName?): InterfaceTypeDef

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

Parameters​

NameType
parent?Object
parent.ctxContext
parent.queryTree?QueryTree[]
_id?InterfaceTypeDefID
_description?string
_name?string
_sourceModuleName?string

Returns​

InterfaceTypeDef

Overrides​

BaseClient.constructor

Properties​

_description​

Private Optional Readonly _description: string = undefined


_id​

Private Optional Readonly _id: InterfaceTypeDefID = undefined


_name​

Private Optional Readonly _name: string = undefined


_sourceModuleName​

Private Optional Readonly _sourceModuleName: string = undefined

Methods​

description​

description(): Promise<string>

The doc string for the interface, if any.

Returns​

Promise<string>


functions​

functions(): Promise<Function_[]>

Functions defined on this interface, if any.

Returns​

Promise<Function_[]>


id​

id(): Promise<InterfaceTypeDefID>

A unique identifier for this InterfaceTypeDef.

Returns​

Promise<InterfaceTypeDefID>


name​

name(): Promise<string>

The name of the interface.

Returns​

Promise<string>


sourceModuleName​

sourceModuleName(): Promise<string>

If this InterfaceTypeDef is associated with a Module, the name of the module. Unset otherwise.

Returns​

Promise<string>