@sethub/sdk
Version:
<div align="center"> <h1> SetHub SDK </h1>
22 lines (21 loc) • 661 B
TypeScript
import type { SetHubProtocols } from '../../../common/types/common';
import type { HttpClientProtocols } from '../../../http/protocols/client.protocols';
type CreateProjectFailure = {
code: 'internal';
message: string;
};
export declare namespace CreateProject {
type Input = {
name: string;
description?: string;
};
type Options = Pick<HttpClientProtocols.PostOptions, 'abortSignal'>;
type Success = {
slug: string;
};
type ErrorCodes = 'internal';
type Failure = CreateProjectFailure;
type Output = Success | Failure;
type Response = SetHubProtocols.Response<Success, Failure>;
}
export {};