UNPKG

@compas/code-gen

Version:

Generate various boring parts of your server

257 lines (256 loc) 11.4 kB
/** * @template T * @typedef {import("@compas/stdlib").Either<T, AppError>} Either */ /** * @param {undefined|any|import("../common/types").CodeGenAnyOfTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenAnyOfType>} */ export function validateCodeGenAnyOfType( value: undefined | any | import("../common/types").CodeGenAnyOfTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenAnyOfType>; /** * @param {undefined|any|import("../common/types").CodeGenAnyTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenAnyType>} */ export function validateCodeGenAnyType( value: undefined | any | import("../common/types").CodeGenAnyTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenAnyType>; /** * @param {undefined|any|import("../common/types").CodeGenArrayTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenArrayType>} */ export function validateCodeGenArrayType( value: undefined | any | import("../common/types").CodeGenArrayTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenArrayType>; /** * @param {undefined|any|import("../common/types").CodeGenBooleanTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenBooleanType>} */ export function validateCodeGenBooleanType( value: undefined | any | import("../common/types").CodeGenBooleanTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenBooleanType>; /** * @param {undefined|any|import("../common/types").CodeGenCollectableErrorInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenCollectableError>} */ export function validateCodeGenCollectableError( value: | undefined | any | import("../common/types").CodeGenCollectableErrorInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenCollectableError>; /** * @param {undefined|any|import("../common/types").CodeGenContextInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenContext>} */ export function validateCodeGenContext( value: undefined | any | import("../common/types").CodeGenContextInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenContext>; /** * @param {undefined|any|import("../common/types").CodeGenCrudTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenCrudType>} */ export function validateCodeGenCrudType( value: undefined | any | import("../common/types").CodeGenCrudTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenCrudType>; /** * @param {undefined|any|import("../common/types").CodeGenDateTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenDateType>} */ export function validateCodeGenDateType( value: undefined | any | import("../common/types").CodeGenDateTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenDateType>; /** * @param {undefined|any|import("../common/types").CodeGenExtendTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenExtendType>} */ export function validateCodeGenExtendType( value: undefined | any | import("../common/types").CodeGenExtendTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenExtendType>; /** * @param {undefined|any|import("../common/types").CodeGenFileInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenFile>} */ export function validateCodeGenFile( value: undefined | any | import("../common/types").CodeGenFileInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenFile>; /** * @param {undefined|any|import("../common/types").CodeGenFileTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenFileType>} */ export function validateCodeGenFileType( value: undefined | any | import("../common/types").CodeGenFileTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenFileType>; /** * @param {undefined|any|import("../common/types").CodeGenGenericTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenGenericType>} */ export function validateCodeGenGenericType( value: undefined | any | import("../common/types").CodeGenGenericTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenGenericType>; /** * @param {undefined|any|import("../common/types").CodeGenNamePartInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenNamePart>} */ export function validateCodeGenNamePart( value: undefined | any | import("../common/types").CodeGenNamePartInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenNamePart>; /** * @param {undefined|any|import("../common/types").CodeGenNumberTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenNumberType>} */ export function validateCodeGenNumberType( value: undefined | any | import("../common/types").CodeGenNumberTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenNumberType>; /** * @param {undefined|any|import("../common/types").CodeGenObjectTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenObjectType>} */ export function validateCodeGenObjectType( value: undefined | any | import("../common/types").CodeGenObjectTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenObjectType>; /** * @param {undefined|any|import("../common/types").CodeGenOmitTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenOmitType>} */ export function validateCodeGenOmitType( value: undefined | any | import("../common/types").CodeGenOmitTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenOmitType>; /** * @param {undefined|any|import("../common/types").CodeGenPickTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenPickType>} */ export function validateCodeGenPickType( value: undefined | any | import("../common/types").CodeGenPickTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenPickType>; /** * @param {undefined|any|import("../common/types").CodeGenReferenceTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenReferenceType>} */ export function validateCodeGenReferenceType( value: undefined | any | import("../common/types").CodeGenReferenceTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenReferenceType>; /** * @param {undefined|any|import("../common/types").CodeGenRelationTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenRelationType>} */ export function validateCodeGenRelationType( value: undefined | any | import("../common/types").CodeGenRelationTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenRelationType>; /** * @param {undefined|any|import("../common/types").CodeGenRouteInvalidationTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenRouteInvalidationType>} */ export function validateCodeGenRouteInvalidationType( value: | undefined | any | import("../common/types").CodeGenRouteInvalidationTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenRouteInvalidationType>; /** * @param {undefined|any|import("../common/types").CodeGenRouteTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenRouteType>} */ export function validateCodeGenRouteType( value: undefined | any | import("../common/types").CodeGenRouteTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenRouteType>; /** * @param {undefined|any|import("../common/types").CodeGenStringTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenStringType>} */ export function validateCodeGenStringType( value: undefined | any | import("../common/types").CodeGenStringTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenStringType>; /** * @param {undefined|any|import("../common/types").CodeGenStructureInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenStructure>} */ export function validateCodeGenStructure( value: undefined | any | import("../common/types").CodeGenStructureInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenStructure>; /** * @param {undefined|any|import("../common/types").CodeGenTemplateStateInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenTemplateState>} */ export function validateCodeGenTemplateState( value: undefined | any | import("../common/types").CodeGenTemplateStateInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenTemplateState>; /** * @param {undefined|any|import("../common/types").CodeGenTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenType>} */ export function validateCodeGenType( value: undefined | any | import("../common/types").CodeGenTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenType>; /** * @param {undefined|any|import("../common/types").CodeGenTypeSettingsInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenTypeSettings>} */ export function validateCodeGenTypeSettings( value: undefined | any | import("../common/types").CodeGenTypeSettingsInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenTypeSettings>; /** * @param {undefined|any|import("../common/types").CodeGenUuidTypeInput} value * @param {string|undefined} [propertyPath] * @returns {Either<import("../common/types").CodeGenUuidType>} */ export function validateCodeGenUuidType( value: undefined | any | import("../common/types").CodeGenUuidTypeInput, propertyPath?: string | undefined, ): Either<import("../common/types").CodeGenUuidType>; export type Either<T> = import("@compas/stdlib").Either<T, AppError>; import { AppError } from "@compas/stdlib"; //# sourceMappingURL=validators.d.ts.map