79821873

Date: 2025-11-17 03:01:49
Score: 1
Natty:
Report link

caused by the TypeScipt TextMate grammar not supporting multi-line function typeparameters correctly

heres the repo https://github.com/microsoft/TypeScript-TmLanguage/issues
and a similar issue https://github.com/microsoft/TypeScript-TmLanguage/issues/1048

single line works correctly

type ABC = string;

export type Foo =  {
  extend<ABC extends string,> (): string;
};

export const A = 5;

multi-line broken

type ABC = string;

export type Foo =  {
  extend<
    ABC extends string,
  > (): string;
};

export const A = 5;
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RedCMD