UNPKG

dots-wrapper

Version:

Digital Ocean v2 api wrapper - javascript - typescript - nodejs

12 lines (11 loc) 476 B
import { IResponse, IContext } from '../../types'; import { ISshKey } from '..'; export interface IUpdateSshKeyApiResponse { ssh_key: ISshKey; } export interface IUpdateSshKeyApiRequest { name: string; ssh_key_id: string | number; } export type UpdateSshKeyResponse = IResponse<IUpdateSshKeyApiResponse>; export declare const updateSshKey: ({ httpClient, }: IContext) => ({ name, ssh_key_id, }: IUpdateSshKeyApiRequest) => Promise<Readonly<UpdateSshKeyResponse>>;