event argument has no target.result property on IDBRequest: success event #30669
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Milestone
TypeScript Version: 3.4.0-dev.201
updated mar 1 & still no fix
https://github.com/Microsoft/TypeScript/blob/00bf32ca3967b07e8663d0cd2b3e2bbf572da88b/lib/lib.webworker.d.ts
goto line 1860
Search Terms:
onsuccess target result eventtarget idbrequest
Code
please note this code is a cut & past from https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB#Generating_handlers
Expected behavior:
no error
Actual behavior:
error TS2339: Property 'result' does not exist on type 'EventTarget'
Playground Link: N/A
Related Issues:
FileReader.onLoad/onLoadEnd event argument has no target.result property #4163 (Fixed)
IDBOpenDBRequest.onupgradeneeded also needs the same augmentation
IDBTransaction.onerror event.target.error will most likely also need type definitions updated
The text was updated successfully, but these errors were encountered: