Skip to content

Commit

Permalink
refix old flow issues
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederickEngelhardt committed May 1, 2021
1 parent a2363e5 commit e7e8c05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flow/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ export type ESLintReport = {
export type ESLintContext = {
id: string,
options: Array<Object>,
report: ESLintReport => void,
report: (ESLintReport) => void,
getSourceCode: () => {
text: string,
},
};
3 changes: 3 additions & 0 deletions src/util/isTouchable.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export default function isTouchable(
id: '',
options: [],
report: () => {},
getSourceCode: () => ({
text: '',
}),
}
) {
const { options } = context;
Expand Down

0 comments on commit e7e8c05

Please sign in to comment.