이러한 에러는 typescript가 예상하고 있는 특정한 type이 아닌, 다른 type을 넘겨줬을 때 발생하게 된다.
export type TMobileConditions = TMobileConditions<{
dataType?: ViwDataType;
dateFrom?: string;
dateTo?: string;
noFrom?: string;
noTo?: string;
}>;
자바스크립트
if (typeof token === ‘string’){ validateToken(token); }