mirror of
https://github.com/SomboChea/ui
synced 2024-11-16 03:04:27 +07:00
9eb698f7e1
* refactor: convert class to func comp * fix: fixed wrong maintainer type * refactor: created a partials folder * fix: fixed test
51 lines
822 B
TypeScript
51 lines
822 B
TypeScript
export interface PackageMetaInterface {
|
|
versions?: Versions;
|
|
distTags?: DistTags;
|
|
time?: Time;
|
|
latest: {
|
|
author?: Author;
|
|
name: string;
|
|
dist: {
|
|
fileCount: number;
|
|
unpackedSize: number;
|
|
};
|
|
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;
|
|
}
|