-
Notifications
You must be signed in to change notification settings - Fork 3
/
type.ts
41 lines (38 loc) · 785 Bytes
/
type.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export interface PackageManifest {
name: string
display: string
description?: string
external?: string[]
globals?: Record<string, string>
manualImport?: boolean
build?: boolean
iife?: boolean
cjs?: boolean
mjs?: boolean
dts?: boolean
target?: string
utils?: boolean
copy?: string[]
}
export interface HookFunction {
name: string
package: string
importPath?: string
lastUpdated?: number
category?: string
description?: string
docs?: string
internal?: boolean
component?: boolean
directive?: boolean
external?: string
}
export interface HookPackage extends PackageManifest {
dir: string
docs?: string
}
export interface PackageIndexes {
packages: Record<string, HookPackage>
categories: string[]
functions: HookFunction[]
}