When trying to use grunt-typescript
to compile my TS files, I'm getting the following error:
error TS1110: Type expected.
on each of these three lines
export type AttributeWriteType = "Append" | "Replace" | "Static";
export type Action = "Create" | "Delete";
export type Status = "Created" | "Queued" | "Running" | "Completed" | "Expired";
I'm fairly new to Typescript, so any insight would be greatly appreciated.
This is caused by grunt-typescript
having an out-of-date version of the TypeScript compiler. Check your package.json to ensure you're using a current version of the typescript
package.
It looks like grunt-typescript
isn't being supported anymore, so the TS compiler it uses is out of date.
I switched to using grunt-ts
instead, and it is working as intended.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With