Skip to content

Commit 2e16877

Browse files
committed
chore: Rm window
1 parent e118381 commit 2e16877

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/useForm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ export class FormStore {
145145
};
146146

147147
// ========================== Dev Warning =========================
148-
private timeoutId: number = null;
148+
private timeoutId: any = null;
149149

150150
private warningUnhooked = () => {
151151
if (process.env.NODE_ENV !== 'production' && !this.timeoutId && typeof window !== 'undefined') {
152-
this.timeoutId = window.setTimeout(() => {
152+
this.timeoutId = setTimeout(() => {
153153
this.timeoutId = null;
154154

155155
if (!this.formHooked) {

src/utils/validateUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import RawAsyncValidator from 'async-validator';
22
import * as React from 'react';
33
import warning from 'rc-util/lib/warning';
4-
import {
4+
import type {
55
InternalNamePath,
66
ValidateOptions,
77
ValidateMessages,

0 commit comments

Comments
 (0)