Skip to content

Commit bf5460c

Browse files
authored
Sortir les types dans des fichiers différents (#247)
1 parent bb0db9c commit bf5460c

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

assets/scripts/types/atelier.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* @typedef {Object} Page
3+
* @property {string} path
4+
* @property {string} title
5+
* @property {string} [content]
6+
* @property {boolean} [inMenu]
7+
* @property {boolean} [blogIndex] Is this page the index of the blog section? Defaults to false.
8+
* @property {number} index
9+
*/
10+
11+
/**
12+
* @typedef {Object} Article
13+
* @property {string} path
14+
* @property {string} title
15+
* @property {string} [content]
16+
*/
17+
18+
/**
19+
* @typedef {Object} EditeurFile
20+
* @property {string} fileName
21+
* @property {string} content
22+
* @property {string | undefined} previousContent
23+
* @property {string} title
24+
* @property {number} index
25+
* @property {string | undefined} previousTitle
26+
* @property {boolean} blogIndex
27+
*/
28+
29+
/**
30+
* @typedef {Object} FileContenu
31+
* @property {string} path
32+
* @property {string} title
33+
* @property {string} content
34+
* @property {number} index
35+
* @property {boolean} inMenu
36+
* @property {boolean} blogIndex
37+
*/

assets/scripts/types.js renamed to assets/scripts/types/git.js

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
/**
2-
* @typedef {Object} Page
3-
* @property {string} path
4-
* @property {string} title
5-
* @property {string} [content]
6-
* @property {boolean} [inMenu]
7-
* @property {boolean} [blogIndex] Is this page the index of the blog section? Defaults to false.
8-
* @property {number} index
9-
*/
10-
11-
/**
12-
* @typedef {Object} Article
13-
* @property {string} path
14-
* @property {string} title
15-
* @property {string} [content]
16-
*/
17-
181
/**
192
* @typedef {Object} ScribouilliGitRepo
203
* @property {string} repoId
@@ -33,6 +16,7 @@
3316
*/
3417

3518
/**
19+
* @description On pense que ça correspond au build status de GitHub?
3620
* @typedef {"in_progress" | "success" | "error" | "not_public"} BuildStatus
3721
*/
3822

@@ -83,24 +67,3 @@
8367
* @property {Object} owner
8468
* @property {string} owner.login
8569
*/
86-
87-
/**
88-
* @typedef {Object} EditeurFile
89-
* @property {string} fileName
90-
* @property {string} content
91-
* @property {string | undefined} previousContent
92-
* @property {string} title
93-
* @property {number} index
94-
* @property {string | undefined} previousTitle
95-
* @property {boolean} blogIndex
96-
*/
97-
98-
/**
99-
* @typedef {Object} FileContenu
100-
* @property {string} path
101-
* @property {string} title
102-
* @property {string} content
103-
* @property {number} index
104-
* @property {boolean} inMenu
105-
* @property {boolean} blogIndex
106-
*/

0 commit comments

Comments
 (0)