chore: fix lint issues

This commit is contained in:
chenjiahan
2020-08-21 17:45:51 +08:00
parent 9754a80597
commit 58650aeb9b
9 changed files with 345 additions and 248 deletions
+2 -1
View File
@@ -4,12 +4,13 @@ export { createNamespace } from './create';
// eslint-disable-next-line @typescript-eslint/no-empty-function
export function noop() {}
export const inBrowser = typeof window !== 'undefined'
export const inBrowser = typeof window !== 'undefined';
export function isDef(val: unknown): boolean {
return val !== undefined && val !== null;
}
// eslint-disable-next-line @typescript-eslint/ban-types
export function isFunction(val: unknown): val is Function {
return typeof val === 'function';
}