breaking change(Stepper): rename async-change to before-change

This commit is contained in:
chenjiahan
2020-12-09 17:12:58 +08:00
parent c277603160
commit e026d2d83f
6 changed files with 67 additions and 57 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
import { isPromise, noop } from '.';
export type Interceptor = (...args: any[]) => Promise<boolean> | boolean;
export function callInterceptor(options: {
interceptor?: (...args: any[]) => Promise<boolean> | boolean;
interceptor?: Interceptor;
args?: any[];
done: () => void;
canceled?: () => void;