UNPKG

dots-wrapper

Version:

Digital Ocean v2 api wrapper - javascript - typescript - nodejs

12 lines (11 loc) 458 B
import { IResponse, IContext } from '../../types'; import { IApp, IAppSpec } from '..'; export interface ICreateAppApiResponse { app: IApp; } export interface ICreateAppApiRequest { project_id?: string; spec: Partial<IAppSpec>; } export type CreateAppResponse = IResponse<ICreateAppApiResponse>; export declare const createApp: ({ httpClient, }: IContext) => ({ project_id, spec, }: ICreateAppApiRequest) => Promise<Readonly<CreateAppResponse>>;