ajv-validator / ajv-validator/ajv-formats
Export formats separately, without scoping
Ouverte
- Langage dominant
- TypeScript
- Étoiles
- 228
- Forks
- 42
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
## Related issues
- ajv-validator/ajv-formats#68
By scoping formats into `fullFormats` and `fastFormats`:
- it's harder to do code generation as it's impossible to `import` a format in a single line
- it makes it more complicated not to have multiple imports of the same variable
As a breaking change proposal, let's export two modules instead:
- `formats-fast.js`
- `formats-full.js`
This way, when doing code generation, it'd be possible to have a single line import:
```js
import { int32 } from "ajv-formats/dist/formats-full"
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.