Skip to content

Commit

Permalink
chore: remove redundant overload (#769)
Browse files Browse the repository at this point in the history
* chore: remove redundant oveload

* chore: reorganize oveloads
  • Loading branch information
wellwelwel authored Sep 16, 2024
1 parent bdb2668 commit 0af5c8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/helpers/describe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ async function describeCore(
cb: () => Promise<unknown>
): Promise<void>;
function describeCore(message: string, cb: () => unknown): void;
function describeCore(message: string, options: DescribeOptions): void;
function describeCore(message: string, options?: DescribeOptions): void;
async function describeCore(cb: () => Promise<unknown>): Promise<void>;
function describeCore(cb: () => unknown): void;
function describeCore(message: string, options?: DescribeOptions): void;
async function describeCore(
messageOrCb: string | (() => unknown | Promise<unknown>),
cbOrOptions?: (() => unknown | Promise<unknown>) | DescribeOptions
Expand Down

0 comments on commit 0af5c8f

Please sign in to comment.