-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypedef.js
44 lines (38 loc) · 1000 Bytes
/
typedef.js
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
42
43
44
/**
* @module canvasit
*/
/**
* @typedef {object} Fragment
* @prop {object} blueprint
* @prop {object} template
* @prop {string} path
* @prop {string} name
*/
/**
* @typedef {object} Blueprint
* @prop {'base'|'feature'|'template'|string} type
* @prop {Object.<string, Import>=} imports
* @prop {ConfigsCallBack=} configs
* @prop {BlueprintHooks} hooks
*/
/**
* @typedef {object} BlueprintHooks
* @prop {BlueprintHookCallback} beforeConfig
* @prop {BlueprintHookCallback} afterConfig
* @prop {BlueprintHookCallback} beforeCopy
* @prop {BlueprintHookCallback} afterCopy
* @prop {BlueprintHookCallback} beforePatch
* @prop {BlueprintHookCallback} afterPatch
*/
/**
* @callback BlueprintHookCallback
* @param {import('./lib/blueprint/hookHelpers')['HookHelpers']['prototype']} BlueprintHook
*/
/**
* @typedef {object} Import
* @prop {string[]} entry
*/
/**
* @callback ConfigsCallBack
* @param {import('./lib/blueprint/configHelpers')['blueprintHelpers']} helpers
*/