Skip to content

Is there support for template literal types? #268

@David-van-der-Sluijs

Description

@David-van-der-Sluijs

In Typescript there is a thing called Template Literal Types. So I've made this example type:

type Owner = 'Bob' | 'Jeff';
type Dog = `${Owner}'s dog`;

The resulting union type of Dog now is "Bob's dog" | "Jeff's dog".

Is there a way to create a corresponding runtype for this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions