@@ -15,8 +15,8 @@ const UTILS_DIR_NAME = "utils";
1515const HOOKS_TYPE = [ "state" , "lifecycle" , "performance" , "events" , "api-dom" ] ;
1616
1717/**
18- *
19- * @param {{readonly value: string;add(s: string): this;set(s: string[]): this;} } router
18+ *
19+ * @param {{readonly value: string;add(s: string): this;set(s: string[]): this;} } router
2020 */
2121async function generateImportMarkdown ( router ) {
2222 /**
@@ -30,9 +30,9 @@ async function generateImportMarkdown(router) {
3030}
3131
3232/**
33- *
34- * @param {{readonly value: string;add(s: string): this;set(s: string[]): this;} } router
35- * @returns {Promise<{readonly value: string;add(s: string): this;set(s: string[]): this;}> } router
33+ *
34+ * @param {{readonly value: string;add(s: string): this;set(s: string[]): this;} } router
35+ * @returns {Promise<{readonly value: string;add(s: string): this;set(s: string[]): this;}> } router
3636 */
3737async function generateImportDemoComponent ( router ) {
3838 const demoComponentDirs = await fs . readdir ( path . join ( PATH_DEMO_SRC , DEMO_COMPONENT_DIR_NAME ) ) ;
@@ -59,9 +59,9 @@ async function generateImportDemoComponent(router) {
5959 for ( const componentDemoComponentDir of componentsDemoComponentDirs ) {
6060 const files = await fs . readdir ( path . join ( PATH_DEMO_SRC , DEMO_COMPONENT_DIR_NAME , demoComponentDir , componentDemoComponentDir ) ) ;
6161 files . forEach ( l => {
62- const [ fileName , extension ] = l . split ( "." ) [ 0 ] ;
62+ const [ fileName , extension ] = l . split ( "." ) ;
6363 if ( fileName . toLowerCase ( ) === componentDemoComponentDir . toLowerCase ( ) && extension === "tsx" ) {
64- router . add ( `const ${ fileName } = lazy((() => import('../${ DEMO_COMPONENT_DIR_NAME } /${ demoComponentDir } /${ componentDemoComponentDir } /${ fileName } ').then(module => ({default: "default" in module ? module["default"] : module["${ fileName } "]})) as unknown as () => Promise<{ default: ComponentType; }>)` ) ;
64+ router . add ( `const ${ fileName } = lazy((() => import('../${ DEMO_COMPONENT_DIR_NAME } /${ demoComponentDir } /${ componentDemoComponentDir } /${ fileName } ').then(module => ({default: "default" in module ? module["default"] : module["${ fileName } "]}))) as unknown as () => Promise<{ default: ComponentType; }>)` ) ;
6565 }
6666 } )
6767 }
@@ -70,8 +70,8 @@ async function generateImportDemoComponent(router) {
7070}
7171
7272/**
73- *
74- * @param {{readonly value: string;add(s: string): this;set(s: string[]): this;} } router
73+ *
74+ * @param {{readonly value: string;add(s: string): this;set(s: string[]): this;} } router
7575 */
7676async function generateImport ( router ) {
7777 router . set ( [
@@ -85,13 +85,13 @@ async function generateImport(router) {
8585}
8686
8787/**
88- *
89- * @param {{readonly value: string;add(s: string): this;set(s: string[]): this;} } router
90- * @param {string[] } stateFiles
91- * @param {string[] } lifecycleFiles
92- * @param {string[] } performanceFiles
93- * @param {string[] } eventsfiles
94- * @param {string[] } apiDomFiles
88+ *
89+ * @param {{readonly value: string;add(s: string): this;set(s: string[]): this;} } router
90+ * @param {string[] } stateFiles
91+ * @param {string[] } lifecycleFiles
92+ * @param {string[] } performanceFiles
93+ * @param {string[] } eventsfiles
94+ * @param {string[] } apiDomFiles
9595 */
9696function createHooksRoutes ( router , stateFiles , lifecycleFiles , performanceFiles , eventsFiles , apiDomFiles , ) {
9797 router . add ( ' {' ) ;
@@ -201,8 +201,8 @@ function createHooksRoutes(router, stateFiles, lifecycleFiles, performanceFiles,
201201}
202202
203203/**
204- *
205- * @param {{readonly value: string;add(s: string): this;set(s: string[]): this;} } router
204+ *
205+ * @param {{readonly value: string;add(s: string): this;set(s: string[]): this;} } router
206206 * @param {string[] } componentsFiles
207207 * @param {string } parentRoot
208208 */
@@ -222,8 +222,8 @@ function createRoutes(router, componentsFiles, parentRoot) {
222222}
223223
224224/**
225- *
226- * @param {{readonly value: string;add(s: string): this;set(s: string[]): this;} } router
225+ *
226+ * @param {{readonly value: string;add(s: string): this;set(s: string[]): this;} } router
227227 */
228228async function createRouter ( router ) {
229229 const libSrcIndexFile = await fs . readFile ( path . join ( PATH_LIB_SRC , "index.ts" ) ) ;
@@ -283,17 +283,17 @@ async function generateRouter() {
283283 const stringBuffer = {
284284 value : "" ,
285285 /**
286- *
287- * @param {string } s
286+ *
287+ * @param {string } s
288288 * @returns {this }
289289 */
290290 add ( s ) {
291291 this . value += s + "\n" ;
292292 return this ;
293293 } ,
294294 /**
295- *
296- * @param {string[] } s
295+ *
296+ * @param {string[] } s
297297 * @returns {this }
298298 */
299299 set ( s ) {
0 commit comments