mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Add types to function parameters
This commit is contained in:
parent
f0d53fe40f
commit
29aac09641
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
export function domEventAsPromise(element, successEvent): Promise<void> {
|
||||
export function domEventAsPromise(element: HTMLElement, successEvent: string): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
let detach;
|
||||
const handleError = evt => {
|
||||
|
Loading…
Reference in New Issue
Block a user