Skip to content

fix: AsArgs default value type - #15681

Merged
elliott-with-the-longest-name-on-github merged 4 commits into
version-3from
fix-types-of-as-args
Jul 20, 2026
Merged

elliott-with-the-longest-name-on-github merged 4 commits into
version-3from
fix-types-of-as-args

Conversation

@paoloricciuti

Copy link
Copy Markdown
Member

The current types are a bit weird to work with...since it's expecting something if you have a variable that can be null or undefined it will yell at you (even tho it doesn't make sense since undefined is technically an acceptable value).

Furthermore the (string | {}) trick doesn't make sense here where the value can be anything (a number for example).

There's still one issue that I wasn't fully able to solve yet: for checkbox if you have a boolean value TS will complain because boolean is not assignable to true and false which is what the type is expecting (actual strict values, not just boolean).

Do you have any ideas on how to fix this?

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remote Forms not handling null values

5 participants