eslint-plugin-json-schema-validator
Version:
ESLint plugin that validates data using JSON Schema Validator.
11 lines (10 loc) • 328 B
TypeScript
import type { SourceCode } from "../../types";
export declare type GetLoc = (sourceCode: SourceCode) => [number, number];
export declare type NodeData<N> = {
key: GetLoc;
value: N | null;
} | {
key?: undefined;
value: N;
};
export declare type GetNodeFromPath<N> = (node: never, paths: string[]) => NodeData<N>;