Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for single quotes #46

@Yash-Singh1

Description

@Yash-Singh1

Strings currently can't be wrapped in single quotes, they have to be wrapped in double-quotes:

type function TrimLeft = (T) => ^{
    if (T extends `${infer space}${infer rest}`) {
        return ^{
            if (space extends ' ' /* error */) {
                return TrimLeft<rest>
            } else {
                return rest
            }
        }
    } else {
        return never
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions