Skip to content

Commit 0711812

Browse files
committed
fix: timer ts error
1 parent 42ae426 commit 0711812

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/packages/__VUE/notify/index.taro.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default create({
5555
};
5656
5757
// timer
58-
let timer: null | number = null;
58+
let timer: null | NodeJS.Timeout = null;
5959
const clearTimer = () => {
6060
timer && clearTimeout(timer);
6161
timer = null;

src/packages/__VUE/toast/index.taro.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default create({
105105
},
106106
emits: ['update:visible', 'closed'],
107107
setup(props, { emit }) {
108-
let timer: number | null | undefined;
108+
let timer: NodeJS.Timeout | null | undefined;
109109
const clearTimer = () => {
110110
if (timer) {
111111
clearTimeout(timer);

0 commit comments

Comments
 (0)