Closed ostrowr closed 4 years ago
If this library is used in projects with declaration: true, it was impossible to export a schema.
declaration: true
This was because the type wasn't explicitly specified in createSchema, and it seems impossible to do so while using a unique symbol.
This fixes the import issue at the cost of using a string instead of a unique symbol. I'd prefer to use a symbol.
Fixes #22
If this library is used in projects with
declaration: true
, it was impossible to export a schema.This was because the type wasn't explicitly specified in createSchema, and it seems impossible to do so while using a unique symbol.
This fixes the import issue at the cost of using a string instead of a unique symbol. I'd prefer to use a symbol.