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

Import only type of Context #77

Merged
merged 1 commit into from
May 6, 2023
Merged

Conversation

MilanJ88
Copy link
Contributor

Context is only used as a type import in the generated createRouter file (export const t = trpc.initTRPC.context<Context>().create();) which generates an ESLint warning (@typescript-eslint/consistent-type-imports) for me. I think this PR should fix it but I didn't look into it much further so please confirm for yourself if this PR actually fixes the problem.

Context is only used as a type import, this fixes a @typescript-eslint/consistent-type-imports warning.
@omar-dulaimi omar-dulaimi merged commit 2f1b832 into omar-dulaimi:master May 6, 2023
@omar-dulaimi
Copy link
Owner

It should work fine based on the eslint page description. Thank you for this PR!

@omar-dulaimi
Copy link
Owner

Released in https://github.com/omar-dulaimi/prisma-trpc-generator/releases/tag/1.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants