Add types to function parameters

This commit is contained in:
Eric Eastwood 2022-11-10 21:11:38 -06:00
parent f0d53fe40f
commit 29aac09641

View File

@ -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 => {