Socket
Socket
Sign inDemoInstall

@stoplight/types

Package Overview
Dependencies
Maintainers
15
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/types - npm Package Compare versions

Comparing version 9.1.2 to 10.0.0

7

dist/parsers.d.ts

@@ -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": [],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc