Skip to content

Commit 423690d

Browse files
committed
issue-1146: Add flow types
1 parent e1ff1e4 commit 423690d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Diff for: flow/modules.flow.js

+4
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ declare module 'cheerio' {
2727
declare module 'semver' {
2828
declare module.exports: any
2929
}
30+
31+
declare module 'pretty' {
32+
declare module.exports: any
33+
}

Diff for: flow/wrapper.flow.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type WrapperArray from '~src/WrapperArray'
55

66
declare type Selector = any
77
declare type Components = { [name: string]: Component }
8+
declare type HtmlOptions = { prettyPrint: boolean }
89

910
declare interface BaseWrapper {
1011
// eslint-disable-line no-undef

Diff for: packages/test-utils/types/index.d.ts

-7
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ type NameSelector = {
3939
name: string
4040
}
4141

42-
/**
43-
* Options when printing html components as strings
44-
*/
45-
export class HtmlOptions {
46-
prettyPrint: boolean
47-
}
48-
4942
/**
5043
* Base class of Wrapper and WrapperArray
5144
* It has common methods on both Wrapper and WrapperArray

0 commit comments

Comments
 (0)