11 lines
404 B
Text
11 lines
404 B
Text
|
tests/cases/conformance/decorators/invalid/decoratorOnTypeAlias.ts(3,1): error TS1203: Decorators are not valid on this declaration type.
|
||
|
|
||
|
|
||
|
==== tests/cases/conformance/decorators/invalid/decoratorOnTypeAlias.ts (1 errors) ====
|
||
|
declare function dec<T>(target: T): T;
|
||
|
|
||
|
@dec
|
||
|
~~~~
|
||
|
type T = number;
|
||
|
~~~~~~~~~~~~~~~~
|
||
|
!!! error TS1203: Decorators are not valid on this declaration type.
|