17 lines
565 B
TypeScript
17 lines
565 B
TypeScript
import type { OperationNode } from './operation-node.js';
|
|
export type JSONPathLegType = 'Member' | 'ArrayLocation';
|
|
export interface JSONPathLegNode extends OperationNode {
|
|
readonly kind: 'JSONPathLegNode';
|
|
readonly type: JSONPathLegType;
|
|
readonly value: string | number;
|
|
}
|
|
type JSONPathLegNodeFactory = Readonly<{
|
|
is(node: OperationNode): node is JSONPathLegNode;
|
|
create(type: JSONPathLegType, value: string | number): Readonly<JSONPathLegNode>;
|
|
}>;
|
|
/**
|
|
* @internal
|
|
*/
|
|
export declare const JSONPathLegNode: JSONPathLegNodeFactory;
|
|
export {};
|