From 9bb7bcf7ab946bae3aab48b4d4b5edc72b52c208 Mon Sep 17 00:00:00 2001 From: David Bonnet Date: Thu, 28 Apr 2022 13:07:04 +0200 Subject: [PATCH] fix: add missing definitions Fixes #604 --- astring.d.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/astring.d.ts b/astring.d.ts index a45f8819..1c6cdbee 100644 --- a/astring.d.ts +++ b/astring.d.ts @@ -7,7 +7,7 @@ import type { Writable } from 'stream' */ export interface State { output: string - write(code: string): void + write(code: string, node?: EstreeNode): void writeComments: boolean indent: string lineEnd: string @@ -79,4 +79,11 @@ export function generate(node: Node, options?: Options): Writable /** * Base code generator. */ -export const GENERATOR: Generator; +export const GENERATOR: Generator + +/** + * Base code generator. + * + * @deprecated Use {@link GENERATOR} instead. + */ +export const baseGenerator: Generator