We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ece2e1e commit 8daa159Copy full SHA for 8daa159
packages/@vuepress/shared-utils/src/tryChain.ts
@@ -1,5 +1,5 @@
1
type Provider<T, U> = (arg: T) => U
2
-type Resolver<T, U> = (Provider<T, U> | boolean)[] | boolean
+type Resolver<T, U> = (Provider<T, U> | boolean)[] | Provider<T, U>
3
4
export = function tryChain<T, U> (resolvers: Array<Resolver<T, U>>, arg: T): U | void {
5
let response: U
0 commit comments