mirror of
https://github.com/SomboChea/ui
synced 2024-11-05 14:14:26 +07:00
75 lines
1.2 KiB
TypeScript
75 lines
1.2 KiB
TypeScript
export interface PackageMetaInterface {
|
|
versions?: Versions;
|
|
'dist-tags'?: DistTags;
|
|
time?: Time;
|
|
latest: {
|
|
author?: Author;
|
|
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;
|
|
};
|
|
maintainers?: Array<Developer>;
|
|
contributors?: Array<Developer>;
|
|
};
|
|
_uplinks: {};
|
|
}
|
|
export interface Developer {
|
|
name: string;
|
|
email: string;
|
|
avatar: 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;
|
|
}
|