Skip to content

Commit

Permalink
revert breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Aug 8, 2023
1 parent 5d7106f commit 9a6a0db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/extend-graphql-schema-nexus/keystone-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export type TypeInfo<Session = any> = {
type __TypeInfo<Session = any> = TypeInfo<Session>;

export type Lists<Session = any> = {
[Key in keyof TypeInfo['lists']]: import('@keystone-6/core').ListConfig<TypeInfo<Session>['lists'][Key]>
[Key in keyof TypeInfo['lists']]?: import('@keystone-6/core').ListConfig<TypeInfo<Session>['lists'][Key]>
} & Record<string, import('@keystone-6/core').ListConfig<any>>;

export {}
2 changes: 1 addition & 1 deletion packages/core/src/lib/schema-type-printer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export function printGeneratedTypes(
`type __TypeInfo<Session = any> = TypeInfo<Session>;`,
``,
`export type Lists<Session = any> = {`,
` [Key in keyof TypeInfo['lists']]: import('@keystone-6/core').ListConfig<TypeInfo<Session>['lists'][Key]>`,
` [Key in keyof TypeInfo['lists']]?: import('@keystone-6/core').ListConfig<TypeInfo<Session>['lists'][Key]>`,
`} & Record<string, import('@keystone-6/core').ListConfig<any>>;`,
``,
`export {}`,
Expand Down
2 changes: 1 addition & 1 deletion tests/cli-tests/__snapshots__/artifacts.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export type TypeInfo<Session = any> = {
type __TypeInfo<Session = any> = TypeInfo<Session>;
export type Lists<Session = any> = {
[Key in keyof TypeInfo['lists']]: import('@keystone-6/core').ListConfig<TypeInfo<Session>['lists'][Key]>
[Key in keyof TypeInfo['lists']]?: import('@keystone-6/core').ListConfig<TypeInfo<Session>['lists'][Key]>
} & Record<string, import('@keystone-6/core').ListConfig<any>>;
export {}
Expand Down

0 comments on commit 9a6a0db

Please sign in to comment.