axios-miniprogram/src/cancel/isCancel.ts

17 lines
333 B
TypeScript
Raw Normal View History

2020-04-14 23:45:21 +08:00
/*
* @Author: early-autumn
* @Date: 2020-04-14 09:23:25
* @LastEditors: early-autumn
2020-04-24 09:24:43 +08:00
* @LastEditTime: 2020-04-23 22:44:43
2020-04-14 23:45:21 +08:00
*/
import Cancel from './Cancel';
/**
2020-04-17 12:06:41 +08:00
*
2020-04-14 23:45:21 +08:00
*
* @param value
*/
2020-04-24 09:24:43 +08:00
export default function isCancel(value: any): value is Cancel {
return value instanceof Cancel;
2020-04-14 23:45:21 +08:00
}