pub fn emit_module_items(
items: &[ModuleItem],
comments: &SingleThreadedComments,
) -> StringExpand description
Emits a list of module items to a TypeScript source string.
This function takes AST nodes and optional comments, and produces properly formatted TypeScript source code.
§Example
ⓘ
use macroforge_ts_syn::emit_module_items;
use swc_core::ecma::ast::ModuleItem;
use swc_core::common::comments::SingleThreadedComments;
let items: Vec<ModuleItem> = vec![/* ... */];
let comments = SingleThreadedComments::default();
let source = emit_module_items(&items, &comments);