Skip to content

Commit b8f2a49

Browse files
committed
fix: type assertion for "type" of filters
1 parent 47b4bf0 commit b8f2a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/command/render/filters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ async function resolveFilterExtension(
897897
return extensionFilters.map(extFilter => {
898898
if (typeof extFilter === "string") {
899899
return {
900-
type: extFilter.endsWith(".lua") ? "lua" : "json",
900+
type: extFilter.endsWith(".lua") ? "lua" : "json" as "lua" | "json",
901901
path: extFilter,
902902
at: filter.at
903903
};

0 commit comments

Comments
 (0)