UNPKG

dots-wrapper

Version:

Digital Ocean v2 api wrapper - javascript - typescript - nodejs

11 lines (10 loc) 452 B
import { IResponse, IContext } from '../../types'; import { ISnapshot } from '..'; export interface IGetSnapshotApiRequest { snapshot_id: string | number; } export interface IGetSnapshotApiResponse { snapshot: ISnapshot; } export type GetSnapshotResponse = IResponse<IGetSnapshotApiResponse>; export declare const getSnapshot: ({ httpClient, }: IContext) => ({ snapshot_id, }: IGetSnapshotApiRequest) => Promise<Readonly<GetSnapshotResponse>>;