-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Labels
needs triageIssue needs to be triagedIssue needs to be triaged
Description
What version of @astrojs/compiler
are you using?
2.2.1
What package manager are you using?
pnpm
What operating system are you using?
Linux
Describe the Bug
Tested on the latest version.
type Generic<T> = T & {foo:string};
export type Props = Generic<{baz: string}>;
it's working okay if Props
type is not exported, otherwise compiler throws Expected ">" but found "const"\n
.
wrapping in exported value in brackets fixes it.
export type Props = (Generic<{baz: string}>);
Link to Minimal Reproducible Example
Metadata
Metadata
Assignees
Labels
needs triageIssue needs to be triagedIssue needs to be triaged