isomorphic-git: TypeScript: error TS2339: Property 'debug' does not exist
TypeScript reports this error:
node_modules/isomorphic-git/index.d.ts:931:121 - error TS2339: Property 'debug' does not exist on type '{ fs: CallbackFsClient | PromiseFsClient; onProgress?: ProgressCallback | undefined; dir: string; gitdir?: string | undefined; ... 6 more ...; force?: boolean | undefined; }'.
931 export function checkout({ fs, onProgress, dir, gitdir, remote, ref: _ref, filepaths, noCheckout, noUpdateHead, dryRun, debug, force, }: {
~~~~~
Found 1 error.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 24 (15 by maintainers)
Thank you. The latest release works without
"DOM"
.Meh. As usual, it’s not really a bug, it’s a feature. All the
@types/*
modules are included by default. Just like how if you don’t specifylib
it includes"DOM"
. (Edit: Well. It might still be a bug, because why should the output change depending on whethercheckJs
is true or not?)By adding
"types": []
to my tsconfig.json file, I am able to prevent the compiler from adding these weirdimport("v8")
references. 🙄Another npm publish coming up…
Alright. Took 30 minutes, but I was able to reproduce it in a small test case:
https://github.com/wmhilton-contrib/ts-jsdoc-aliasing-bug
Will file a bug with microsoft/typescript later.
OK. Here’s an example project you can clone and use as a starting point:
https://github.com/isomorphic-git/examples
Thanks for reporting this! I’m so sorry. SHould be fixed in v1.1.2 out on npm right now.