UNPKG

@stylable/core

Version:

CSS for Components

12 lines 543 B
import { StateArguments } from './types'; export interface StateResult { res: string; errors: string[] | null; } export declare type SubValidator = (value: string, ...rest: string[]) => StateResult; export interface StateParamType { subValidators?: Record<string, SubValidator>; validate(value: any, args: StateArguments, resolveParam: any, validateDefinition: boolean, validateValue: boolean): StateResult; } export declare const systemValidators: Record<string, StateParamType>; //# sourceMappingURL=state-validators.d.ts.map