Skip to content

Commit

Permalink
chore: update types to be compatible with TS 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan committed Nov 5, 2023
1 parent b11836c commit 12e37b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/entity/Reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export class Reference<T> {
/**
* Returns wrapped entity.
*/
static unwrapReference<T>(ref: T | Reference<T>): T {
return Reference.isReference<T>(ref) ? (ref as Reference<T>).unwrap() : ref;
static unwrapReference<T>(ref: T | Reference<T> | ScalarReference<T>): T {
return Reference.isReference<T>(ref) ? (ref as Reference<T>).unwrap() : ref as T;
}

/**
Expand Down

0 comments on commit 12e37b9

Please sign in to comment.