You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If issue is about TypeScript definitions, tag @lorefnon.
Bug
Since #4967, alter() requires 1 argument. I believe the type of the function should mark the options object as optional, since the function signature sets it as an empty object if no argument is provided:
Environment
Knex version: 1.0.2
If issue is about TypeScript definitions, tag @lorefnon.
Bug
Since #4967,
alter()
requires 1 argument. I believe the type of the function should mark the options object as optional, since the function signature sets it as an empty object if no argument is provided:knex/lib/schema/columnbuilder.js
Lines 113 to 116 in 8fd1f22
Reproduction of the bug (using the code examples from the docs):
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgaQHYFMAecC+cBmUEIcA5ANYaakBQNAJugMYA2AhlOnExKgM7xKWAFwoqAbjpDMAOj5MAFuhBsZbFjHRQAKmwBGLdAApSAVz5bSAGgKnUTGMF5GYASkQ04cGDOD3OIOioMHxGrjJgUKAcAJ5h4nAA9IlwbPT0nkkp9ERgfHCR6ABuTuZwjPhsphpwReqmXITE3BAspiCoNopsqADmXDAxYAMQcAJRfamo9KnpcKgQ8KjV7AZcPPwwUGx+MJk+4369JuZaqGyB1nAAzACs4QswAHIr+oZhahpa8ZnJ5bn5PSLBTzRbzFYtTbbXZTGYwJTldCVarwOptdD7XzBdD9KAmNj9UjhdSaPGuSReP7AfCpL5QF4sVaGODAfKVFgWGw5CB5OC8FgxbwIipVGpohqY3Y476kAnoImfUlGBAkrQMplcUTsiw4cm-FLU2mk7RDLisgjqTneU18mk8NodFn5R5GrToegySXY3H4wnEunK1U6G1ay3oXWSCNAA
The text was updated successfully, but these errors were encountered: