@pbzweihander쯔방 :yuri: :yurigarden: :garden: @hongminhee洪 民憙 (Hong Minhee) 제가 방금 Prisma에서 겪은건 JS 단에서 null이 아니어야 하는 값에 null을 준 경우인데요. 상식적으로는 panic 대신에 올바른 에러메시지를 주는게 맞죠. 상황이 특이한게 이 경우엔 사용자로부터 올바른 입력이 들어올것을 보장하는것이 TS 타입입니다ㅋㅋ 그래서 Prisma의 입장은 TS단에서 타입체크를 통과하지 못하는 요청엔 panic을 띄울수있다는 건데 좀 황당하네요.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://yuri.garden/notes/a9jn8af52o on your instance and quote it. (Note that quoting is not supported in Mastodon.)