updated types

This commit is contained in:
huzaif 2021-01-06 16:06:47 +05:30
parent 035c7783e5
commit bb0dc9924f
2 changed files with 2 additions and 5 deletions

4
types/base.d.ts vendored
View file

@ -3,7 +3,7 @@ export class PlivoGenericResponse {
id: string;
}
export class PlivoResource {
constructor(action: string, klass: any, idField: string, request: any);
constructor(action: string, Klass: Symbol, idField: string, request: any);
update(params: object, id: string): Promise<any>;
delete(params: object): Promise<any>;
executeAction(task: string, method: string, params: {}, action: string): Promise<any>;
@ -12,7 +12,7 @@ export class PlivoResource {
getMetaResponse(url: any, method?: string, params?: {}): Promise<any>;
}
export class PlivoResourceInterface {
constructor(action: string, klass: any, idField: string, request: any);
constructor(action: string, Klass: Symbol, idField: string, request: any);
get(id: string, params?: {}): Promise<any>;
list(params: object): Promise<any>;
create(params: object): Promise<any>;