TypeScript 7031 바인딩 요소 '인자' 암시적으로 any 형식이 있습니다 아래처럼 typescript를 선언할 때 발생하는 에러입니다. 함수 ({obj1, obj2} : {obj1 : 임의, obj2 : 임의}) {...} 해결하기 위한 여러가지 방법이 있는데, 몇 가지 소개하겠습니다. 먼저, 타입스크립트 interface, type 사용하여 actions 액션 인자를 정의하는 방법입니다. interface Options { test_var: string; payload?: BigInt;} type myType = { test_var: string; payload: BigInt;}; const actions = { TEST({ test_var, payload }: { test_var: string; payload?: BigInteger }) {}, TEST2({ test_va.. 2019. 11. 19. 이전 1 다음