String Literal Type

A string literal is a specific string (e.g. “click”) and a string literal type is the type describing a specific string:

1
const action: 'click' = 'click';