Files
documentation/node_modules/estree-util-value-to-estree/index.d.ts
2024-03-22 03:47:51 +05:30

16 lines
451 B
TypeScript

import { type Expression } from 'estree';
export interface Options {
/**
* If true, treat objects that have a prototype as plain objects.
*/
instanceAsObject?: boolean;
}
/**
* Convert a value to an ESTree node
*
* @param value The value to convert
* @param options Additional options to configure the output.
* @returns The ESTree node.
*/
export declare function valueToEstree(value: unknown, options?: Options): Expression;