2022-11-30から1日間の記事一覧
async関数のreturn typeにvoidを定義した。 const someFunc = async (): void => { await someMethod() } TypeScriptに叱られる。 Type 'void' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible co…
async関数のreturn typeにvoidを定義した。 const someFunc = async (): void => { await someMethod() } TypeScriptに叱られる。 Type 'void' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible co…