11 lines
No EOL
401 B
Text
11 lines
No EOL
401 B
Text
tests/cases/compiler/customEventDetail.ts(1,8): error TS2304: Cannot find name 'CustomEvent'.
|
|
|
|
|
|
==== tests/cases/compiler/customEventDetail.ts (1 errors) ====
|
|
var x: CustomEvent;
|
|
~~~~~~~~~~~
|
|
!!! error TS2304: Cannot find name 'CustomEvent'.
|
|
|
|
// valid since detail is any
|
|
x.initCustomEvent('hello', true, true, { id: 12, name: 'hello' });
|
|
var y = x.detail.name; |