mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-16 05:10:34 +00:00
fix: readonly
This commit is contained in:
parent
16e4891b7d
commit
f518fb9214
@ -9,10 +9,10 @@ import {
|
|||||||
type MiniAppTemplateNameList = "bili" | "weibo";
|
type MiniAppTemplateNameList = "bili" | "weibo";
|
||||||
|
|
||||||
export abstract class MiniAppInfo {
|
export abstract class MiniAppInfo {
|
||||||
static sdkId: string = "V1_PC_MINISDK_99.99.99_1_APP_A";
|
static readonly sdkId: string = "V1_PC_MINISDK_99.99.99_1_APP_A";
|
||||||
template: MiniAppReqTemplateParams;
|
template: MiniAppReqTemplateParams;
|
||||||
|
|
||||||
private static appMap = new Map<MiniAppTemplateNameList, MiniAppInfo>();
|
private static readonly appMap = new Map<MiniAppTemplateNameList, MiniAppInfo>();
|
||||||
|
|
||||||
protected constructor(template: MiniAppReqTemplateParams) {
|
protected constructor(template: MiniAppReqTemplateParams) {
|
||||||
this.template = template;
|
this.template = template;
|
||||||
@ -22,7 +22,7 @@ export abstract class MiniAppInfo {
|
|||||||
return this.appMap.get(name);
|
return this.appMap.get(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Bili = new class extends MiniAppInfo {
|
static readonly Bili = new class extends MiniAppInfo {
|
||||||
constructor() {
|
constructor() {
|
||||||
super({
|
super({
|
||||||
sdkId: MiniAppInfo.sdkId,
|
sdkId: MiniAppInfo.sdkId,
|
||||||
@ -40,7 +40,7 @@ export abstract class MiniAppInfo {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static WeiBo = new class extends MiniAppInfo {
|
static readonly WeiBo = new class extends MiniAppInfo {
|
||||||
constructor() {
|
constructor() {
|
||||||
super({
|
super({
|
||||||
sdkId: MiniAppInfo.sdkId,
|
sdkId: MiniAppInfo.sdkId,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user