Skip to content

Commit e32937c

Browse files
authored
fix: export pretty format (#818)
1 parent 2fea70c commit e32937c

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/pretty-dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ const logDOM = (...args) => {
7171
}
7272
}
7373

74-
export {prettyDOM, logDOM}
74+
export {prettyDOM, logDOM, prettyFormat}

types/pretty-dom.d.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
import { OptionsReceived } from 'pretty-format';
1+
import * as prettyFormat from 'pretty-format'
22

3-
export function prettyDOM(dom?: Element | HTMLDocument, maxLength?: number, options?: OptionsReceived): string | false;
4-
export function logDOM(dom?: Element | HTMLDocument, maxLength?: number, options?: OptionsReceived): void;
3+
export function prettyDOM(
4+
dom?: Element | HTMLDocument,
5+
maxLength?: number,
6+
options?: prettyFormat.OptionsReceived,
7+
): string | false
8+
export function logDOM(
9+
dom?: Element | HTMLDocument,
10+
maxLength?: number,
11+
options?: prettyFormat.OptionsReceived,
12+
): void
13+
export {prettyFormat}

0 commit comments

Comments
 (0)