@huggingface/hub
Version:
Utilities to interact with the Hugging Face hub
26 lines • 865 B
TypeScript
import type { CredentialsParams, RepoDesignation, SpaceSdk } from "../types/public";
export declare function createRepo(params: {
repo: RepoDesignation;
/**
* If unset, will follow the organization's default setting. (typically public, except for some Enterprise organizations)
*/
private?: boolean;
license?: string;
/**
* Only a few lightweight files are supported at repo creation
*/
files?: Array<{
content: ArrayBuffer | Blob;
path: string;
}>;
/** @required for when {@link repo.type} === "space" */
sdk?: SpaceSdk;
hubUrl?: string;
/**
* Custom fetch function to use instead of the default one, for example to use a proxy or edit headers.
*/
fetch?: typeof fetch;
} & CredentialsParams): Promise<{
repoUrl: string;
}>;
//# sourceMappingURL=create-repo.d.ts.map