Skip to content

Instantly share code, notes, and snippets.

@lierdakil
Last active January 14, 2020 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lierdakil/d60962913651781250f7312b497d144a to your computer and use it in GitHub Desktop.
Save lierdakil/d60962913651781250f7312b497d144a to your computer and use it in GitHub Desktop.
Minimal typescript test project
node_modules
interface X {
x?: X
}
const x: X = {}
console.log(x.x.x.x)
console.log(x?.x?.x?.x)
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"typescript": {
"version": "3.7.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.4.tgz",
"integrity": "sha512-A25xv5XCtarLwXpcDNZzCGvW2D1S3/bACratYBx2sax8PefsFhlYmkQicKHvpYflFS8if4zne5zT5kpJ7pzuvw=="
}
}
}
{
"compilerOptions": {
"target": "es5",
"strict": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment