@dicebear/core 11.0.0 → 11.1.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/OptionsDescriptor.d.ts +1 -0
- package/lib/OptionsDescriptor.js +4 -0
- package/lib/Resolver.js +12 -6
- package/lib/Style/Color.d.ts +5 -0
- package/lib/Style/Color.js +7 -0
- package/lib/Style.d.ts +4 -3
- package/lib/Style.js +6 -57
- package/lib/StyleDefinition.d.ts +1 -0
- package/lib/Utils/Color.d.ts +12 -0
- package/lib/Utils/Color.js +38 -4
- package/lib/Validator/OptionsSchemaValidator.d.ts +3 -0
- package/lib/Validator/OptionsSchemaValidator.js +1659 -0
- package/lib/Validator/OptionsValidator.d.ts +11 -2
- package/lib/Validator/OptionsValidator.js +21 -1653
- package/lib/Validator/StyleSchemaValidator.d.ts +3 -0
- package/lib/Validator/StyleSchemaValidator.js +5178 -0
- package/lib/Validator/StyleValidator.d.ts +13 -2
- package/lib/Validator/StyleValidator.js +165 -5113
- package/lib/index.d.ts +6 -6
- package/lib/index.js +7 -23
- package/lib/lite.js +5 -5
- package/package.json +2 -2
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Validates avatar options: the nesting depth, the `options.json` schema, and
|
|
3
|
+
* that every number is finite, which the compiled schema validator does not
|
|
4
|
+
* enforce everywhere. Throws an {@link OptionsValidationError} on the first
|
|
5
|
+
* check that fails.
|
|
6
|
+
*
|
|
7
|
+
* The package root runs it before an {@link Avatar} is built. The lite entry
|
|
8
|
+
* skips it, as it skips every validator.
|
|
9
|
+
*/
|
|
10
|
+
export declare class OptionsValidator {
|
|
11
|
+
static validate(data: unknown): void;
|
|
3
12
|
}
|