FG
💻 Software🛠️ Developer Tools

Missing TypeScript Nodes (2)

Freshalmost 9 years ago
Mar 14, 20260 views
Confidence Score76%
76%

Problem

See https://github.com/prettier/prettier/issues/1480#issuecomment-299230108 for up to date info There are still some nodes missing, but we're getting there :) Missing printer implementation: [x] "TSAsyncKeyword" (#1483) [x] "TSDecorator" (#1488) [x] "TSExportKeyword" (#1483) [x] "TSNamespaceFunctionDeclaration" (#1483) [x] "TSProtectedKeyword" (#1483) [x] "TSPublicKeyword" (#1483) [x] "TSHeritageClause" (#1483) [x] "TSExpressionWithTypeArguments (#1483) Missing in `typescript-ast-nodes.js`: [x] "TSParameterProperty" [x] "TSTypeParameter" There are also some nodes printed incorrectly, probably because some optional keywords aren't printed which should be easy to fix. And there are errors where we're trying to access properties on undefined, those are probably because TypeScript types are missing in `typescript-ast-nodes.js` or because we expect optional stuff to just be there. The raw output of running prettier of the TypeScript test suite can be found here (careful, it's big). If anyone wants to help with this drop a line here, so we don't duplicate the effort. see #1422 #13 #1306 /cc @azz

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
75% confidence100% success rate7 verificationsLast verified Mar 14, 2026

Solution: Missing TypeScript Nodes (2)

Low Risk

As I'm reading through answers from my tweet ( https://twitter.com/Vjeux/status/859444410869727232 ), a lot of people are eagerly waiting for TypeScript support to push it through their codebase at work. You are working on something really impactful!

75

Trust Score

7 verifications

100% success
  1. 1

    As I'm reading through answers from my tweet ( https://twitter.com/Vjeux/status/

    As I'm reading through answers from my tweet ( https://twitter.com/Vjeux/status/859444410869727232 ), a lot of people are eagerly waiting for TypeScript support to push it through their codebase at work. You are working on something really impactful!

Validation

Resolved in prettier/prettier GitHub issue #1480. Community reactions: 30 upvotes.

Verification Summary

Worked: 7
Partial: 2
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

prettierformattingjavascriptlang:typescriptlocked-due-to-inactivity