UNPKG

mili

Version:

Scaffolding with continuous control over the development of the project.

21 lines (20 loc) 564 B
type RepositoryType = 'npm' | 'git' | 'fs'; interface BaseRepository { type: Readonly<RepositoryType>; name: Readonly<string>; version: Readonly<string>; storage: Readonly<string>; } export interface NpmRepository extends BaseRepository { type: 'npm'; registry?: Readonly<string>; } export interface GitRepository extends BaseRepository { type: 'git'; } export interface FsRepository extends BaseRepository { type: 'fs'; cwd: Readonly<string>; } export type Repository = NpmRepository | GitRepository | FsRepository; export {};