-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
042f9b1
commit 477e030
Showing
1 changed file
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |