UNPKG

unstorage

Version:
35 lines (34 loc) 706 B
export interface GithubOptions { /** * The name of the repository. (e.g. `username/my-repo`) * Required */ repo: string; /** * The branch to fetch. (e.g. `dev`) * @default "main" */ branch: string; /** * @default "" */ dir: string; /** * @default 600 */ ttl: number; /** * Github API token (recommended) */ token?: string; /** * @default "https://api.github.com" */ apiURL?: string; /** * @default "https://raw.githubusercontent.com" */ cdnURL?: string; } declare const _default: (opts?: GithubOptions | undefined) => import("../types").Driver; export default _default;