#[deno_core::op2(async)] async fn op_fetch(#[string] req: String) -> String { async { "hello".to_string() }.await }
70 | #[deno_core::op2(async)] | ^^^^^^^^^^^^^^^^^^^^^^^^ | = help: message: Failed to parse #[op2]: - Failed to parse signature - Invalid return type - Invalid return type - Missing a #[string] attribute for type: String
#[string] String
#[deno_core::op2(async)] async fn op_fetch(#[string] req: String) -> #[string] String { async { "hello".to_string() }.await }
71 | async fn op_fetch2(#[string] req: String) -> #[string] String { | ^ expected type