feature: default value for string parameter

Open
#7,447 0 comments 0 reactions 1 assignee View on GitHub

@rubenfiszel is already working on this.

Since Dec 24, 2025.

Assessment

This issue has not been assessed yet.

Description

export async function main(
  a: number = 3,
  b: string = "hi"
) {
  // ...
}

In this case, a would be 3 when a user does not input from UI.

However, b will be "" (empty string), not "hi", when a user does not input from UI.

IMHO, respecting a default value will be suitable for 99% cases.

What do you think?

Dominant language
Rust
Stars
18k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
328

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from windmill-labs/windmill

All issues in windmill-labs/windmill

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.