Skip to content

Commit

Permalink
[INTERNAL] sap.ui.base.Object: make isA() generic (in TypeScript)
Browse files Browse the repository at this point in the history
Fixes SAP/ui5-typescript#387

Change-Id: I9af434c901b991dfe425f364e6e94997bc17bc6e
  • Loading branch information
akudev committed Mar 3, 2023
1 parent bbf0b72 commit 481bc37
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/sap.ui.core/.dtsgenrc
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,44 @@
}
}
]
},
{
"name": "sap.ui.base.Object",
"methods": [
{
"name": "isA",
"returnValue": {
"type": {
"kind": "NativeTSTypeExpression",
"type": "this is T"
}
},
"typeParameters": [
{
"name": "T",
"type": "sap.ui.base.Object",
"default": "sap.ui.base.Object"
}
]
},
{
"name": "isA",
"static": true,
"returnValue": {
"type": {
"kind": "NativeTSTypeExpression",
"type": "oObject is T"
}
},
"typeParameters": [
{
"name": "T",
"type": "sap.ui.base.Object",
"default": "sap.ui.base.Object"
}
]
}
]
}
]
}
Expand Down

0 comments on commit 481bc37

Please sign in to comment.