UNPKG

github-folder-tree

Version:

github-folder-tree is a React custom hook that allows you to fetch and process the contents of a GitHub folder. It retrieves information about the files and subfolders in the specified folder, including their names, file types, download URLs, SHA hashes,

4 lines (3 loc) 218 B
import JSZip from 'jszip'; import { RepoFile } from '../types'; export declare const generateZip: (zip: JSZip, repoFiles: RepoFile[], setError: (error: string) => void, setLog: (log: string) => void) => Promise<void>;