Skip to content

Commit 069f88f

Browse files
committed
chore: simpler as const
1 parent 5e3cad6 commit 069f88f

File tree

1 file changed

+3
-3
lines changed
  • examples/06-custom-schema/react-custom-blocks/src

1 file changed

+3
-3
lines changed

examples/06-custom-schema/react-custom-blocks/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export const alertBlock = createReactBlockSpec(
4141
textAlignment: defaultProps.textAlignment,
4242
textColor: defaultProps.textColor,
4343
type: {
44-
default: "warning" as const,
45-
values: ["warning", "error", "info", "success"] as const,
46-
},
44+
default: "warning",
45+
values: ["warning", "error", "info", "success"],
46+
} as const,
4747
},
4848
content: "inline",
4949
},

0 commit comments

Comments
 (0)