Skip to content

Commit

Permalink
fix: Modernized SubTypeKey
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza committed Dec 18, 2024
1 parent e549efc commit 8070a22
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/typed-binary/src/structure/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,11 @@ export class Ref<K extends string> {
// Generic types
////

export enum SubTypeKey {
STRING = 'STRING',
ENUM = 'ENUM',
}
export type SubTypeKey = 'string' | 'enum';
export const SubTypeKey = {
STRING: 'string',
ENUM: 'enum',
} as const;

export interface IRefResolver {
hasKey(key: string): boolean;
Expand Down

0 comments on commit 8070a22

Please sign in to comment.