Skip to content

Commit 231e80c

Browse files
committed
fix: type annotation for export
1 parent 3ac5d73 commit 231e80c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/babel-plugin/src/utils/state-manager.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,8 @@ const addFileExtension = (
725725
return importedFilePath + fileExtension;
726726
};
727727

728-
export const matchesFileSuffix =
729-
(allowedSuffix: string) => (filename: string) =>
728+
export const matchesFileSuffix: (string) => (string) => boolean =
729+
(allowedSuffix) => (filename) =>
730730
['', ...EXTENSIONS].some((extension) =>
731731
filename.endsWith(`${allowedSuffix}${extension}`),
732732
);

0 commit comments

Comments
 (0)