Bläddra i källkod

微调

master
xuqm 1 år sedan
förälder
incheckning
2c01e4350a
2 ändrade filer med 4 tillägg och 5 borttagningar
  1. +3
    -4
      npm/index.d.ts
  2. +1
    -1
      npm/index.js

+ 3
- 4
npm/index.d.ts Visa fil

@@ -54,7 +54,6 @@ export declare interface Message {
toClientId: string;
timestamp: number;
message: string | TextMessage | PictureMessage;
describe: string;
}


@@ -62,7 +61,7 @@ export declare interface ISzyxPush {

setBaseUrl(url: string)

install(app, tenantNo: string, osType: OsType, url: string | null): Promise<void>;
install(app, tenantNo: string, osType: OsType, url?: string): Promise<void>;


/**
@@ -71,7 +70,7 @@ export declare interface ISzyxPush {
* @param osType 设备类型 {@link OsType}
* @param url 服务端地址,可以不传
*/
init(tenantNo: string, osType: OsType, url: string | null): Promise<void>;
init(tenantNo: string, osType: OsType, url?: string): Promise<void>;

register(userId: string): Promise<void>;

@@ -88,5 +87,5 @@ export declare interface ISzyxPush {
*/
unMessage(callId): void;

sendTextMsg(userId: string, text: string): Promise<Message>;
sendTextMsg(userId: string, text: string, describe?: string): Promise<Message>;
}

+ 1
- 1
npm/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


Laddar…
Avbryt
Spara