resolvers
v1.0.0
Published
> Promise chain resolver # Quick start
Downloads
428
Readme
Promise chain resolver
Quick start
Install the package:
npm install resolvers
// or
yarn add resolvers
Create a base resolver:
import resolvers from 'resolvers';
let base = resolvers(param => {
console.log('base', param)
})
let isAdmin = base.create(param => {
console.log('isAdmin', params)
})
isAdmin('userId')
/* run
-> base, userId
-> isAdmin, userId
*/