Skip to content

Commit

Permalink
fix: Syntax TypeScript error
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Dec 16, 2024
1 parent c0b3099 commit 3b3ce12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,9 @@ const keyDownHandlers = (
{ key: "b", wrapStart: "**", wrapEnd: "**" },
{ key: "i", wrapStart: "_", wrapEnd: "_" },
{ key: "u", wrapStart: "<ins>", wrapEnd: "</ins>" },
] satisfies KeyDownHandlerProps[]
{ key: "s", wrapStart: "~~", wrapEnd: "~~" },
// Would be better to use `satisfies` here, but it's resulting in syntax errors
] as KeyDownHandlerProps[]
).map(({ key, wrapStart, wrapEnd }) => {
return makeKeyDownHandler({
key,
Expand Down

0 comments on commit 3b3ce12

Please sign in to comment.