rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

@deprecated decorator does only fully work in interfaces

Open fhammerschmidt opened this issue 4 years ago • 2 comments

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.

fhammerschmidt avatar Nov 19 '21 17:11 fhammerschmidt

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.

stale[bot] avatar Mar 13 '24 08:03 stale[bot]

bump

fhammerschmidt avatar Mar 13 '24 09:03 fhammerschmidt

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.

github-actions[bot] avatar Mar 09 '25 01:03 github-actions[bot]

bump

fhammerschmidt avatar Mar 09 '25 20:03 fhammerschmidt