@nhtio/validation 0.1.0-master-1d06eb16 → 0.1.0-master-cb87a6f9
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/index.cjs +42401 -42340
- package/index.cjs.map +1 -1
- package/index.d.ts +2 -0
- package/index.mjs +42401 -42340
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/private/core/errors.d.ts +4 -0
- package/private/core/manifest.d.ts +1 -0
- package/private/core/root.d.ts +1 -8
- package/private/schemas/datetime.d.ts +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/private/core/root.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Modern ES6 + TypeScript reimplementation of Joi's root factory.
|
|
3
|
-
*
|
|
4
|
-
* Based on: https://github.com/hapijs/joi/blob/master/lib/index.js
|
|
5
|
-
*
|
|
6
|
-
* This module recreates Joi's internal root factory to enable deeper
|
|
7
|
-
* customization through schema type modifiers and shortcuts modifiers.
|
|
8
|
-
*/
|
|
9
1
|
import type { Root } from 'joi';
|
|
10
2
|
import type { Schema } from '../index';
|
|
11
3
|
export type SchemaTypeDefinition = Schema;
|
|
@@ -16,6 +8,7 @@ export interface RootFactoryOptions {
|
|
|
16
8
|
shortcutsModifiers?: ShortcutsMiddlewareFn[];
|
|
17
9
|
}
|
|
18
10
|
export declare class RootFactory {
|
|
11
|
+
static readonly $_cachedDescriptions: WeakMap<Schema, any>;
|
|
19
12
|
static readonly types: {
|
|
20
13
|
alternatives: any;
|
|
21
14
|
any: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DateTime } from 'luxon';
|
|
2
|
+
import { ExtensionFactory, CustomHelpers, Reference } from 'joi';
|
|
2
3
|
import type { Dayjs } from 'dayjs';
|
|
3
4
|
import type { Tokens } from '../types';
|
|
4
5
|
import type { AnySchema } from '../schemas';
|
|
5
|
-
import type { ExtensionFactory, CustomHelpers, Reference } from 'joi';
|
|
6
6
|
import type { Zone, LocaleOptions, DateObjectUnits, ZoneOptions, ToISOTimeOptions, ToISODateOptions, ToSQLOptions, ToRelativeOptions } from 'luxon';
|
|
7
7
|
type CallbackOrValue<T> = T | ((dt: DateTime, helpers: CustomHelpers) => T);
|
|
8
8
|
export declare const messages: {
|