UNPKG

2.65 kBTypeScriptView Raw
1import type { BadgesField } from 'badges'
2import type Fellow from 'fellow'
3import type { Edition } from 'editions'
4export interface Link {
5 url: string
6 text: string
7 title?: string
8}
9export interface Github {
10 username: string
11 repository: string
12 slug: string
13 url: string
14 repositoryUrl: string
15}
16export interface FilenamesForPackageFiles {
17 [key: string]: string | null
18 projectz: string | null
19 package: string | null
20 bower: string | null
21 component: string | null
22 jquery: string | null
23}
24export interface DataForPackageFiles {
25 [key: string]: Record<string, any>
26}
27export interface FilenamesForReadmeFiles {
28 [key: string]: string | null
29 readme: string | null
30 history: string | null
31 contributing: string | null
32 backers: string | null
33 license: string | null
34}
35export interface DataForReadmeFiles {
36 [key: string]: string
37}
38export interface PackageEnhanced {
39 name?: string
40 version?: string
41 license?: string
42 description?: string
43 keywords?: string[]
44 author?: string
45 maintainers?: string[]
46 contributors?: string[]
47 bugs?: {
48 url: string
49 }
50 repository?: {
51 type: string
52 url: string
53 }
54 engines?: Record<string, string>
55 dependencies?: Record<string, string>
56 devDependencies?: Record<string, string>
57 main?: string
58}
59export interface ComponentEnhanced {
60 name?: string
61 version?: string
62 license?: string
63 description?: string
64 keywords?: string[]
65 demo?: string
66 main?: string
67 scripts?: string
68}
69export interface BowerEnhanced {
70 name?: string
71 version?: string
72 license?: string
73 description?: string
74 keywords?: string[]
75 authors?: string[]
76 main?: string
77}
78export declare type Editions = Edition[]
79export declare type EnhancedReadmesData = DataForReadmeFiles
80export interface EnhancedPackagesData {
81 [key: string]: any
82 filenamesForPackageFiles: FilenamesForPackageFiles
83 filenamesForReadmeFiles: FilenamesForReadmeFiles
84 component: ComponentEnhanced
85 bower: BowerEnhanced
86 jquery: Record<string, any>
87 package: PackageEnhanced
88 projectz: Record<string, any>
89 packages: Record<string, any>
90 name: string
91 title: string
92 version: string
93 description: string
94 dependencies: Record<string, string>
95 devDependencies: Record<string, string>
96 badges: BadgesField
97 keywords: string[]
98 browsers: boolean
99 editions: Edition[]
100 github?: Github
101 sponsor?: never
102 sponsors: Fellow[]
103 maintainer?: never
104 maintainers: Fellow[]
105 contributors: Fellow[]
106 author?: string
107 authors: Fellow[]
108 license?: string
109 licenses?: never
110 browser?: any
111 jspm?: any
112 homepage?: string
113 repository?: {
114 url: string
115 }
116}
117export interface EnhancedPackagesDataWithGitHub extends EnhancedPackagesData {
118 github: Github
119}
120//# sourceMappingURL=types.d.ts.map