Last 12 weeks · 22 commits
2 of 6 standards met
When exporting a function expression, I can annotate its types on the expression's parameters and return, or on the exported symbol by declaring it to be a function with the same parameters and return. In the latter case, since I specified the return type in the variable's type annotation, I expect that to satisfy the explicit return types requirement, which it does for the isolatedDeclarations compiler option. However, arrow functions still raise a lint error unless I also add the return type, while some function expressions don't raise an error even with no expression or declaration types. Expected behavior: isolatedDeclarations errors on the un-annotated a1/b1 and a3/b3, but allows a2/b2 because its type is inferrable. Following that seems reasonable, or perhaps requiring annotations for a2/b2 as well if this tool doesn't want to do that inference. I also don't expect differences between arrow functions and function expressions. Actual behavior: a1/a3/b3, raise the missing-return-type error as expected. b1 satisfies the checker despite not having any type annotations. a5 fails without the additional return type in a6, but b5 is just fine.
Updates the dependency to 0.110.0. deno_graph 0.110.0 is a breaking (0.x minor) release that adds the unstable config-imports support (the resolver hook and the build option, denoland/deno_graph#656). deno_doc itself needs no code changes for this: the new field is covered by the existing construction sites, and the new trait method has a default implementation. The bump is needed so the deno CLI can move to deno_graph 0.110.0 for the config-imports feature (denoland/deno#35320).
Repository: denoland/deno_doc. Description: Documentation generator for Deno Stars: 296, Forks: 74. Primary language: Rust. Languages: Rust (94.1%), TypeScript (2.2%), Handlebars (1.7%), CSS (1.4%), JavaScript (0.6%). License: MIT. Topics: deno, documentation. Latest release: 0.202.0 (1w ago). Open PRs: 19, open issues: 44. Last activity: 5d ago. Community health: 37%. Top contributors: denobot, crowlKats, dsherret, bartlomieju, kitsonk, lucacasonato, kt3k, magurotuna, zhmushan, crowlbot and others.