Skip to main content

TypeScriptLanguage

Type Alias TypeScriptLanguage 

Source
pub type TypeScriptLanguage = TSLanguage<TypeScriptProvider>;

Aliased Type§

pub struct TypeScriptLanguage { /* private fields */ }

Trait Implementations§

Source§

impl Comments for TypeScriptLanguage

The // default is right for TypeScript, header included: it once emitted Rust’s //! — valid, but a Rust idiom leaking into another language.

Source§

const LINE: Option<&'static str>

The line-comment introducer, e.g. //. Read more
Source§

const HEADER: Option<&'static str> = Self::LINE

The introducer for the DO NOT EDIT header the CLI writes onto a generated file, which has to be a comment in the language just generated — issue #136. Read more