This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Use literal types to restrict function arguments to specific allowed string or number values.
You've completed the free preview. Subscribe to unlock every lesson in every course.