Skip to content

Commit

Permalink
fix: add missing definitions
Browse files Browse the repository at this point in the history
Fixes #604
  • Loading branch information
davidbonnet committed Apr 28, 2022
1 parent 01d5ba6 commit 9bb7bcf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions astring.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -79,4 +79,11 @@ export function generate(node: Node, options?: Options<Writable>): Writable
/**
* Base code generator.
*/
export const GENERATOR: Generator;
export const GENERATOR: Generator

/**
* Base code generator.
*
* @deprecated Use {@link GENERATOR} instead.
*/
export const baseGenerator: Generator

0 comments on commit 9bb7bcf

Please sign in to comment.