mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 23:42:32 +01:00
fd22b0bf58
V2 (Laravel re-make)
16 lines
580 B
TypeScript
16 lines
580 B
TypeScript
import { FormatMode, FormatName } from "./formats";
|
|
import type { Plugin, Format } from "ajv";
|
|
export { FormatMode, FormatName } from "./formats";
|
|
export { LimitFormatError } from "./limit";
|
|
export interface FormatOptions {
|
|
mode?: FormatMode;
|
|
formats?: FormatName[];
|
|
keywords?: boolean;
|
|
}
|
|
export declare type FormatsPluginOptions = FormatName[] | FormatOptions;
|
|
export interface FormatsPlugin extends Plugin<FormatsPluginOptions> {
|
|
get: (format: FormatName, mode?: FormatMode) => Format;
|
|
}
|
|
declare const formatsPlugin: FormatsPlugin;
|
|
export default formatsPlugin;
|