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

Weird type error with 'DeferredKeySelection' #3259

Closed
jpike88 opened this issue Jun 5, 2019 · 1 comment
Closed

Weird type error with 'DeferredKeySelection' #3259

jpike88 opened this issue Jun 5, 2019 · 1 comment

Comments

@jpike88
Copy link
Contributor

jpike88 commented Jun 5, 2019

Knex 0.17.3

export function getBaseTagQuery() {
	return sql.knex('tag')
		.leftJoin('tag_group', 'tag_group.id', 'tag.tagGroupID')
		.select('tag_group.label as groupLabel', 'tag.*')
		.where('tag.active', 1);
}

Gives me a TS error:

Return type of exported function has or is using name 'DeferredKeySelection' from external module "/Users/joshpike/Projects/aquipa/server/node_modules/knex/types/index" but cannot be named

@kibertoad
Copy link
Collaborator

@jpike88 0.17.4 with all the latest typing improvement was released, please give it a try!

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

2 participants