Skip to content

Commit

Permalink
Allow for multiple brands (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedw032 authored Jun 9, 2023
1 parent 661c8ac commit 4598f46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types/brand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { Runtype, RuntypeBase, Static, create } from '../runtype';
export declare const RuntypeName: unique symbol;

export interface RuntypeBrand<B extends string> {
[RuntypeName]: B;
[RuntypeName]: {
[k in B]: B;
};
}

export interface Brand<B extends string, A extends RuntypeBase>
Expand Down

0 comments on commit 4598f46

Please sign in to comment.