@swc-next/types
v0.8.1
Published
ESTree types shared by SWC Next parsers and code generators
Readme
@swc-next/types
Shared ESTree declarations for SWC Next's parser, decoder, encoder, and generator.
import type { Program, Node } from "@swc-next/types";The declarations describe SWC Next's AST, including TypeScript, JSX, and error recovery nodes. Assignability from other parsers' AST types is not guaranteed.
Types are generated from the Rust AST definitions and #[estree] annotations
by ast_tools. Edit those definitions rather than the
generated declarations.
See the estree attribute documentation
for declaration overrides.
