Skip to content

Commit

Permalink
fix: export pretty format (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosvega91 committed Nov 10, 2020
1 parent 2fea70c commit e32937c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pretty-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ const logDOM = (...args) => {
}
}

export {prettyDOM, logDOM}
export {prettyDOM, logDOM, prettyFormat}
15 changes: 12 additions & 3 deletions types/pretty-dom.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import { OptionsReceived } from 'pretty-format';
import * as prettyFormat from 'pretty-format'

export function prettyDOM(dom?: Element | HTMLDocument, maxLength?: number, options?: OptionsReceived): string | false;
export function logDOM(dom?: Element | HTMLDocument, maxLength?: number, options?: OptionsReceived): void;
export function prettyDOM(
dom?: Element | HTMLDocument,
maxLength?: number,
options?: prettyFormat.OptionsReceived,
): string | false
export function logDOM(
dom?: Element | HTMLDocument,
maxLength?: number,
options?: prettyFormat.OptionsReceived,
): void
export {prettyFormat}

0 comments on commit e32937c

Please sign in to comment.