@simtlix/simfinity-core 3.5.7 → 3.5.8
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/README.md +3 -1
- package/package.json +54 -8
- package/src/const/QLValue.js +11 -3
- package/src/errors/internal-server.error.js +5 -1
- package/src/runtime.js +343 -143
- package/src/scalars.js +53 -33
- package/src/validators.js +159 -47
- package/types/auth/errors.d.ts +16 -0
- package/types/auth/expressions.d.ts +25 -0
- package/types/auth/index.d.ts +36 -0
- package/types/auth/rules.d.ts +30 -0
- package/types/index.d.ts +55 -12
- package/types/plugins.d.ts +12 -0
- package/types/scalars.d.ts +16 -0
- package/types/validators.d.ts +20 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Declarations for `@simtlix/simfinity-core/validators`. The default export is the root
|
|
3
|
+
* `validators` namespace, and every named export has the type of the same member, so the two
|
|
4
|
+
* cannot drift. A root type used by these helpers belongs in the `export type` list below.
|
|
5
|
+
*/
|
|
6
|
+
import { validators } from './index.js';
|
|
7
|
+
|
|
8
|
+
export type { FieldValidations, FieldValidator, ItemValidators } from './index.js';
|
|
9
|
+
export const stringLength: typeof validators.stringLength;
|
|
10
|
+
export const maxLength: typeof validators.maxLength;
|
|
11
|
+
export const pattern: typeof validators.pattern;
|
|
12
|
+
export const email: typeof validators.email;
|
|
13
|
+
export const url: typeof validators.url;
|
|
14
|
+
export const numberRange: typeof validators.numberRange;
|
|
15
|
+
export const positive: typeof validators.positive;
|
|
16
|
+
export const arrayLength: typeof validators.arrayLength;
|
|
17
|
+
export const dateFormat: typeof validators.dateFormat;
|
|
18
|
+
export const futureDate: typeof validators.futureDate;
|
|
19
|
+
|
|
20
|
+
export default validators;
|