Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
580 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | import { FormatMode, FormatName } from "./formats";
|
---|
| 2 | import type { Plugin, Format } from "ajv";
|
---|
| 3 | export { FormatMode, FormatName } from "./formats";
|
---|
| 4 | export { LimitFormatError } from "./limit";
|
---|
| 5 | export interface FormatOptions {
|
---|
| 6 | mode?: FormatMode;
|
---|
| 7 | formats?: FormatName[];
|
---|
| 8 | keywords?: boolean;
|
---|
| 9 | }
|
---|
| 10 | export declare type FormatsPluginOptions = FormatName[] | FormatOptions;
|
---|
| 11 | export interface FormatsPlugin extends Plugin<FormatsPluginOptions> {
|
---|
| 12 | get: (format: FormatName, mode?: FormatMode) => Format;
|
---|
| 13 | }
|
---|
| 14 | declare const formatsPlugin: FormatsPlugin;
|
---|
| 15 | export default formatsPlugin;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.