Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
16 lines
580 B
Plaintext
16 lines
580 B
Plaintext
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;
|