2018-01-01から1ヶ月間の記事一覧
return ( <div key={key}> <td>{key}</td> </div> ); }); みたいなので、 [ts] 'React' は UMD グローバルを参照していますが、現在のファイルはモジュールです。代わりにインポートを追加することを考慮してください。 (property 'React' refers to a UMD global, but the current file is…
Typescript 2.2 Auto Import and Tslint Formatting · Issue #21424 · Microsoft/vscode · GitHub [command]+[,]にて "tslint.autoFixOnSave": true
JavaScript/Number - Wikibooks toFixedは Math.pow(10, -7).toFixed() "0" つかえない・・
小数点は、 Vivaldiのコンソールで見た。 Math.pow(10, -7) つまり 「10の-7乗」から、 1e-7 になった。 実際
インターフェイスが実装されてるクラスで、しゃあなしに空メソッド追加したい時。 async hogeMethod(): Promise<number> { // ダミー return await new Promise<number>((res) => { }); } とすればいい。</number></number>
<div class="page"> だとエラー https://stackoverflow.com/questions/46215614/property-does-not-exist-on-type-detailedhtmlprops-htmldivelement-with-react <div className="page"> でOK</div></div>
constructorがないComponentでやろうとするとエラー Argument of type 'typeof Login' is not assignable to parameter of type 'ComponentType<{ auth: any; } & { authActions: StatelessComponentつかう。
GitHub - jiadabaihua/-algorithm 使用 react-i18next 建立多語系 « 醬爆的不穩定因素
gsol.hatenablog.com
handleSubmit(event) { event.target.value; とJSだった時、TypeScriptでは? 調べたら https://stackoverflow.com/questions/40676343/typescript-input-onchange-event-target-value https://stackoverflow.com/questions/40676343/typescript-input-oncha…
第5章 P283 npm install --save multer P284 で以下のエラー 起動しました - http://localhost:3000 ファイルを受け付けました オリジナルファイル名: img_profile.png 保存したパス: /Users/shinriyo/imadoki_apps/src/ch5/express_test/tmp/fbf6a587e51c4c…
4章 P211 git clone https://github.com/electron/electron-quick-start cd electron-quick-start npm install && npm start P213 npm init -y npm i --save-dev electron npm i --save-dev react react-dom npm install --save-dev babel-core babel-preset…
set -gx PATH $PATH /Users/shinriyo/.npm-global/bin/ とした set -gx PATH $PATH ~/.npm-global/bin/ チルダはエスケープいるか忘れたので、これでもいけるかもね。
Bitflyerの認証でSMS受信できない。 ここを見た。 www.softbank.jp 海外から禁止になってたから・・・。