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

docs: incorrect type annotation of injected db instance #29

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

georgemunyoro
Copy link
Contributor

In most generators, the DB interface represents the database schema, not the injected instance itself. However, the current README uses DB to annotate the injected instance, which might lead to confusion.

Some generators also create a Database interface that corresponds to the actual instance type, but this isn't universally true across all generators. Regardless of the generator, the correct type for the instance is always Kysely<DB>.

This PR updates the README to reflect the proper usage.

@kazu728
Copy link
Owner

kazu728 commented Jan 24, 2025

Thank you 🙏

@kazu728 kazu728 merged commit d8e9ba4 into kazu728:master Jan 24, 2025
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