Skip to content

Commit 49c4743

Browse files
docs(template): add JSDoc to js migration template (#1068)
Co-authored-by: Shinigami92 <[email protected]>
1 parent 373b81a commit 49c4743

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

templates/migration-template.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1+
/**
2+
* @type {import('node-pg-migrate').ColumnDefinitions | undefined}
3+
*/
14
exports.shorthands = undefined;
25

6+
/**
7+
* @param pgm {import('node-pg-migrate').MigrationBuilder}
8+
* @param run {() => void | undefined}
9+
* @returns {Promise<void> | void}
10+
*/
311
exports.up = (pgm) => {};
412

13+
/**
14+
* @param pgm {import('node-pg-migrate').MigrationBuilder}
15+
* @param run {() => void | undefined}
16+
* @returns {Promise<void> | void}
17+
*/
518
exports.down = (pgm) => {};

0 commit comments

Comments
 (0)