Files
site/node_modules/unstorage/drivers/github.d.mts
T
site-admin 3ac81d5a52
deploy / build-and-publish (push) Successful in 1m37s
the editable site (validation-lab)
2026-11-21 08:03:55 +01:00

35 lines
712 B
TypeScript

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) => import("..").Driver<GithubOptions, never>;
export default _default;