Skip to content

Commit 96fbe16

Browse files
committed
Added type declarations
1 parent f9a4fa6 commit 96fbe16

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

generators/component/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ const fs = require('fs');
44
const featuresDir = path.join(process.cwd(), 'src/features');
55
const features = fs.readdirSync(featuresDir);
66

7+
/**
8+
*
9+
* @type {import('plop').PlopGenerator}
10+
*/
711
module.exports = {
812
description: 'Component Generator',
913
prompts: [

plopfile.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
const componentGenerator = require('./generators/component/index');
22

3+
/**
4+
*
5+
* @param {import('plop').NodePlopAPI} plop
6+
*/
37
module.exports = function (plop) {
48
plop.setGenerator('component', componentGenerator);
59
};

0 commit comments

Comments
 (0)