@huggingface/hub
Version:
Utilities to interact with the Hugging Face hub
22 lines • 683 B
TypeScript
import type { SetRequired } from "../../vendor/type-fest/set-required";
import type { RepoType, SpaceHardwareFlavor, SpaceSdk } from "../public";
import type { ApiCommitFile } from "./api-commit";
export type ApiCreateRepoPayload = {
name: string;
canonical?: boolean;
license?: string;
template?: string;
organization?: string;
/** @default false */
private?: boolean;
lfsmultipartthresh?: number;
files?: SetRequired<ApiCommitFile, "content">[];
} & ({
type: Exclude<RepoType, "space">;
} | {
type: "space";
hardware?: SpaceHardwareFlavor;
sdk: SpaceSdk;
sdkVersion?: string;
});
//# sourceMappingURL=api-create-repo.d.ts.map