ts
No long description provided.
Installation
dagger install github.com/sipsma/dagger/sdk/typescript/standalone@4c85e5047e9c4a1ed71b82a17fe710e53c1b93d8Entrypoint
Return Type
Ts Example
dagger -m github.com/sipsma/dagger/sdk/typescript/standalone@4c85e5047e9c4a1ed71b82a17fe710e53c1b93d8 call \
func (m *MyModule) Example() *dagger.Ts {
return dag.
Ts()
}@function
def example() -> dagger.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 *dagger.ModuleSource, introspectionJson string) *dagger.Container {
return dag.
Ts().
ModuleRuntime(modSource, introspectionJson)
}@function
def example(mod_source: dagger.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 *dagger.ModuleSource, introspectionJson string) *dagger.GeneratedCode {
return dag.
Ts().
Codegen(modSource, introspectionJson)
}@function
def example(mod_source: dagger.ModuleSource, introspection_json: str) -> dagger.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/sipsma/dagger/sdk/typescript/standalone@4c85e5047e9c4a1ed71b82a17fe710e53c1b93d8 call \
required-pathsfunc (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()
}