mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
workspace: update eslint rule (#1027)
This commit is contained in:
1 parent
05c3b8f2bd
commit
cee3c00ddb
150 files changed
+1069
-1043
No files matched your search
@@ -16,7 +16,7 @@ export class Page {
|
||||
}
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (typeof name !== 'string' && !(name instanceof Array)) {
|
||||
throw new Error("'name' should be a string or string[]");
|
||||
throw new TypeError("'name' should be a string or string[]");
|
||||
}
|
||||
if (typeof this.afterLoading !== 'function' && this.afterLoading != null) {
|
||||
throw new Error("'afterLoading' should be a function");
|
||||
|
||||
Reference in new issue
Block a user