Skip to content
This repository was archived by the owner on Dec 7, 2024. It is now read-only.
This repository was archived by the owner on Dec 7, 2024. It is now read-only.

Switch to symbols to namespace props #8

Open
@SimonMeskens

Description

@SimonMeskens
Owner

I'm waiting for 2.9 to go stable to switch props from unique strings to symbols. From cursory testing, this works out of the box, but it probably needs the new keyof mechanics in 2.9 to work properly.

Activity

SimonMeskens

SimonMeskens commented on May 6, 2018

@SimonMeskens
OwnerAuthor

The documentation for interface TypeProps should mention that symbols are preferred

KiaraGrouwstra

KiaraGrouwstra commented on May 6, 2018

@KiaraGrouwstra

Word of warning: many type level operations like Omit currently cannot deal with symbols as they have no equivalent to keyof.

SimonMeskens

SimonMeskens commented on May 6, 2018

@SimonMeskens
OwnerAuthor

@tycho01 2.9 keyof supports symbols and numbers directly, from cursory testing, it handles TypeProps just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @KiaraGrouwstra@SimonMeskens

        Issue actions

          Switch to symbols to namespace props · Issue #8 · SimonMeskens/TypeProps