Skip to content

Commit

Permalink
issue-1146: Add flow types
Browse files Browse the repository at this point in the history
  • Loading branch information
addisonssense committed May 9, 2019
1 parent e1ff1e4 commit 423690d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 4 additions & 0 deletions flow/modules.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ declare module 'cheerio' {
declare module 'semver' {
declare module.exports: any
}

declare module 'pretty' {
declare module.exports: any
}
1 change: 1 addition & 0 deletions flow/wrapper.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type WrapperArray from '~src/WrapperArray'

declare type Selector = any
declare type Components = { [name: string]: Component }
declare type HtmlOptions = { prettyPrint: boolean }

declare interface BaseWrapper {
// eslint-disable-line no-undef
Expand Down
7 changes: 0 additions & 7 deletions packages/test-utils/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ type NameSelector = {
name: string
}

/**
* Options when printing html components as strings
*/
export class HtmlOptions {
prettyPrint: boolean
}

/**
* Base class of Wrapper and WrapperArray
* It has common methods on both Wrapper and WrapperArray
Expand Down

0 comments on commit 423690d

Please sign in to comment.