UNPKG

@capimjs/library-auth

Version:

Professional API using Clean Architecture and TDD. to group validators

41 lines (40 loc) 966 B
export interface HttpGetClient { get: <T = any>(input: HttpGetClient.Input) => Promise<T>; } export declare namespace HttpGetClient { type Input = { url: string; config?: object; params: object; }; } export interface HttpPostClient { post: <T = any>(input: HttpPostClient.Input) => Promise<T>; } export declare namespace HttpPostClient { type Input = { url: string; config: object; params: object | string; }; } export interface HttpPutClient { put: <T = any>(input: HttpPutClient.Input) => Promise<T>; } export declare namespace HttpPutClient { type Input = { url: string; config: object; params: object; }; } export interface HttpDeleteClient { delete: <T = any>(input: HttpDeleteClient.Input) => Promise<T>; } export declare namespace HttpDeleteClient { type Input = { url: string; config: object; params: object; }; }