Skip to content

Commit 8daa159

Browse files
committed
chore: fix type (close: #1094)
1 parent ece2e1e commit 8daa159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vuepress/shared-utils/src/tryChain.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
type Provider<T, U> = (arg: T) => U
2-
type Resolver<T, U> = (Provider<T, U> | boolean)[] | boolean
2+
type Resolver<T, U> = (Provider<T, U> | boolean)[] | Provider<T, U>
33

44
export = function tryChain<T, U> (resolvers: Array<Resolver<T, U>>, arg: T): U | void {
55
let response: U

0 commit comments

Comments
 (0)