Skip to content

Commit

Permalink
Narrow callback parameter types (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
imyourmanzi committed Jan 30, 2023
1 parent e5b842e commit 8685c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ declare module "hot-shots" {
source_type_name?: string;
}

export type StatsCb = (error: Error | undefined, bytes: any) => void;
export type StatsCb = (error?: Error, bytes?: number) => void;

export class StatsD {
constructor(options?: ClientOptions);
Expand Down

0 comments on commit 8685c59

Please sign in to comment.