Skip to content

Commit

Permalink
fix(core): improve scalar type resolver to properly infer attribute t…
Browse files Browse the repository at this point in the history
…ypes
  • Loading branch information
whimzyLive committed Aug 7, 2021
1 parent e713ffc commit e178bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/helpers/resolve-scalar-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {InvalidType} from './invalid-type';
import {ScalarType} from './scalar-type';

export type ResolveScalarType<T extends any> = T extends ScalarType
? ScalarType
? T
: T extends any[]
? T[0] extends ScalarType
? T[0]
Expand Down

0 comments on commit e178bac

Please sign in to comment.