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'`
- Host: GitHub
- URL: https://github.com/unstubbable/ts-possibly-undefined-bug
- Owner: unstubbable
- Created: 2017-01-04T15:56:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-04T16:00:49.000Z (over 8 years ago)
- Last Synced: 2025-02-06T03:24:11.756Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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'.
```