Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix yarn lint warnings regarding {} #9099

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading