1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-05 14:14:26 +07:00
verdaccio-ui/types/packageMeta.ts

54 lines
845 B
TypeScript
Raw Normal View History

2019-06-22 16:43:59 +07:00
export interface PackageMetaInterface {
versions?: Versions;
distTags?: DistTags;
time?: Time;
2019-06-22 16:43:59 +07:00
latest: {
name: string;
dist: {
fileCount: number;
unpackedSize: number;
};
license?: Partial<LicenseInterface> | string;
2019-06-22 16:43:59 +07:00
};
_uplinks: {};
}
interface LicenseInterface {
type: string;
url: string;
}
export interface DistTags {
[key: string]: string;
}
export interface Time {
[key: string]: string;
}
export interface Versions {
[key: string]: Version;
}
export interface Version {
name: string;
version: string;
author?: string | Author;
maintainers?: Maintainer[];
description?: string;
license?: string;
main?: string;
keywords?: string[];
}
interface Author {
name?: string;
email?: string;
url?: string;
}
interface Maintainer {
email?: string;
name?: string;
}