1
0
mirror of https://github.com/SomboChea/ui synced 2024-12-26 06:04:31 +07:00
verdaccio-ui/types/packageMeta.ts
Priscila Oliveira 1d705da38c feat: version Component - Replaced classes by func. comp (#129)
* refactor: replaced classes by func comp

* fix: fixed space margin

* refactor: changed display logic

* fix: fixed types

* fix: fixed Version test

* fix: fixed version style
2019-10-03 10:27:08 +02:00

54 lines
845 B
TypeScript

export interface PackageMetaInterface {
versions?: Versions;
distTags?: DistTags;
time?: Time;
latest: {
name: string;
dist: {
fileCount: number;
unpackedSize: number;
};
license?: Partial<LicenseInterface> | string;
};
_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;
}