ts
This is a thin wrapper around the TypeScript SDK to workaround https://github.com/dagger/dagger/issues/7583 until the next engine release.
Installation
dagger install github.com/dagger/dagger/sdk/typescript/standalone@2cbda9c7547809a35eb93ff7677e5bab4afd00c1
Entrypoint
Return Type
Ts
Example
dagger -m github.com/dagger/dagger/sdk/typescript/standalone@2cbda9c7547809a35eb93ff7677e5bab4afd00c1 call \
func (m *myModule) example() *Ts {
return dag.
Ts()
}
@function
def example() -> dag.Ts:
return (
dag.ts()
)
@func()
example(): Ts {
return dag
.ts()
}
Types
Ts 🔗
moduleRuntime() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | ModuleSource ! | - | No description provided |
introspectionJson | String ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(modSource *ModuleSource, introspectionJson string) *Container {
return dag.
Ts().
ModuleRuntime(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: str) -> dagger.Container:
return (
dag.ts()
.module_runtime(mod_source, introspection_json)
)
@func()
example(modSource: ModuleSource, introspectionJson: string): Container {
return dag
.ts()
.moduleRuntime(modSource, introspectionJson)
}
codegen() 🔗
Returns lines that match a pattern in the files of the provided Directory
Return Type
GeneratedCode !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | ModuleSource ! | - | No description provided |
introspectionJson | String ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(modSource *ModuleSource, introspectionJson string) *GeneratedCode {
return dag.
Ts().
Codegen(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: str) -> dag.GeneratedCode:
return (
dag.ts()
.codegen(mod_source, introspection_json)
)
@func()
example(modSource: ModuleSource, introspectionJson: string): GeneratedCode {
return dag
.ts()
.codegen(modSource, introspectionJson)
}
requiredPaths() 🔗
Return Type
[String ! ] !
Example
dagger -m github.com/dagger/dagger/sdk/typescript/standalone@2cbda9c7547809a35eb93ff7677e5bab4afd00c1 call \
required-paths
func (m *myModule) example(ctx context.Context) []string {
return dag.
Ts().
RequiredPaths(ctx)
}
@function
async def example() -> List[str]:
return await (
dag.ts()
.required_paths()
)
@func()
async example(): Promise<string[]> {
return dag
.ts()
.requiredPaths()
}