angular-cn/aio/content/examples/dependency-injection-in-action
Jacob Foshee fe1ada86e8 docs: add missing return to example storage.service.ts (#31434)
While JavaScript does support implicit returns, it seems TypeScript will not infer the function return type from
the implicit return of the last statement (at least not in TS 3.4.3). So, when the `return` is missing from the
`get` function the implicit type of the function is `void`. So for the `get` function to be usable it needs to an
explicit return.

PR Close #31434
2020-11-20 08:28:56 -08:00
..
e2e/src refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
src docs: add missing return to example storage.service.ts (#31434) 2020-11-20 08:28:56 -08:00
example-config.json docs(aio): rename cb- files and a few others 2017-04-24 14:00:51 +01:00
stackblitz.json build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00