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