Skip to content

Commit

Permalink
fix: change tail type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jbl428 authored and ppeeou committed Dec 3, 2021
1 parent 78bb8fa commit c3ce08d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/types/Tail.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
type Tail<T extends unknown[]> = ((...args: T) => any) extends (
a: any,
...args: infer U
) => any
? U
: [];
type Tail<T extends unknown[]> = T extends [any, ...infer B] ? B : [];

export default Tail;

0 comments on commit c3ce08d

Please sign in to comment.