We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac5d73 commit 231e80cCopy full SHA for 231e80c
packages/babel-plugin/src/utils/state-manager.js
@@ -725,8 +725,8 @@ const addFileExtension = (
725
return importedFilePath + fileExtension;
726
};
727
728
-export const matchesFileSuffix =
729
- (allowedSuffix: string) => (filename: string) =>
+export const matchesFileSuffix: (string) => (string) => boolean =
+ (allowedSuffix) => (filename) =>
730
['', ...EXTENSIONS].some((extension) =>
731
filename.endsWith(`${allowedSuffix}${extension}`),
732
);
0 commit comments