Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: use a union type for SignatureType #331

Merged
merged 1 commit into from Sep 23, 2021

Commits on Sep 23, 2021

  1. refactor!: use a union type for SignatureType

    This commit refactors the SignatureType enum into an array of strings
    declared [as const](microsoft/TypeScript#29510).
    This allows the SignatureType type to be expressed as a union type,
    which works a bit better when parsing a users provided string.
    
    This is some simple refactoring in preparation for declarative function
    signatures.
    
    BREAKING CHANGE: exported SignatureType type is converted from an enum
    to a union type
    matthewrobertson committed Sep 23, 2021
    Copy the full SHA
    9109288 View commit details
    Browse the repository at this point in the history