MCPcopy
hub / github.com/prettier/prettier / printNamedTupleMember

Function printNamedTupleMember

src/language-js/print/tuple.js:5–16  ·  view source on GitHub ↗
(path, options, print)

Source from the content-addressed store, hash-verified

3- `TupleTypeLabeledElement`(flow)
4*/
5function printNamedTupleMember(path, options, print) {
6 const { node } = path;
7
8 return [
9 // `TupleTypeLabeledElement` only
10 node.variance ? print("variance") : "",
11 print("label"),
12 node.optional ? "?" : "",
13 ": ",
14 print("elementType"),
15 ];
16}
17
18export { printNamedTupleMember };

Callers 2

printFlowFunction · 0.90
printTypescriptFunction · 0.90

Calls 1

printFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…