UNPKG

guardz

Version:

A simple and lightweight TypeScript type guard library for runtime type validation.

85 lines (84 loc) 4.93 kB
export { isType, type TypeGuardFn, type TypeGuardFnConfig, } from './typeguards/isType'; export { isSchema, isShape, isNestedType } from './typeguards/isSchema'; export { isObjectWith } from './typeguards/isObjectWith'; export { isObject } from './typeguards/isObject'; export { guardWithTolerance } from './typeguards/guardWithTolerance'; export { isBranded, type Branded, type PredicateFn } from './typeguards/isBranded'; export { BrandSymbols, type BrandedWith } from './types/BrandSymbols'; export { isAny } from './typeguards/isAny'; export { isBoolean } from './typeguards/isBoolean'; export { isDate } from './typeguards/isDate'; export { isDefined } from './typeguards/isDefined'; export { isNil } from './typeguards/isNil'; export { isNumber } from './typeguards/isNumber'; export { isString } from './typeguards/isString'; export { isUnknown } from './typeguards/isUnknown'; export { isFunction } from './typeguards/isFunction'; export { isFile } from './typeguards/isFile'; export { isFileList } from './typeguards/isFileList'; export { isBlob } from './typeguards/isBlob'; export { isFormData } from './typeguards/isFormData'; export { isURL } from './typeguards/isURL'; export { isURLSearchParams } from './typeguards/isURLSearchParams'; export { isMap } from './typeguards/isMap'; export { isSet } from './typeguards/isSet'; export { isIndexSignature } from './typeguards/isIndexSignature'; export { isError } from './typeguards/isError'; export { isArrayWithEachItem } from './typeguards/isArrayWithEachItem'; export { isNonEmptyArray } from './typeguards/isNonEmptyArray'; export { isNonEmptyArrayWithEachItem } from './typeguards/isNonEmptyArrayWithEachItem'; export { isTuple } from './typeguards/isTuple'; export { isNonNullObject } from './typeguards/isNonNullObject'; export { isObjectWithEachItem } from './typeguards/isObjectWithEachItem'; export { isPartialOf } from './typeguards/isPartialOf'; export { isPick } from './typeguards/isPick'; export { isOmit } from './typeguards/isOmit'; export { isNonEmptyString } from './typeguards/isNonEmptyString'; export { isNonNegativeNumber } from './typeguards/isNonNegativeNumber'; export { isPositiveNumber } from './typeguards/isPositiveNumber'; export { isNonPositiveNumber } from './typeguards/isNonPositiveNumber'; export { isNegativeNumber } from './typeguards/isNegativeNumber'; export { isInteger } from './typeguards/isInteger'; export { isPositiveInteger } from './typeguards/isPositiveInteger'; export { isNegativeInteger } from './typeguards/isNegativeInteger'; export { isNonNegativeInteger } from './typeguards/isNonNegativeInteger'; export { isNonPositiveInteger } from './typeguards/isNonPositiveInteger'; export { isNumeric } from './typeguards/isNumeric'; export { isBooleanLike } from './typeguards/isBooleanLike'; export { isDateLike } from './typeguards/isDateLike'; export { isBigInt } from './typeguards/isBigInt'; export { isOneOf } from './typeguards/isOneOf'; export { isOneOfTypes } from './typeguards/isOneOfTypes'; export { isIntersectionOf } from './typeguards/isIntersectionOf'; export { isExtensionOf } from './typeguards/isExtensionOf'; export { isNullOr } from './typeguards/isNullOr'; export { isUndefinedOr } from './typeguards/isUndefinedOr'; export { isNilOr } from './typeguards/isNilOr'; export { isAsserted } from './typeguards/isAsserted'; export { isEnum } from './typeguards/isEnum'; export { isEqualTo } from './typeguards/isEqualTo'; export { isRegex } from './typeguards/isRegex'; export { isPattern } from './typeguards/isPattern'; export { generateTypeGuardError } from './typeguards/generateTypeGuardError'; export { by } from './utils/arrayUtils'; export type { ValidationError, ValidationTree, ValidationResult, ValidationContext } from './utils/validationUtils'; export type { NonEmptyArray } from './types/NonEmptyArray'; export type { NonEmptyString } from './types/NonEmptyString'; export type { NonNegativeNumber } from './types/NonNegativeNumber'; export type { NonPositiveNumber } from './types/NonPositiveNumber'; export type { NegativeNumber } from './types/NegativeNumber'; export type { Nullable } from './types/Nullable'; export type { PositiveNumber } from './types/PositiveNumber'; export type { Integer } from './types/Integer'; export type { PositiveInteger } from './types/PositiveInteger'; export type { NegativeInteger } from './types/NegativeInteger'; export type { NonNegativeInteger } from './types/NonNegativeInteger'; export type { NonPositiveInteger } from './types/NonPositiveInteger'; export type { Numeric } from './types/Numeric'; export type { DateLike } from './types/DateLike'; export type { BooleanLike } from './types/BooleanLike'; export type { Pattern } from './types/Pattern'; export { toNumber } from './converters/toNumber'; export { toDate } from './converters/toDate'; export { toBoolean } from './converters/toBoolean'; export { isSymbol } from './typeguards/isSymbol';