0

I want to resolve type using typescript library. I want the type to be displayed as

type typeCheck = {
 name: string
} 

I am not able to find the exact typeChecker function that typescript library has to get the results.

I am using the below code but unable to get the resolved type result.

const typeChecker = program.getTypeChecker();
resolvedType = typeChecker.typeToString(type); // Pick<student, "name">

enter image description here

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.