• This function creates a guard that matches with a literal string or an object than can be coerced to a literal string, like the String object

    Type Parameters

    • S extends string

    Parameters

    • literal: S

    Returns t.Type<S>