massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / table / node_modules / ajv / lib / types / index.ts
index 2dac604481aedd7aeeae09f8c9e6543b942777b2..03a06e6426c177b45d489166f9ecbb829e3c2f0e 100644 (file)
@@ -5,12 +5,14 @@ import type {KeywordCxt} from "../compile/validate"
 import type Ajv from "../core"
 
 interface _SchemaObject {
+  id?: string
   $id?: string
   $schema?: string
   [x: string]: any // TODO
 }
 
 export interface SchemaObject extends _SchemaObject {
+  id?: string
   $id?: string
   $schema?: string
   $async?: false
@@ -220,3 +222,12 @@ export type AddedFormat =
   | AsyncFormatDefinition<number>
 
 export type Format = AddedFormat | string
+
+export interface RegExpEngine {
+  (pattern: string, u: string): RegExpLike
+  code: string
+}
+
+export interface RegExpLike {
+  test: (s: string) => boolean
+}