Skip to content

Commit e415066

Browse files
authored
Merge pull request #1585 from cometkim/merge-scalars
Allow interface merging for `UserSchemaTypes.Scalars`
2 parents f2ab75c + 83794c3 commit e415066

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.changeset/tender-trams-chew.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@pothos/core": patch
3+
---
4+
5+
Allow declaration merging for `UserSchemaTypes.Scalars` from plugins.

packages/core/src/types/global/schema-types.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@ declare global {
5252

5353
export interface UserSchemaTypes {
5454
Defaults: 'v3' | 'v4';
55-
Scalars: Record<
56-
string,
57-
{
55+
Scalars: {
56+
[scalar: string]: {
5857
Input: unknown;
5958
Output: unknown;
60-
}
61-
>;
59+
};
60+
};
6261
Objects: {};
6362
Inputs: {};
6463
Interfaces: {};

0 commit comments

Comments
 (0)