UNPKG

eslint-plugin-json-schema-validator

Version:
16 lines (15 loc) 639 B
import type { ESLintExpression } from "vue-eslint-parser/ast"; import type { RuleContext, SourceCode } from "../../../types"; declare const UNKNOWN: unique symbol; declare type TUnknown = typeof UNKNOWN; export declare type PathData = { key: [number, number] | null | ((sourceCode: SourceCode) => [number, number] | null); data: unknown; children: Readonly<Map<string, PathData | TUnknown>>; }; export declare type AnalyzedJsAST = { object: unknown; pathData: PathData; }; export declare function analyzeJsAST(node: ESLintExpression, rootRange: [number, number], context: RuleContext): AnalyzedJsAST | null; export {};