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
import{Type1}from"./type-1";exportfunctionisType1(obj: unknown): obj is Type1{consttypedObj=objasType1;returntypeoftypedObj==="string";}// This import is not used, resulting in the ts6133 errorimport{isType1}from"./type-1.type-guard";import{Type2}from"./type-2";exportfunctionisType2(obj: unknown): obj is Type2{consttypedObj=objasType2;returntypeoftypedObj==="string";}
The text was updated successfully, but these errors were encountered:
In my project, I'm making use of type aliases for primitives like
string
andnumber
. This results in the following TS compilation error:'{name}' is declared but its value is never read. ts(6133)
.Reproduce Steps:
Create two type aliases:
Output:
The text was updated successfully, but these errors were encountered: