Skip to content

Commit

Permalink
fix(typescript-estree): don't use as never
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Jun 13, 2021
1 parent 4dca1fb commit 07fd4b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/typescript-estree/src/node-utils.ts
Expand Up @@ -612,9 +612,11 @@ export function convertToken(
},
};
} else {
// @ts-expect-error TS is complaining about `value` not being the correct
// type but it is
return {
type: tokenType,
value: value as never,
value,
range: [start, end],
loc: getLocFor(start, end, ast),
};
Expand Down

0 comments on commit 07fd4b7

Please sign in to comment.