diff --git a/types/base.d.ts b/types/base.d.ts index 1aaf772..6609e79 100644 --- a/types/base.d.ts +++ b/types/base.d.ts @@ -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; delete(params: object): Promise; - executeAction(task: string, method: string, params: {}, action: any): Promise; + executeAction(task: string, method: string, params: {}, action: string): Promise; customexecuteAction(url: any, method?: string, params?: {}): Promise; customexecuteGetNumberAction(url: any, method?: string, params?: {}): any; getMetaResponse(url: any, method?: string, params?: {}): Promise; } 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; list(params: object): Promise; create(params: object): Promise; diff --git a/types/rest/request-test.d.ts b/types/rest/request-test.d.ts index 028039c..1f56632 100644 --- a/types/rest/request-test.d.ts +++ b/types/rest/request-test.d.ts @@ -1 +1 @@ -export function Request(config: any): (method: any, action: any, params: object) => Promise; +export function Request(config: any): (method: string, action: string, params: object) => Promise; diff --git a/types/rest/request.d.ts b/types/rest/request.d.ts index 028039c..1f56632 100644 --- a/types/rest/request.d.ts +++ b/types/rest/request.d.ts @@ -1 +1 @@ -export function Request(config: any): (method: any, action: any, params: object) => Promise; +export function Request(config: any): (method: string, action: string, params: object) => Promise; diff --git a/types/rest/utils.d.ts b/types/rest/utils.d.ts index ac52936..13c7262 100644 --- a/types/rest/utils.d.ts +++ b/types/rest/utils.d.ts @@ -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;