Skip to content

Commit

Permalink
Fix yarn lint warnings regarding {} (#9099)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Aug 30, 2023
1 parent 1ed767f commit 8afc6c0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
4 changes: 3 additions & 1 deletion packages/graphql-server/ambient.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
declare module '@whatwg-node/server' {
export interface ServerAdapterPlugin<TServerContext = {}> {
export interface ServerAdapterPlugin<
TServerContext = Record<string, unknown>
> {
onRequest?: OnRequestHook<TServerContext>
onResponse?: OnResponseHook<TServerContext>
}
Expand Down
2 changes: 1 addition & 1 deletion packages/studio/backend/fastify/yoga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function routes(
req: FastifyRequest
reply: FastifyReply
},
{}
Record<string, unknown>
>
}
) {
Expand Down
11 changes: 7 additions & 4 deletions packages/studio/backend/graphql/yoga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,13 @@ export const setupYoga = (fastify: FastifyInstance) => {
},
})

const yoga = createYoga<{
req: FastifyRequest
reply: FastifyReply
}>({
const yoga = createYoga<
{
req: FastifyRequest
reply: FastifyReply
},
Record<string, unknown>
>({
schema,
logging: {
debug: (...args) => args.forEach((arg) => fastify.log.debug(arg)),
Expand Down
4 changes: 3 additions & 1 deletion packages/vite/src/waku-lib/rsc-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const worker = new Worker(new URL('rsc-handler-worker.js', import.meta.url), {
execArgv: ['--conditions', 'react-server'],
})

export type RenderInput<Props extends {} = {}> = {
export type RenderInput<
Props extends Record<string, unknown> = Record<string, unknown>
> = {
rscId?: string | undefined
props?: Props | undefined
rsfId?: string | undefined
Expand Down

0 comments on commit 8afc6c0

Please sign in to comment.