mirror of
https://github.com/SomboChea/ui
synced 2026-01-12 06:05:43 +07:00
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
This commit is contained in:
committed by
Juan Picado @jotadeveloper
parent
1a74c08b5d
commit
1d705da38c
@@ -1,4 +1,7 @@
|
||||
export interface PackageMetaInterface {
|
||||
versions?: Versions;
|
||||
distTags?: DistTags;
|
||||
time?: Time;
|
||||
latest: {
|
||||
name: string;
|
||||
dist: {
|
||||
@@ -14,3 +17,37 @@ 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user