halborg
05/24/2018, 11:39 AMsrc/index.ts(5,34): error TS2345: Argument of type '{ typeDefs: string; resolvers: typeof "/.../src/...' is not assignable to parameter of type 'Props'.
Types of property 'resolvers' are incompatible.
Type 'typeof "/.../src/resolvers/index"' is not assignable to type 'IResolvers | undefined'.
Type 'typeof "/.../src/resolvers/index"' is not assignable to type 'IResolvers'.
Property 'default' is incompatible with index signature.
Type '{ Query: { feed(parent: any, args: any, ctx: Context, info: any): Promise<Post[]>; drafts(parent:...' is not assignable to type 'GraphQLScalarType | (() => any) | IResolverObject'.
Type '{ Query: { feed(parent: any, args: any, ctx: Context, info: any): Promise<Post[]>; drafts(parent:...' is not assignable to type 'IResolverObject'.
Property 'Query' is incompatible with index signature.
Type '{ feed(parent: any, args: any, ctx: Context, info: any): Promise<Post[]>; drafts(parent: any, arg...' is not assignable to type 'GraphQLFieldResolver<any, any, { [argName: string]: any; }> | IResolverOptions'.
Type '{ feed(parent: any, args: any, ctx: Context, info: any): Promise<Post[]>; drafts(parent: any, arg...' has no properties in common with type 'IResolverOptions'.
Can anyone tell me how fix that?nilan
05/24/2018, 11:40 AMnilan
05/24/2018, 12:15 PMnikolasburk
halborg
05/24/2018, 12:24 PMhalborg
05/24/2018, 12:24 PMnilan
05/24/2018, 12:24 PMnilan
05/24/2018, 12:24 PMhalborg
05/24/2018, 12:26 PM/generated/prisma.ts
but get the same error. Also tried restarting TSnilan
05/24/2018, 12:27 PMhalborg
05/24/2018, 12:41 PMhalborg
05/24/2018, 12:43 PMhalborg
05/24/2018, 12:50 PMhalborg
05/24/2018, 12:54 PMhalborg
05/24/2018, 12:59 PMtsconfig.json
includes strict:true
. Confirmed with fresh projecthalborg
05/24/2018, 12:59 PMnilan
05/24/2018, 1:24 PMhalborg
05/24/2018, 1:24 PMTill
05/24/2018, 2:00 PMnilan
05/24/2018, 2:05 PMnilan
05/24/2018, 2:05 PMTill
05/24/2018, 2:06 PM