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

Function schemaToEvents

javascript/selenium-webdriver/generate_bidi.mjs:788–795  ·  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

786
787/** Map the schema's events to the generator's event-entry shape. */
788function schemaToEvents(schema) {
789 return schema.events.map((e) => ({
790 domain: e.domain,
791 methodStr: e.method,
792 eventName: e.name,
793 paramsTypeName: e.params ? normalizeDottedName(e.params.ref) : null,
794 }))
795}
796
797// ============================================================
798// Code generation

Callers 1

generateTypeScriptFunction · 0.85

Calls 2

normalizeDottedNameFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected