MCPcopy Create free account
hub / github.com/Lobos/react-ui / getCompositionEventType

Function getCompositionEventType

docs/lib/react.js:138–147  ·  view source on GitHub ↗

* Translate native top level events into event types. * * @param {string} topLevelType * @return {object}

(topLevelType)

Source from the content-addressed store, hash-verified

136 * @return {object}
137 */
138function getCompositionEventType(topLevelType) {
139 switch (topLevelType) {
140 case topLevelTypes.topCompositionStart:
141 return eventTypes.compositionStart;
142 case topLevelTypes.topCompositionEnd:
143 return eventTypes.compositionEnd;
144 case topLevelTypes.topCompositionUpdate:
145 return eventTypes.compositionUpdate;
146 }
147}
148
149/**
150 * Does our fallback best-guess model think this event signifies that

Callers 1

extractCompositionEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…