source: trip-planner-front/node_modules/ajv-formats/dist/index.d.ts@ 6a80231

Last change on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 580 bytes
Line 
1import { FormatMode, FormatName } from "./formats";
2import type { Plugin, Format } from "ajv";
3export { FormatMode, FormatName } from "./formats";
4export { LimitFormatError } from "./limit";
5export interface FormatOptions {
6 mode?: FormatMode;
7 formats?: FormatName[];
8 keywords?: boolean;
9}
10export declare type FormatsPluginOptions = FormatName[] | FormatOptions;
11export interface FormatsPlugin extends Plugin<FormatsPluginOptions> {
12 get: (format: FormatName, mode?: FormatMode) => Format;
13}
14declare const formatsPlugin: FormatsPlugin;
15export default formatsPlugin;
Note: See TracBrowser for help on using the repository browser.