mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
520 B
Plaintext
15 lines
520 B
Plaintext
a.mts(6,12): error TS7060: This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint.
|
|
|
|
|
|
==== a.mts (1 errors) ====
|
|
// @see https://github.com/microsoft/TypeScript/issues/44442
|
|
const a = <T,>(arg: T): T => {
|
|
return arg;
|
|
};
|
|
|
|
const b = <T>(arg: T): T => {
|
|
~
|
|
!!! error TS7060: This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint.
|
|
return arg;
|
|
};
|
|
|