Typescriptの一般的な構文エラー
815 ワード
(window).attachEvent("onmessage", callback);
const el: HTMLElement | null = document.querySelector('xxx');
//Parameter 'el' implicitly has an 'any' type.
const parentKey = root.find(el => el === node).parent;
// :
const parentKey = root.find((el:any) => el === node).parent;
name!:string; // , name:string