Skip to content

Commit

Permalink
fix: IStoredProcedureResult type
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek committed Mar 4, 2024
1 parent 1edae5c commit 7b39b12
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/IStoredProcedureResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@ import {IOKPacket} from './IOKPacket';

/**
* @since 7.1.0
*
* @remarks
*
* Symbol introduced in 7.1.0 but did not accurately represent the actual call
* result. Symbol was (breakingly) changed in 7.1.1 to fix this issue.
*/
export type IStoredProcedureResult<T = unknown> = [T, IOKPacket];
export type IStoredProcedureResult<T extends unknown[] = unknown[]> = [...T, IOKPacket];

0 comments on commit 7b39b12

Please sign in to comment.