persona-community-5/.pnpm-store/v3/files/ec/5ba4283778d5d7d856a5bdde5a505c18ac4f68527e4adde7ee146ff59c8e236486bfb8ee0be6bff35d8c825260cb34dfd1cd7fa918c259d9fbe5e052871016
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

31 lines
1.1 KiB
Plaintext

import type { AssertionContext, AssertResult, CustomFunction } from '../../../config/types';
import type { Location } from '../../../ref-utils';
export type AssertionFnContext = AssertionContext & {
baseLocation: Location;
rawValue?: any;
};
export type AssertionFn = (value: any, condition: any, ctx: AssertionFnContext) => AssertResult[];
export type Asserts = {
pattern: AssertionFn;
notPattern: AssertionFn;
enum: AssertionFn;
defined: AssertionFn;
required: AssertionFn;
disallowed: AssertionFn;
undefined: AssertionFn;
nonEmpty: AssertionFn;
minLength: AssertionFn;
maxLength: AssertionFn;
casing: AssertionFn;
sortOrder: AssertionFn;
mutuallyExclusive: AssertionFn;
mutuallyRequired: AssertionFn;
requireAny: AssertionFn;
ref: AssertionFn;
const: AssertionFn;
};
export declare const runOnKeysSet: Set<keyof Asserts>;
export declare const runOnValuesSet: Set<keyof Asserts>;
export declare const asserts: Asserts;
export declare function buildAssertCustomFunction(fn: CustomFunction): AssertionFn;