Skip to content

Commit

Permalink
fix: update public api
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Mar 12, 2022
1 parent 042f9b1 commit 477e030
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import { Parser, TempParser } from "./internal";
import { Handlers, Parser } from "./internal";

export type { Events, Range, ValueRange, TemplateRange } from "./internal";
export type { Handlers, Ranges, Range } from "./internal";

export { EventTypes, OpenTagEnding } from "./internal";
export { OpenTagEnding } from "./internal";

export function createParser(text: string, filename: string) {
return new Parser(text, filename);
}

export function createLegacyParser(listeners: any) {
return new TempParser(listeners);
export function createParser(handlers: Handlers) {
return new Parser(handlers);
}

0 comments on commit 477e030

Please sign in to comment.