mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-07 19:25:13 +02:00
16 lines
451 B
TypeScript
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;
|