Skip to content

assertNotNull function and an option to transform non-null assertion operators to use it #98

Closed
@DetachHead

Description

@DetachHead

something like this

declare function assertNotNull<T>(value: T): Exclude<T, null|undefined>

and a new transformer option like transformNonNullAssertions to transform stuff like foo!.bar to assertNotNull(foo).bar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions