Skip to content

Commit

Permalink
fix: type annotation for export
Browse files Browse the repository at this point in the history
  • Loading branch information
nmn committed Jan 22, 2025
1 parent 3057f75 commit 4af138d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-plugin/src/utils/state-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,8 @@ const addFileExtension = (
return importedFilePath + fileExtension;
};

export const matchesFileSuffix =
(allowedSuffix: string) => (filename: string) =>
export const matchesFileSuffix: (string) => (string) => boolean =
(allowedSuffix) => (filename) =>
['', ...EXTENSIONS].some((extension) =>
filename.endsWith(`${allowedSuffix}${extension}`),
);
Expand Down

0 comments on commit 4af138d

Please sign in to comment.