We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96db099 commit 357a467Copy full SHA for 357a467
src/crawlfs.ts
@@ -31,7 +31,7 @@ export async function crawl(dir: string, options: IOptions) {
31
const metadata: Record<string, CrawledFileType> = {};
32
const crawled = await glob(dir, options);
33
const results = await Promise.all(
34
- crawled.map(async (filename) => <const>[filename, await determineFileType(filename)]),
+ crawled.map(async (filename) => [filename, await determineFileType(filename)] as const),
35
);
36
const links: string[] = [];
37
const filenames = results
@@ -51,5 +51,5 @@ export async function crawl(dir: string, options: IOptions) {
51
return !filename.startsWith(link);
52
});
53
54
- return <const>[filenames, metadata];
+ return [filenames, metadata] as const;
55
}
0 commit comments