Commit 89c46e70 authored by Robert Knight's avatar Robert Knight

Prefer string enum to numeric enum

String enums have the advantage that enum values are more meaningful at runtime
for debugging. See discussion at
https://hypothes-is.slack.com/archives/C1M8NH76X/p1682585801783819.
parent 77415714
...@@ -21,8 +21,8 @@ export type EditorState = { ...@@ -21,8 +21,8 @@ export type EditorState = {
* {@link convertSelectionToLink}. * {@link convertSelectionToLink}.
*/ */
export enum LinkType { export enum LinkType {
ANCHOR_LINK, ANCHOR_LINK = 'ANCHOR_LINK',
IMAGE_LINK, IMAGE_LINK = 'IMAGE_LINK',
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment