Skip to content

Generated Typescript now uses null to represent unit types - #82

Merged
snowsignal merged 2 commits into
mainfrom
jane/undefined-to-null
Mar 23, 2023
Merged

snowsignal merged 2 commits into
mainfrom
jane/undefined-to-null

Conversation

@snowsignal

Copy link
Copy Markdown
Contributor

() is represented as null instead of undefined - this also applies to unit enum variants.

Fixes #43.

@lazgilebits lazgilebits left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirming all of the newly generated code is valid TypeScript 👍

Approved!

@LuminaSapphira

Copy link
Copy Markdown
Collaborator

LGTM!

@snowsignal
snowsignal merged commit 07e6220 into main Mar 23, 2023
@snowsignal
snowsignal deleted the jane/undefined-to-null branch March 23, 2023 20:07
LuminaSapphira pushed a commit that referenced this pull request Apr 13, 2023
This reverts commit 07e6220, reversing
changes made to 3d7aa59.

Fixes #96.
LuminaSapphira pushed a commit that referenced this pull request Apr 13, 2023
LuminaSapphira pushed a commit that referenced this pull request Apr 13, 2023
Revert "Merge pull request #82 from 1Password/jane/undefined-to-null"
LuminaSapphira pushed a commit that referenced this pull request Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typescript: unit seems to be wrongly defined as undefined in Typescript

3 participants