ts2322 Type '() => void' is not assignable to type 'null'.ts(2322)이렇게 하면 에러 발생이러면 해결...타입스크립트에서만 나는 에러다.. 꼭 타입 지정해주기!