Values of these two objects are not known statically, therefore the usage of ValueOf and the resulted types aren’t quite useful:
|
export type BufferSerializeFormat = ValueOf<typeof BufferSerializeFormat>; |
|
export type MetricsTag = ValueOf<typeof MetricsTag>; |
Were the values meant to be string literals like "hasc" instead of dynamically converted numbers like hb_tag("hasc")?
Values of these two objects are not known statically, therefore the usage of
ValueOfand the resulted types aren’t quite useful:harfbuzzjs/src/buffer.ts
Line 70 in e55f3ce
harfbuzzjs/src/font.ts
Line 79 in e55f3ce
Were the values meant to be string literals like
"hasc"instead of dynamically converted numbers likehb_tag("hasc")?