We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e549efc commit 8070a22Copy full SHA for 8070a22
1 file changed
packages/typed-binary/src/structure/types.ts
@@ -149,10 +149,11 @@ export class Ref<K extends string> {
149
// Generic types
150
////
151
152
-export enum SubTypeKey {
153
- STRING = 'STRING',
154
- ENUM = 'ENUM',
155
-}
+export type SubTypeKey = 'string' | 'enum';
+export const SubTypeKey = {
+ STRING: 'string',
+ ENUM: 'enum',
156
+} as const;
157
158
export interface IRefResolver {
159
hasKey(key: string): boolean;
0 commit comments