Course contentsShow
TypeScript
Lesson 461 of 1,79611. Literal TypesPro lesson

Literal Types in Function Parameters

Use literal types to restrict function arguments to specific allowed string or number values.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.