MCPcopy Create free account
hub / github.com/Lucifier129/react-lite / getCompositionEventType

Function getCompositionEventType

examples/simple/react.js:191–200  ·  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

189 * @return {object}
190 */
191function getCompositionEventType(topLevelType) {
192 switch (topLevelType) {
193 case topLevelTypes.topCompositionStart:
194 return eventTypes.compositionStart;
195 case topLevelTypes.topCompositionEnd:
196 return eventTypes.compositionEnd;
197 case topLevelTypes.topCompositionUpdate:
198 return eventTypes.compositionUpdate;
199 }
200}
201
202/**
203 * 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