Skip to content

Commit e7d37a3

Browse files
TimothyGuitaloacasas
authored andcommitted
tools/doc: add more intrinsic and custom types
Backport-of: #11330
1 parent 5a81031 commit e7d37a3

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

tools/doc/type-parser.js

+27-11
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,45 @@ const jsGlobalTypes = [
1616
'Uint16Array', 'Uint32Array', 'Int8Array', 'Int16Array', 'Int32Array',
1717
'Uint8ClampedArray', 'Float32Array', 'Float64Array', 'Date', 'RegExp',
1818
'ArrayBuffer', 'DataView', 'Promise', 'EvalError', 'RangeError',
19-
'ReferenceError', 'SyntaxError', 'TypeError', 'URIError'
19+
'ReferenceError', 'SyntaxError', 'TypeError', 'URIError', 'Proxy', 'Map',
20+
'Set', 'WeakMap', 'WeakSet', 'Generator', 'GeneratorFunction',
21+
'AsyncFunction', 'SharedArrayBuffer'
2022
];
2123
const typeMap = {
24+
'Iterable': jsDocPrefix +
25+
'Reference/Iteration_protocols#The_iterable_protocol',
26+
'Iterator': jsDocPrefix +
27+
'Reference/Iteration_protocols#The_iterator_protocol',
28+
2229
'Buffer': 'buffer.html#buffer_class_buffer',
23-
'Handle': 'net.html#net_server_listen_handle_backlog_callback',
24-
'Stream': 'stream.html#stream_stream',
25-
'stream.Writable': 'stream.html#stream_class_stream_writable',
26-
'stream.Readable': 'stream.html#stream_class_stream_readable',
30+
2731
'ChildProcess': 'child_process.html#child_process_class_childprocess',
32+
2833
'cluster.Worker': 'cluster.html#cluster_class_worker',
34+
2935
'dgram.Socket': 'dgram.html#dgram_class_dgram_socket',
30-
'net.Socket': 'net.html#net_class_net_socket',
31-
'tls.TLSSocket': 'tls.html#tls_class_tls_tlssocket',
36+
3237
'EventEmitter': 'events.html#events_class_eventemitter',
33-
'Timer': 'timers.html#timers_timers',
38+
3439
'http.Agent': 'http.html#http_class_http_agent',
3540
'http.ClientRequest': 'http.html#http_class_http_clientrequest',
3641
'http.IncomingMessage': 'http.html#http_class_http_incomingmessage',
3742
'http.Server': 'http.html#http_class_http_server',
3843
'http.ServerResponse': 'http.html#http_class_http_serverresponse',
39-
'Iterator': jsDocPrefix +
40-
'Reference/Iteration_protocols#The_iterator_protocol',
41-
'URL': 'url.html#url_the_whatwg_url_api'
44+
45+
'Handle': 'net.html#net_server_listen_handle_backlog_callback',
46+
'net.Socket': 'net.html#net_class_net_socket',
47+
48+
'Stream': 'stream.html#stream_stream',
49+
'stream.Readable': 'stream.html#stream_class_stream_readable',
50+
'stream.Writable': 'stream.html#stream_class_stream_writable',
51+
52+
'tls.TLSSocket': 'tls.html#tls_class_tls_tlssocket',
53+
54+
'Timer': 'timers.html#timers_timers',
55+
56+
'URL': 'url.html#url_the_whatwg_url_api',
57+
'URLSearchParams': 'url.html#url_class_urlsearchparams'
4258
};
4359

4460
module.exports = {

0 commit comments

Comments
 (0)