Sha256: 8cd7362102d928e21b291a013f80fc68a038d4506d26ea9948c676e3fa1110d9

Contents?: true

Size: 847 Bytes

Versions: 1

Compression:

Stored size: 847 Bytes

Contents

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;

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wice_grid-7.1.0 node_modules/ast-types/lib/path.d.ts