deep-object-diff icon indicating copy to clipboard operation
deep-object-diff copied to clipboard

Fix typings resolution when using TypeScript 4.7+ with ESM

Open Nitive opened this issue 3 years ago • 0 comments

TypeScript in ESM mode is trying to use file index.d.mts for types but there is no such file. So we need to provide custom path to typings file. Root types field is ignored in ESM mode

For reference: same issue in another package https://github.com/telegraf/telegraf/issues/1629#issue-1248403562

Nitive avatar Jun 07 '22 14:06 Nitive