@palmares/schemas
Version:
This defines a default schema definition for validation of data, it abstract popular schema validation libraries like zod, yup, valibot and others"
20 lines • 896 B
TypeScript
import { FieldAdapter } from '.';
import type { WithFallback } from '../../utils';
import type { ArrayAdapterTranslateArgs } from '../types';
export declare function arrayFieldAdapter<TTranslate extends ArrayFieldAdapter['translate'], TToString extends ArrayFieldAdapter['toString'], TFormatError extends ArrayFieldAdapter['formatError'], TParse extends ArrayFieldAdapter['parse']>(args: {
translate: TTranslate;
toString?: TToString;
formatError?: TFormatError;
parse?: TParse;
}): typeof ArrayFieldAdapter & {
new (): ArrayFieldAdapter & {
translate: TTranslate;
toString: TToString;
formatError: TFormatError;
parse: TParse;
};
};
export declare class ArrayFieldAdapter extends FieldAdapter {
translate(_fieldAdapter: FieldAdapter, _args: ArrayAdapterTranslateArgs): any | WithFallback<'array'>;
}
//# sourceMappingURL=array.d.ts.map