@nhtio/validation 0.1.0-master-5ddd6b01
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/LICENSE.md +9 -0
- package/README.md +5 -0
- package/index.cjs +5 -0
- package/index.cjs.map +1 -0
- package/index.d.ts +32 -0
- package/index.mjs +5 -0
- package/index.mjs.map +1 -0
- package/package.json +29 -0
- package/private/guards.d.ts +67 -0
- package/private/index.d.ts +51 -0
- package/private/schemas/bigint.d.ts +85 -0
- package/private/schemas/datetime.d.ts +562 -0
- package/private/schemas.d.ts +157 -0
- package/private/types.d.ts +69 -0
- package/private/utils.d.ts +106 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A powerful schema description language and data validator
|
|
3
|
+
* @module @nhtio/validation
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The current version of the package.
|
|
7
|
+
*
|
|
8
|
+
* @tip This is a constant that is replaced during the build process with the actual version of the package.
|
|
9
|
+
*/
|
|
10
|
+
export declare const version: string;
|
|
11
|
+
export * from './private';
|
|
12
|
+
/**
|
|
13
|
+
* Validate email address and domain.
|
|
14
|
+
* A local version of the `@hapi/address` package used to ensure matching versions.
|
|
15
|
+
*/
|
|
16
|
+
export * as address from '@hapi/address';
|
|
17
|
+
/**
|
|
18
|
+
* Math and string formula parser.
|
|
19
|
+
* A local version of the `@hapi/formula` package used to ensure matching versions.
|
|
20
|
+
*/
|
|
21
|
+
export * as formula from '@hapi/formula';
|
|
22
|
+
/**
|
|
23
|
+
* Return the filename and line number of the calling function.
|
|
24
|
+
* A local version of the `@hapi/pinpoint` package is used to ensure matching versions.
|
|
25
|
+
*/
|
|
26
|
+
export { location } from '@hapi/pinpoint';
|
|
27
|
+
/**
|
|
28
|
+
* TLDS list for domain validation.
|
|
29
|
+
* A local version of the `@hapi/tlds` package is used to ensure matching versions.
|
|
30
|
+
*/
|
|
31
|
+
export { tlds } from '@hapi/tlds';
|
|
32
|
+
export type { Types, BasicType, LanguageMessages, PresenceMode, ErrorFormattingOptions, BaseValidationOptions, ValidationOptions, AsyncValidationOptions, LanguageMessageTemplate, ErrorValidationOptions, RenameOptions, TopLevelDomainOptions, HierarchySeparatorOptions, DependencyOptions, EmailOptions, DomainOptions, HexOptions, IpOptions, GuidVersions, GuidOptions, UriOptions, DataUriOptions, Base64Options, SwitchCases, SwitchDefault, WhenOptions, WhenSchemaOptions, Cache, CacheProvisionOptions, CacheConfiguration, CompileOptions, IsSchemaOptions, ReferenceOptions, StringRegexOptions, RuleOptions, ErrorReport, ValidationError, ValidationErrorItem, ValidationErrorFunction, ValidationWarning, ValidationResult, CreateErrorOptions, ModifyOptions, MutateRegisterOptions, SetFlagOptions, CustomHelpers, CustomValidator, ExternalHelpers, ExternalValidationFunction, SchemaLikeWithoutArray, SchemaLike, NullableType, IsPrimitiveSubset, IsUnion, IsNonPrimitiveSubsetUnion, ObjectPropertiesSchema, PartialSchemaMap, StrictSchemaMap, SchemaMap, Schema, SchemaFunction, AddRuleOptions, GetRuleOptions, SchemaInternals, Description, Context, State, ArraySortOptions, ArrayUniqueOptions, ComparatorFunction, ObjectPatternOptions, Reference, ExtensionBoundSchema, RuleArgs, RuleMethod, ExtensionRule, CoerceResult, CoerceFunction, CoerceObject, ExtensionFlag, ExtensionTermManifest, ExtensionTerm, Extension, ExtensionFactory, Err, Root, } from 'joi';
|