Skip to content

.not assertion is not recognized by TypeScript #4218

@kosgdk

Description

@kosgdk

Describe the bug

Looks like 4209 broke types for not assertion:

image

Reproduction

https://github.com/kosgdk/vitest-example

System Info

System:
    OS: Windows 10 10.0.17763
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-11390H @ 3.40GHz
    Memory: 12.97 GB / 31.74 GB
  Binaries:
    Node: 18.17.1 - C:\Program Files\nodejs\node.EXE
    npm: 9.6.7 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.3.1 - ~\AppData\Local\pnpm\pnpm.EXE
  Browsers:
    Internet Explorer: 11.0.17763.2989

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p5-urgentFix build-breaking bugs affecting most users, should be released ASAP (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions