Type inference

The infer keyword allows you to instruct the TypeScript compiler to infer a more specific type.

Inference with template literals

Loading TypeScript...

Was this page helpful?