style: 强类型大法
This commit is contained in:
1 parent
76501bae34
commit
70945cf2d8
191 files changed
+923
-806
No files matched your search
@@ -2,15 +2,11 @@ export type BaseCheckResult = ValidCheckResult | InvalidCheckResult;
|
||||
|
||||
export interface ValidCheckResult {
|
||||
valid: true;
|
||||
|
||||
[k: string | number]: any;
|
||||
}
|
||||
|
||||
export interface InvalidCheckResult {
|
||||
valid: false;
|
||||
message: string;
|
||||
|
||||
[k: string | number]: any;
|
||||
}
|
||||
|
||||
export const ActionName = {
|
||||
|
||||
Reference in new issue
Block a user