We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf669b commit d80ccbdCopy full SHA for d80ccbd
src/index.ts
@@ -256,10 +256,14 @@ export function tsPlugin(options?: {
256
if (code === 60) {
257
return this.finishOp(tt.relational, 1);
258
}
259
+ // Handle @ for decorators - can appear after type declarations
260
+ if (code === 64) {
261
+ ++this.pos;
262
+ return this.finishToken(tokTypes.at);
263
+ }
264
265
return super.getTokenFromCode(code);
266
-
267
readToken(code: number): any {
268
if (!this.inType) {
269
let context = this.curContext();
0 commit comments