Skip to content

Instantly share code, notes, and snippets.

@eemeli
Created January 4, 2021 11:19
Show Gist options
  • Save eemeli/a860c474d8a8a221985aa3fc883baed0 to your computer and use it in GitHub Desktop.
Save eemeli/a860c474d8a8a221985aa3fc883baed0 to your computer and use it in GitHub Desktop.
Minimal repro for TypeStrong/typedoc#1449
export function fails<T extends [foo: any, bar?: any]>(a: T): T {
return a;
}
{
"name": "typedoc-tuple-error",
"version": "1.0.0",
"scripts": {
"test": "typedoc index.ts"
},
"author": "Eemeli Aro <[email protected]>",
"license": "ISC",
"devDependencies": {
"typedoc": "^0.20.10",
"typescript": "^4.1.3"
}
}
@eemeli
Copy link
Author

eemeli commented Jan 4, 2021

To reproduce:

  1. Clone this gist
  2. npm install
  3. npm test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment