Skip to content

Commit 5149031

Browse files
Extend DOM Events from Event
1 parent 11e587b commit 5149031

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/dynamic-param-interfaces.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const flushParamInterfaces = (API, addToOutput) => {
8282
declared[paramKey] = paramInterfacesToDeclare[paramKey]
8383
const param = paramInterfacesToDeclare[paramKey]
8484
const paramAPI = []
85-
paramAPI.push(`interface ${_.upperFirst(param.tName)} {`)
85+
paramAPI.push(`interface ${_.upperFirst(param.tName)}${param.extends ? ` extends ${param.extends}` : ''} {`)
8686

8787
param.properties = param.properties || []
8888
param.properties.forEach((paramProperty) => {

lib/module-declaration.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ const generateModuleDeclaration = (module, index, API) => {
8787
name: 'event',
8888
type: 'Object',
8989
collection: false,
90-
properties: []
90+
properties: [],
91+
extends: 'Event'
9192
}
9293

9394
domEvent.returns.forEach((eventListenerProp, index) => {

0 commit comments

Comments
 (0)