fastest-validator icon indicating copy to clipboard operation
fastest-validator copied to clipboard

added module declaration ("declare module")

Open andreash opened this issue 2 years ago • 2 comments

The d.ts file is missing a module declaration for typescript to work. Without the declaration, typescript does not accept, for example Validator as a constructable expression.

andreash avatar Apr 06 '23 11:04 andreash

Could you show an example when it causes issue?

icebob avatar Apr 09 '23 13:04 icebob

and I guess this will break the module in other runtime like deno. because they don't have such a module concept like what node does.

erfanium avatar Apr 10 '23 10:04 erfanium