Skip to content

Commit

Permalink
feat: add google3 generated file
Browse files Browse the repository at this point in the history
  • Loading branch information
vighnesh153 committed Aug 28, 2024
1 parent 822097f commit bd17ca1
Show file tree
Hide file tree
Showing 12 changed files with 1,132 additions and 16 deletions.
24 changes: 24 additions & 0 deletions nodejs-tools/nodejs-compiler-tools/formatter-xml/google3/main.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { LexerError } from '@vighnesh153/lexer-core';
import { ParserError } from '@vighnesh153/parser-xml';

type FormattingOptions = {
indentation?: number;
sortAttributes?: boolean;
};

type FormatResponse = {
type: 'lexer-error';
lexerErrors: readonly LexerError[];
} | {
type: 'parser-error';
parserErrors: readonly ParserError[];
} | {
type: 'unknown-error';
err: unknown;
} | {
type: 'success';
formattedXml: string;
};
declare function format(rawXml: string, { indentation, sortAttributes }: FormattingOptions): FormatResponse;

export { type FormatResponse, format };
Loading

0 comments on commit bd17ca1

Please sign in to comment.