1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![allow(missing_docs)]
4pub mod ast;
7pub mod builder;
8
9pub mod language;
10pub mod lexer;
11#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
12pub mod lsp;
13#[cfg(feature = "mcp")]
15pub mod mcp;
16
17pub mod parser;
18
19pub use crate::{
21 ast::TypeScriptRoot,
22 builder::TypeScriptBuilder,
23 language::TypeScriptLanguage,
24 lexer::{TypeScriptLexer, token_type::TypeScriptTokenType},
25 parser::{TypeScriptParser, element_type::TypeScriptElementType},
26};
27
28#[cfg(feature = "lsp")]
29pub use crate::lsp::{TypeScriptLanguageService, formatter::TypeScriptFormatter, highlighter::TypeScriptHighlighter};
30
31#[cfg(feature = "mcp")]
32pub use crate::mcp::serve_typescript_mcp;