(instance, options)
| 77 | } |
| 78 | |
| 79 | setup(instance, options) { |
| 80 | const { taps } = options; |
| 81 | const { length } = taps; |
| 82 | const fns = Array.from({ length }); |
| 83 | for (let i = 0; i < length; i++) { |
| 84 | fns[i] = taps[i].fn; |
| 85 | } |
| 86 | instance._x = fns; |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * @param {{ type: "sync" | "promise" | "async", taps: Array<Tap>, interceptors: Array<Interceptor> }} options |