Skip to content

use instantiation expressions in typescript 4.7 #127

Description

@DetachHead

https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-beta/#instantiation-expressions

this can probably be used to deprecate the create functions. eg.

before:

const isString = createIs<string>()

if (isString(value)) {
    //...
}

after:

const isString = is<string>;

if (isString(value)) {
    //...
}

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