Skip to content

Commit af95a54

Browse files
committed
fix(app): drop as-const cast in terminal image extensions
The Effect-TS lint config forbids `as` expressions outside src/core/axioms.ts. Type the supported-extensions list with an explicit `ReadonlyArray<string>` annotation instead of an `as const` literal.
1 parent 3e25db8 commit af95a54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/app/src/web/terminal-image-paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const supportedExtensions = ["png", "jpg", "jpeg", "gif", "webp"] as const
1+
const supportedExtensions: ReadonlyArray<string> = ["png", "jpg", "jpeg", "gif", "webp"]
22

33
const extensionAlternation = supportedExtensions.join("|")
44

0 commit comments

Comments
 (0)