Skip to content

Commit

Permalink
Add explicit TypeInfo types for examples with getContext (#9016)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens authored Feb 12, 2024
1 parent 4febf95 commit c8e790a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion examples/custom-id/keystone.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { config } from '@keystone-6/core'
import { fixPrismaPath } from '../example-utils'
import { lists } from './schema'
import type { TypeInfo } from '.keystone/types'

export default config({
export default config<TypeInfo>({
db: {
provider: 'sqlite',
url: process.env.DATABASE_URL || 'file:./keystone-example.db',
Expand Down
3 changes: 2 additions & 1 deletion examples/limits/keystone.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { config } from '@keystone-6/core'
import { fixPrismaPath } from '../example-utils'
import { lists } from './schema'
import type { TypeInfo } from '.keystone/types'

export default config({
export default config<TypeInfo>({
db: {
provider: 'sqlite',
url: process.env.DATABASE_URL || 'file:./keystone-example.db',
Expand Down
3 changes: 2 additions & 1 deletion examples/singleton/keystone.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { config } from '@keystone-6/core'
import { fixPrismaPath } from '../example-utils'
import { lists } from './schema'
import type { TypeInfo } from '.keystone/types'

export default config({
export default config<TypeInfo>({
db: {
provider: 'sqlite',
url: process.env.DATABASE_URL || 'file:./keystone-example.db',
Expand Down
2 changes: 1 addition & 1 deletion examples/usecase-blog/keystone.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { config } from '@keystone-6/core'
import { fixPrismaPath } from '../example-utils'
import { lists } from './schema'
import { type TypeInfo } from '.keystone/types'
import type { TypeInfo } from '.keystone/types'

export default config<TypeInfo>({
db: {
Expand Down
3 changes: 2 additions & 1 deletion examples/usecase-todo/keystone.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { config } from '@keystone-6/core'
import { fixPrismaPath } from '../example-utils'
import { lists } from './schema'
import type { TypeInfo } from '.keystone/types'

export default config({
export default config<TypeInfo>({
db: {
provider: 'sqlite',
url: process.env.DATABASE_URL || 'file:./keystone-example.db',
Expand Down

0 comments on commit c8e790a

Please sign in to comment.