mesqueeb / is-what

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.
https://mesqueeb.github.io/is-what/
MIT License
168 stars 18 forks source link

export * from "is-what" No type export #88

Open biggerstar opened 1 week ago

biggerstar commented 1 week ago

For example, I am packaging a toolkit for my own use, using export * from "is-what" can not export all types and pass them through to the new package, although there is no type prompt, but js functions can be used normally I wonder if this is a type definition flaw in Is-what

mesqueeb commented 1 week ago

@biggerstar is-what latest major version is ESM only. Your project must enable ESM by adding "type": "module" to package.json.

If you share a minimal reproduction I can look into it!

biggerstar commented 1 week ago

biggerstar-tools You can look at this library

mesqueeb commented 6 days ago

@biggerstar thanks I'll try to reproduce it. how to reproduce the error? I'll try to debug it from there