MCPcopy Index your code
hub / github.com/processing/p5.js / processParam

Function processParam

utils/convert.mjs:118–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 // optional parameters, we'll add a ? to the end of parameter type to
117 // indicate that it's optional.
118 const processParam = param => {
119 let type = param.type;
120 if (param.optional) {
121 type += '?';
122 }
123 if (param.rest) {
124 type = `...${type}[]`;
125 }
126 return type;
127 };
128
129 // In some cases, even when the arguments are intended to mean different
130 // things, their types and order are identical. Since the exact meaning

Callers 1

processOverloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected