If an application with stricter TS settings includes this module, they will get TS error, no way to ignore it. For example, with the default SvelteKit template, there will be errors.
Alternative is publishing .d.ts files instead of .ts files for the types field in package.json.
Ensure that
import type
is used when possibleMotivation
See https://github.com/microsoft/TypeScript/issues/41883
If an application with stricter TS settings includes this module, they will get TS error, no way to ignore it. For example, with the default SvelteKit template, there will be errors.
Alternative is publishing
.d.ts
files instead of.ts
files for thetypes
field inpackage.json
.