Skip to main content

project_type_script_typing

Function project_type_script_typing 

Source
pub fn project_type_script_typing(
    source: &str,
) -> Result<String, TranslationError>
Expand description

Project supported TypeScript annotations into the shared frontend’s JSDoc form.

§Errors

Returns the existing annotation or syntax obligation when the source cannot be projected by the shared typing rules.