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

Allow adding custom code to generated types.ts #229

Open
Andrew-Chen-Wang opened this issue Jan 6, 2025 · 0 comments
Open

Allow adding custom code to generated types.ts #229

Andrew-Chen-Wang opened this issue Jan 6, 2025 · 0 comments

Comments

@Andrew-Chen-Wang
Copy link

I want to use --overrides to include a custom interface for a JSON column. It's a deeply nested typed interface. It would be nice if we could add custom code above all other code like:

kysely-codegen --custom="import { JSONType } from "./custom-type\n\ninterface TableExtra { custom: JSONType }" --overrides='{"table_name.column_name": "TableExtra"}'

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

No branches or pull requests

1 participant