Closed
Description
The problem is the highlighting between the angle brackets is wrong in vscode.
im guessing that you have a rule like
begin: < other stuff
end: >
so when there is a new line after the <
it doesn't get recognized correctly.
Code
interface A {
colors: {
[key: string]: string;
};
data?: {
[key: string]: any;
};
}
const h = {
setSubProperty: <
T extends A,
K extends keyof T,
J extends keyof T[K]
>(
property: K,
key: J,
value: T[K][J]
) => {}
}
Edit: just noticed it works inside of an interface.
Metadata
Metadata
Assignees
Labels
No labels