5 lines
146 B
TypeScript
5 lines
146 B
TypeScript
|
var x: CustomEvent;
|
|||
|
|
|||
|
// valid since detail is any
|
|||
|
x.initCustomEvent('hello', true, true, { id: 12, name: 'hello' });
|
|||
|
var y = x.detail.name;
|