diff --git a/crates/codegen/runtime/npm/src/runtime/napi-bindings/generated/index.d.ts b/crates/codegen/runtime/npm/src/runtime/napi-bindings/generated/index.d.ts index 798b0c4f8f..645beb7cb8 100644 --- a/crates/codegen/runtime/npm/src/runtime/napi-bindings/generated/index.d.ts +++ b/crates/codegen/runtime/npm/src/runtime/napi-bindings/generated/index.d.ts @@ -8,7 +8,7 @@ /* auto-generated by NAPI-RS */ -export namespace kinds { +export declare namespace kinds { export enum NonterminalKind { Stub1 = "Stub1", Stub2 = "Stub2", @@ -35,7 +35,7 @@ export namespace kinds { Stub3 = "Stub3", } } -export namespace language { +export declare namespace language { export class Language { constructor(version: string); get version(): string; @@ -44,7 +44,7 @@ export namespace language { parse(kind: kinds.NonterminalKind, input: string): parse_output.ParseOutput; } } -export namespace cst { +export declare namespace cst { export enum NodeType { Nonterminal = "Nonterminal", Terminal = "Terminal", @@ -69,7 +69,7 @@ export namespace cst { createCursor(textOffset: text_index.TextIndex): cursor.Cursor; } } -export namespace cursor { +export declare namespace cursor { export class Cursor { reset(): void; complete(): void; @@ -100,7 +100,7 @@ export namespace cursor { query(queries: Array): query.QueryMatchIterator; } } -export namespace diagnostic { +export declare namespace diagnostic { /** * Severity of the compiler diagnostic. * @@ -122,14 +122,14 @@ export namespace diagnostic { message(): string; } } -export namespace parse_error { +export declare namespace parse_error { export class ParseError { severity(): diagnostic.Severity; textRange(): text_index.TextRange; message(): string; } } -export namespace parse_output { +export declare namespace parse_output { export class ParseOutput { tree(): cst.Node; errors(): Array; @@ -138,7 +138,7 @@ export namespace parse_output { createTreeCursor(): cursor.Cursor; } } -export namespace query { +export declare namespace query { export interface QueryMatch { queryNumber: number; captures: { [key: string]: cursor.Cursor[] }; @@ -150,7 +150,7 @@ export namespace query { next(): QueryMatch | null; } } -export namespace text_index { +export declare namespace text_index { export interface TextIndex { utf8: number; utf16: number; @@ -162,7 +162,7 @@ export namespace text_index { end: TextIndex; } } -export namespace ast_internal { +export declare namespace ast_internal { export function selectSequence(node: cst.NonterminalNode): Array; export function selectChoice(node: cst.NonterminalNode): cst.Node; export function selectRepeated(node: cst.NonterminalNode): Array; diff --git a/crates/solidity/outputs/npm/package/src/generated/napi-bindings/generated/index.d.ts b/crates/solidity/outputs/npm/package/src/generated/napi-bindings/generated/index.d.ts index b77e5cbcee..0dee205b52 100644 --- a/crates/solidity/outputs/npm/package/src/generated/napi-bindings/generated/index.d.ts +++ b/crates/solidity/outputs/npm/package/src/generated/napi-bindings/generated/index.d.ts @@ -8,7 +8,7 @@ /* auto-generated by NAPI-RS */ -export namespace kinds { +export declare namespace kinds { export enum NonterminalKind { ABICoderPragma = "ABICoderPragma", AdditiveExpression = "AdditiveExpression", @@ -729,7 +729,7 @@ export namespace kinds { YulYearsKeyword = "YulYearsKeyword", } } -export namespace language { +export declare namespace language { export class Language { constructor(version: string); get version(): string; @@ -738,7 +738,7 @@ export namespace language { parse(kind: kinds.NonterminalKind, input: string): parse_output.ParseOutput; } } -export namespace cst { +export declare namespace cst { export enum NodeType { Nonterminal = "Nonterminal", Terminal = "Terminal", @@ -763,7 +763,7 @@ export namespace cst { createCursor(textOffset: text_index.TextIndex): cursor.Cursor; } } -export namespace cursor { +export declare namespace cursor { export class Cursor { reset(): void; complete(): void; @@ -794,7 +794,7 @@ export namespace cursor { query(queries: Array): query.QueryMatchIterator; } } -export namespace diagnostic { +export declare namespace diagnostic { /** * Severity of the compiler diagnostic. * @@ -816,14 +816,14 @@ export namespace diagnostic { message(): string; } } -export namespace parse_error { +export declare namespace parse_error { export class ParseError { severity(): diagnostic.Severity; textRange(): text_index.TextRange; message(): string; } } -export namespace parse_output { +export declare namespace parse_output { export class ParseOutput { tree(): cst.Node; errors(): Array; @@ -832,7 +832,7 @@ export namespace parse_output { createTreeCursor(): cursor.Cursor; } } -export namespace query { +export declare namespace query { export interface QueryMatch { queryNumber: number; captures: { [key: string]: cursor.Cursor[] }; @@ -844,7 +844,7 @@ export namespace query { next(): QueryMatch | null; } } -export namespace text_index { +export declare namespace text_index { export interface TextIndex { utf8: number; utf16: number; @@ -856,7 +856,7 @@ export namespace text_index { end: TextIndex; } } -export namespace ast_internal { +export declare namespace ast_internal { export function selectSequence(node: cst.NonterminalNode): Array; export function selectChoice(node: cst.NonterminalNode): cst.Node; export function selectRepeated(node: cst.NonterminalNode): Array; diff --git a/crates/testlang/outputs/npm/package/src/generated/napi-bindings/generated/index.d.ts b/crates/testlang/outputs/npm/package/src/generated/napi-bindings/generated/index.d.ts index d21a841c3e..6c9c176629 100644 --- a/crates/testlang/outputs/npm/package/src/generated/napi-bindings/generated/index.d.ts +++ b/crates/testlang/outputs/npm/package/src/generated/napi-bindings/generated/index.d.ts @@ -8,7 +8,7 @@ /* auto-generated by NAPI-RS */ -export namespace kinds { +export declare namespace kinds { export enum NonterminalKind { AdditionExpression = "AdditionExpression", Expression = "Expression", @@ -63,7 +63,7 @@ export namespace kinds { Whitespace = "Whitespace", } } -export namespace language { +export declare namespace language { export class Language { constructor(version: string); get version(): string; @@ -72,7 +72,7 @@ export namespace language { parse(kind: kinds.NonterminalKind, input: string): parse_output.ParseOutput; } } -export namespace cst { +export declare namespace cst { export enum NodeType { Nonterminal = "Nonterminal", Terminal = "Terminal", @@ -97,7 +97,7 @@ export namespace cst { createCursor(textOffset: text_index.TextIndex): cursor.Cursor; } } -export namespace cursor { +export declare namespace cursor { export class Cursor { reset(): void; complete(): void; @@ -128,7 +128,7 @@ export namespace cursor { query(queries: Array): query.QueryMatchIterator; } } -export namespace diagnostic { +export declare namespace diagnostic { /** * Severity of the compiler diagnostic. * @@ -150,14 +150,14 @@ export namespace diagnostic { message(): string; } } -export namespace parse_error { +export declare namespace parse_error { export class ParseError { severity(): diagnostic.Severity; textRange(): text_index.TextRange; message(): string; } } -export namespace parse_output { +export declare namespace parse_output { export class ParseOutput { tree(): cst.Node; errors(): Array; @@ -166,7 +166,7 @@ export namespace parse_output { createTreeCursor(): cursor.Cursor; } } -export namespace query { +export declare namespace query { export interface QueryMatch { queryNumber: number; captures: { [key: string]: cursor.Cursor[] }; @@ -178,7 +178,7 @@ export namespace query { next(): QueryMatch | null; } } -export namespace text_index { +export declare namespace text_index { export interface TextIndex { utf8: number; utf16: number; @@ -190,7 +190,7 @@ export namespace text_index { end: TextIndex; } } -export namespace ast_internal { +export declare namespace ast_internal { export function selectSequence(node: cst.NonterminalNode): Array; export function selectChoice(node: cst.NonterminalNode): cst.Node; export function selectRepeated(node: cst.NonterminalNode): Array;