MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / schemaToEvents

Function schemaToEvents

javascript/selenium-webdriver/generate_bidi.mjs:729–736  ·  view source on GitHub ↗

Map the schema's events to the generator's event-entry shape.

(schema)

Source from the content-addressed store, hash-verified

727
728/** Map the schema's events to the generator's event-entry shape. */
729function schemaToEvents(schema) {
730 return schema.events.map((e) => ({
731 domain: e.domain,
732 methodStr: e.method,
733 eventName: e.name,
734 paramsTypeName: e.params ? normalizeDottedName(e.params.ref) : null,
735 }))
736}
737
738// ============================================================
739// Code generation

Callers 1

generateTypeScriptFunction · 0.85

Calls 2

normalizeDottedNameFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected