You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionexample(value: string|null){invariant(value!==null,"Value should not be null");// 이후로는 TypeScript가 value를 string으로 안전하게 인식함console.log(value.length);// value는 이제 string 타입으로 간주됨}
The text was updated successfully, but these errors were encountered:
Package Scope
Overview
주어진 condition이 false면 에러를 던져주는 함수입니다.
interface
Usage
The text was updated successfully, but these errors were encountered: