Skip to content

Commit

Permalink
fix: simplify ArgumentsTuple (#2761)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Aug 26, 2023
1 parent 46fc6e7 commit 964a5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _internal/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export type Middleware = (
config: SWRConfiguration<Data, Error, BareFetcher<Data>>
) => SWRResponse<Data, Error>

type ArgumentsTuple = [any, ...unknown[]] | readonly [any, ...unknown[]]
type ArgumentsTuple = readonly [any, ...unknown[]]
export type Arguments =
| string
| ArgumentsTuple
Expand Down

0 comments on commit 964a5d0

Please sign in to comment.