Skip to content

Commit 078c879

Browse files
fix flow issues (wish it was typescript)
1 parent aa81589 commit 078c879

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/rules/has-valid-accessibility-ignores-invert-colors.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,16 @@ const checkParent = ({ openingElement, parent }) => {
3232
return true;
3333
};
3434

35+
type VerifyRNImageRes = {
36+
enableLinting: boolean,
37+
elementsToCheck: string[],
38+
};
39+
3540
/**
3641
* @description varifies that the Image asset is imported from 'react-native' otherwise exits linting
3742
*/
38-
const verifyReactNativeImage = (text: string): boolean => {
39-
const res = {
43+
const verifyReactNativeImage = (text: string): VerifyRNImageRes => {
44+
const res: VerifyRNImageRes = {
4045
enableLinting: true,
4146
elementsToCheck: defaultInvertableComponents,
4247
};

0 commit comments

Comments
 (0)