Skip to content

Commit dc66abe

Browse files
committed
style: after update xo
1 parent 63a3415 commit dc66abe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/index.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Parser, ParserOptions} from 'htmlparser2';
2-
import {Directive, Node, Options, Attributes} from '../types';
2+
import {Directive, Node, Options, Attributes} from '../types/index.d';
33

44
const defaultOptions: ParserOptions = {
55
lowerCaseTags: false,
@@ -15,7 +15,7 @@ const defaultDirectives: Directive[] = [
1515
}
1616
];
1717

18-
export default (html: string, options: Options = {}): Node[] => {
18+
const parser = (html: string, options: Options = {}): Node[] => {
1919
const bufArray: Node[] = [];
2020
const results: Node[] = [];
2121

@@ -160,3 +160,5 @@ export default (html: string, options: Options = {}): Node[] => {
160160

161161
return results;
162162
};
163+
164+
export default parser;

0 commit comments

Comments
 (0)