Content-Length: 390848 | pFad | http://github.com/microsoft/TypeScript/wiki/Codebase-Compiler-FAQ

D8 Codebase Compiler FAQ · microsoft/TypeScript Wiki · GitHub
Skip to content

Codebase Compiler FAQ

Nathan Shively-Sanders edited this page Sep 2, 2022 · 1 revision

Frequently Asked Questions

How can I find out if a type is number[]?

getElementTypeOfArrayType(t) === numberType

getElementTypeOfArrayType returns undefined if t is not an array type. Use isArrayType or isArrayLikeType if that's all you need to know.

How can I delete nodes in a transformer?

Probably you return undefined instead of a new or existin node, but look at src/compiler/transformers/ts.ts. Deleting type annotations is its main job.

Clone this wiki locally








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/microsoft/TypeScript/wiki/Codebase-Compiler-FAQ

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy