An open API service indexing awesome lists of open source software.

https://github.com/unstubbable/ts-possibly-undefined-bug

Example for the TypeScript bug `Object is possibly 'undefined'`
https://github.com/unstubbable/ts-possibly-undefined-bug

Last synced: 3 months ago
JSON representation

Example for the TypeScript bug `Object is possibly 'undefined'`

Awesome Lists containing this project

README

        

## Example for the TypeScript bug `Object is possibly 'undefined'`

### How to reproduce

```shell
npm install
npm run test
```

This results in an unexpected compiler error:

```shell
index.ts(4,21): error TS2532: Object is possibly 'undefined'.
```