dots-wrapper
Version:
Digital Ocean v2 api wrapper - javascript - typescript - nodejs
11 lines (10 loc) • 400 B
TypeScript
import { IResponse, IContext } from '../../types';
import { ITag } from '..';
export interface ICreateTagApiResponse {
tag: ITag;
}
export interface ICreateTagApiRequest {
name: string;
}
export type CreateTagResponse = IResponse<ICreateTagApiResponse>;
export declare const createTag: ({ httpClient, }: IContext) => ({ name, }: ICreateTagApiRequest) => Promise<Readonly<CreateTagResponse>>;