Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@gabritto
Copy link
Contributor

Compiling the file types/index.d.ts with version 5.4 of TypeScript (currently nightly) produces the following errors:

knex/types/index.d.ts(1241,50): error TS2344: Type 'ResolveTableType<TRecord, "base">' does not satisfy the constraint '{}'.
  Type 'unknown' is not assignable to type '{}'.
knex/types/index.d.ts(1256,50): error TS2344: Type 'ResolveTableType<TRecord, "base">' does not satisfy the constraint '{}'.

This was caused by this change.

This PR fixes these errors.

@kibertoad
Copy link
Collaborator

@gabritto CI for types is failing, could you please take a look?

@coveralls
Copy link

coveralls commented Nov 27, 2023

Coverage Status

coverage: 92.778%. remained the same
when pulling bf01fbf on gabritto:fix-5.4
into 1d7707e on knex:master.

@kibertoad
Copy link
Collaborator

Thanks a lot!

@kibertoad kibertoad merged commit 14b2b6d into knex:master Nov 28, 2023
@gabritto gabritto deleted the fix-5.4 branch November 28, 2023 02:34
@gabritto
Copy link
Contributor Author

gabritto commented Dec 7, 2023

@kibertoad what's the release schedule for knex? I'd like to know when there will be a release with the new index.d.ts, just so I know when I can remove it from the expected list of failures we have over on DefinitelyTyped.

@kibertoad
Copy link
Collaborator

@gabritto I can probably cut a new one right now!

@kibertoad
Copy link
Collaborator

Released in 3.1.0

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.

3 participants