修自定义配置
null、导入、mixin ignore
This commit is contained in:
Vendored
+16
-3
@@ -1,5 +1,8 @@
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
|
||||
type Region = "cn" | "jp" | "en" | "tw" | "kr";
|
||||
type Step = "suite" | "mysekai" | "birthday";
|
||||
|
||||
interface UploadUrlGeneral {
|
||||
mode: "general";
|
||||
url: string;
|
||||
@@ -14,8 +17,8 @@ interface UploadUrlEach {
|
||||
|
||||
interface UploadMixinStep {
|
||||
name: string;
|
||||
hosts: ("cn" | "jp" | "en" | "tw" | "kr" | string)[];
|
||||
target: "suite" | "mysekai" | "birthday" | "" | string;
|
||||
hosts: (Region | string)[];
|
||||
target: Step | string;
|
||||
}
|
||||
|
||||
interface UploadMixinProfile {
|
||||
@@ -23,8 +26,18 @@ interface UploadMixinProfile {
|
||||
steps: UploadMixinStep[];
|
||||
}
|
||||
|
||||
interface UploadMixinUploadIgnoreProfile {
|
||||
name: Region;
|
||||
steps: Step[];
|
||||
}
|
||||
|
||||
interface UploadMixinUpload {
|
||||
ignore?: "*" | (Region | UploadMixinUploadIgnoreProfile)[]; // never ignore defined profile in mixin context
|
||||
}
|
||||
|
||||
interface UploadMixin {
|
||||
profiles: UploadMixinProfile[];
|
||||
profiles?: UploadMixinProfile[];
|
||||
upload?: UploadMixinUpload;
|
||||
}
|
||||
|
||||
export interface UploadProfileCustom {
|
||||
|
||||
Reference in New Issue
Block a user