mirror of
https://github.com/donl/plivo-node.git
synced 2026-05-25 22:07:10 -06:00
updated types
This commit is contained in:
parent
71e0463564
commit
035c7783e5
4 changed files with 6 additions and 6 deletions
6
types/base.d.ts
vendored
6
types/base.d.ts
vendored
|
|
@ -3,16 +3,16 @@ export class PlivoGenericResponse {
|
|||
id: string;
|
||||
}
|
||||
export class PlivoResource {
|
||||
constructor(action: any, klass: any, idField: any, request: any);
|
||||
constructor(action: string, klass: any, idField: string, request: any);
|
||||
update(params: object, id: string): Promise<any>;
|
||||
delete(params: object): Promise<any>;
|
||||
executeAction(task: string, method: string, params: {}, action: any): Promise<any>;
|
||||
executeAction(task: string, method: string, params: {}, action: string): Promise<any>;
|
||||
customexecuteAction(url: any, method?: string, params?: {}): Promise<any>;
|
||||
customexecuteGetNumberAction(url: any, method?: string, params?: {}): any;
|
||||
getMetaResponse(url: any, method?: string, params?: {}): Promise<any>;
|
||||
}
|
||||
export class PlivoResourceInterface {
|
||||
constructor(action: any, klass: any, idField: any, request: any);
|
||||
constructor(action: string, klass: any, idField: string, request: any);
|
||||
get(id: string, params?: {}): Promise<any>;
|
||||
list(params: object): Promise<any>;
|
||||
create(params: object): Promise<any>;
|
||||
|
|
|
|||
2
types/rest/request-test.d.ts
vendored
2
types/rest/request-test.d.ts
vendored
|
|
@ -1 +1 @@
|
|||
export function Request(config: any): (method: any, action: any, params: object) => Promise<any>;
|
||||
export function Request(config: any): (method: string, action: string, params: object) => Promise<any>;
|
||||
|
|
|
|||
2
types/rest/request.d.ts
vendored
2
types/rest/request.d.ts
vendored
|
|
@ -1 +1 @@
|
|||
export function Request(config: any): (method: any, action: any, params: object) => Promise<any>;
|
||||
export function Request(config: any): (method: string, action: string, params: object) => Promise<any>;
|
||||
|
|
|
|||
2
types/rest/utils.d.ts
vendored
2
types/rest/utils.d.ts
vendored
|
|
@ -1,4 +1,4 @@
|
|||
export function camelCaseRequestWrapper(requestFunc: any): (method: any, action: any, params: object) => any;
|
||||
export function camelCaseRequestWrapper(requestFunc: any): (method: string, action: string, params: object) => any;
|
||||
export function validateSpeakAttributes(content: any, voice: any): {
|
||||
success: boolean;
|
||||
msg?: undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue