1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-28 00:44:30 +07:00
verdaccio-ui/types/packageMeta.ts
Andrew Hughson 5cb47ed49e fix: convert Engine component to hooks (#233)
* refactor: convert Engine component to hooks

* inline engine test data only used by one test

* remove  from engines tests

* remove confusing test abstraction

* change tests to not use mutations
2019-10-31 22:17:16 +01:00

59 lines
956 B
TypeScript

export interface PackageMetaInterface {
versions?: Versions;
'dist-tags'?: DistTags;
time?: Time;
latest: {
author?: Author;
name: string;
dist: {
fileCount: number;
unpackedSize: number;
};
engines?: {
node?: string;
npm?: string;
};
license?: Partial<LicenseInterface> | string;
version: 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;
description?: string;
license?: string;
main?: string;
keywords?: string[];
}
export interface Author {
name?: string;
email?: string;
url?: string;
avatar?: string;
}
export interface PackageDependencies {
[key: string]: string;
}