1
0
mirror of https://github.com/SomboChea/ui synced 2024-12-27 14:44:28 +07:00
verdaccio-ui/types/packageMeta.ts

82 lines
1.3 KiB
TypeScript
Raw Normal View History

2019-06-22 16:43:59 +07:00
export interface PackageMetaInterface {
versions?: Versions;
2019-10-12 05:06:18 +07:00
'dist-tags'?: DistTags;
time?: Time;
2019-06-22 16:43:59 +07:00
latest: {
author?: Author;
2019-06-22 16:43:59 +07:00
name: string;
dist: {
fileCount: number;
unpackedSize: number;
tarball?: string;
};
engines?: {
node?: string;
npm?: string;
};
license?: Partial<LicenseInterface> | string;
version: string;
homepage?: string;
bugs?: {
url: string;
};
repository?: {
type?: string;
url?: string;
};
description?: string;
funding?: Funding;
maintainers?: Array<Developer>;
contributors?: Array<Developer>;
2019-06-22 16:43:59 +07:00
};
_uplinks: {};
}
export interface Developer {
name: string;
email: string;
avatar: string;
}
interface Funding {
type?: string;
url: string;
}
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;
}