is-plain-object icon indicating copy to clipboard operation
is-plain-object copied to clipboard

fix: export type information for node16 module resolution

Open RebeccaStevens opened this issue 2 years ago • 5 comments

See TS 4.7-rc Release Notes for details.

RebeccaStevens avatar May 18 '22 05:05 RebeccaStevens

I was about to create a PR for this, but @RebeccaStevens has done a great job here already. Please @jonschlinkert merge it whenever possible 🙂

zvictor avatar Jun 15 '22 20:06 zvictor

@jonschlinkert @TrySound Is there any chance to move this forward? This blocks people using TS ESM with is-plain-object.

chentsulin avatar Aug 19 '22 04:08 chentsulin

@jonschlinkert is this library unmaintained?

e1himself avatar May 07 '23 22:05 e1himself

Just ran into this issue when migrating a codebase to "moduleResolution": "node16". I use @tsconfig/node18 for my tsconfig.json and they have recently published moduleResolution changes to remove the legacy node/node10 usage. So I can imagine more of the same issues appearing in other NPM packages.

Anyone know of an alternative NPM package that you can use to resolve this issue? Otherwise I'll just fork this one, fix the issue and publish to NPM.

andykenward avatar Jun 28 '23 09:06 andykenward

https://github.com/sindresorhus/is-plain-obj works well with TypeScript ESM.

chentsulin avatar Jun 28 '23 10:06 chentsulin