-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Milestone
Description
TypeScript Version: ^3.7
Search Terms:
declare decorator decorated class property
Code
function baz(_target: Object, _key: string) {};
class Foo {
@baz declare bar: string;
}Expected behavior:
Error due to decorating ambient context.
Actual behavior:
No error, decorated property is emitted (exact same output as without declare).
Playground Link:
Related Issues:
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug