LoginSignup
3
2

More than 3 years have passed since last update.

TypeScript中括弧の型定義方法

Posted at

エラー箇所

  login: ({ commit }) => {

エラー内容

commitの部分で以下のエラーを吐く

Binding element 'commit' implicitly has an 'any' type.ts

修正方法

  login: ({ commit }: { commit: Function }) => {

参照
TypeScript公式

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2