Skip to content

Commit ef3ce35

Browse files
committed
Replace http.Server with custom Server type
1 parent 0a29479 commit ef3ce35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/docgen-post.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
const fs = require('fs');
22
const { join: path } = require('path');
33

4+
// TypeScript-only types need to be replaced with JSDoc types
45
const replaceMap = {
56
// Replace TS Record<> type with regular Object.<>
67
'Record': 'Object',
7-
'NodeJS.Timeout': 'Interval'
8+
'NodeJS.Timeout': 'Interval',
9+
'http.Server': 'Server'
810
};
911

1012
const docsPath = path(__dirname, '../docs/docs.json');

0 commit comments

Comments
 (0)