@stoplight/types
Advanced tools
Comparing version 9.1.2 to 10.0.0
@@ -9,9 +9,10 @@ import { IDiagnostic } from './diagnostics'; | ||
} | ||
export interface IParserASTResult<T = unknown, A extends object = object, L = unknown> { | ||
export interface IParserASTResult<T = unknown, A extends object = object, L = unknown, M = unknown> { | ||
data: T; | ||
ast: A; | ||
lineMap: L; | ||
metadata?: M; | ||
} | ||
export declare type GetJsonPathForPosition<A extends object, L = unknown> = (result: IParserASTResult<unknown, A, L>, position: IPosition) => JsonPath | undefined; | ||
export declare type GetLocationForJsonPath<A extends object, L = unknown> = (result: IParserASTResult<unknown, A, L>, path: JsonPath, closest?: boolean) => ILocation | undefined; | ||
export declare type GetJsonPathForPosition<R extends IParserASTResult> = (result: R, position: IPosition) => JsonPath | undefined; | ||
export declare type GetLocationForJsonPath<R extends IParserASTResult> = (result: R, path: JsonPath, closest?: boolean) => ILocation | undefined; | ||
export interface IPosition { | ||
@@ -18,0 +19,0 @@ /** |
{ | ||
"name": "@stoplight/types", | ||
"version": "9.1.2", | ||
"version": "10.0.0", | ||
"description": "Common typings for the Stoplight ecosystem.", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
501
28628