KC's Workspace
    Preparing search index...

    TS 4.1 template literal types

    type Z = `${'a' | 'b'}${'a' | 'b'}`
    

    Hierarchy (View Summary)

    • Type
      • TemplateLiteralType
    Index

    Constructors

    Properties

    head: string
    tail: [SomeType, string][]
    type: "templateLiteral"

    The type name identifier.

    Methods

    • Implementation method for toString. needsParenthesis will be used to determine if the returned string should be wrapped in parenthesis.

      Returns string