Skip to content

Commit

Permalink
feat(type): allow type annotation options to be extracted
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus S. Abildskov <[email protected]>
  • Loading branch information
marcus-sa committed Feb 9, 2024
1 parent 53216ff commit 19e973f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/type/src/reflection/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,7 @@ export interface EntityOptions {
*/
export type TypeAnnotation<T extends string, Options = never> = { __meta?: never | [T, Options] };

export type ExtractAnnotationOptions<T extends TypeAnnotation<string, any>> = Exclude<NonNullable<T['__meta']>, never>[1];
export type ExtractTypeAnnotationOptions<T extends TypeAnnotation<string, any>> = Exclude<NonNullable<T['__meta']>, never>[1];

/**
* Type to decorate an interface/object literal with entity information.
Expand Down

0 comments on commit 19e973f

Please sign in to comment.