UNPKG

@verdaccio/web

Version:
17 lines (16 loc) 649 B
import { Router } from 'express'; import { Auth } from '@verdaccio/auth'; import { $NextFunctionVer, $RequestExtend, $ResponseExtend } from '@verdaccio/middleware'; import { Storage } from '@verdaccio/store'; import { Manifest } from '@verdaccio/types'; import { AuthorAvatar } from '../web-utils'; export { $RequestExtend, $ResponseExtend, $NextFunctionVer }; export type PackageExt = Manifest & { author: AuthorAvatar; dist?: { tarball: string; }; }; export declare const NOT_README_FOUND = "ERROR: No README data found!"; declare function addReadmeWebApi(storage: Storage, auth: Auth): Router; export default addReadmeWebApi;