agsamantha/node_modules/jintr/dist/utils/index.d.ts

15 lines
527 B
TypeScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
import ESTree from 'estree';
import BaseJSNode from '../nodes/BaseJSNode.js';
import Visitor from '../visitor.js';
export declare const namedFunction: (name: string, fn: Function) => Function;
export interface JSNode<T extends BaseJSNode> extends BaseJSNode {
run(): ReturnType<T['run']>;
}
export interface JSNodeConstructor<T extends BaseJSNode> {
new (node: ESTree.Node, visitor: Visitor): JSNode<T>;
}
export declare class JinterError extends Error {
info?: any;
constructor(message: string, info?: any);
}