Skip to content

Writing a plugin, I always get None for return_type #8085

Answered by magic-akari
drinking-code asked this question in Q&A
Discussion options

You must be logged in to vote

Optional::new(
typescript::tsx::<Option<&dyn Comments>>(
cm.clone(),
typescript::Config {
import_export_assign_config,
verbatim_module_syntax,
..Default::default()
},
typescript::TsxConfig {
pragma: Some(
transform
.react
.pragma
.clone()
.unwrap_or_else(default_pragma)
),
pragma_frag: Some(
transform
.react
.pragma_frag
.clone()
.unwrap_or_else(default_pragma_frag)
),
},
comments.map(|v| v as _),
top_level_mark
),
syntax.typescript()
),
plugin_transforms,

The plugin_t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@drinking-code
Comment options

Answer selected by drinking-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants