frontend/.pnpm-store/v3/files/c6/ab6ddda9ac06e0dacb042d35e5521898dfecb5f314259c0654719e3f24ca5c809039a42f210ca9e0787cfa1ad3d2779e3013d00333b701118f780c54229973

26 lines
847 B
Plaintext

import { Fork } from "../types";
import { ASTNode } from "./types";
export interface Path<V = any> {
value: V;
parentPath: any;
name: any;
__childCache: object | null;
getValueProperty(name: any): any;
get(...names: any[]): any;
each(callback: any, context: any): any;
map(callback: any, context: any): any;
filter(callback: any, context: any): any;
shift(): any;
unshift(...args: any[]): any;
push(...args: any[]): any;
pop(): any;
insertAt(index: number, ...args: any[]): any;
insertBefore(...args: any[]): any;
insertAfter(...args: any[]): any;
replace(replacement?: ASTNode, ...args: ASTNode[]): any;
}
export interface PathConstructor {
new <V = any>(value: any, parentPath?: any, name?: any): Path<V>;
}
export default function pathPlugin(fork: Fork): PathConstructor;