Skip to content

@deprecated decorator does only fully work in interfaces #5335

Closed

Description

@fhammerschmidt

See playground Link

@deprecated does only seem to work for types in .res files. Only in an interface it also works for functions and modules.

This example suggests otherwise: https://rescript-lang.org/syntax-lookup#expression-deprecated-decorator

As a bindings library author it would make sense to support it in .res files as well, since bindings tend to look nearly identical in .res and .resi.

Activity

  1. stale commented on Mar 13, 2024

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  2. added
    stale
    on Mar 13, 2024
  3. fhammerschmidt commented on Mar 13, 2024

    @fhammerschmidt
    MemberAuthor

    bump

  4. removed
    stale
    on Mar 13, 2024
  5. github-actions commented on Mar 9, 2025

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  6. added
    stale
    on Mar 9, 2025
  7. fhammerschmidt commented on Mar 9, 2025

    @fhammerschmidt
    MemberAuthor

    bump

  8. removed
    stale
    on Mar 10, 2025
  9. github-actions commented on Mar 5, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  10. added
    stale
    on Mar 5, 2026
  11. fhammerschmidt commented on Mar 13, 2026

    @fhammerschmidt
    MemberAuthor

    Issue still exists in 12.2.0

  12. removed
    stale
    on Mar 14, 2026
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions