bedrock icon indicating copy to clipboard operation
bedrock copied to clipboard

Add support for JS type checking

Open alexgibson opened this issue 2 years ago • 1 comments

Description

The front end team had a bit of a discussion about adding support for JS type checking to bedrock, and we agree that it would be a useful with some of our more complicated bits of JS on the site (analytics, attribution, newsletter management etc).

Options discussed so far include:

  • Typescript: https://www.typescriptlang.org/
  • JSDoc: https://jsdoc.app/

We haven't used JSDoc for type checking before, but it might prove simpler than Typescipt for our needs. Worth some further research.


Success Criteria

  • [ ] Ability to opt in files for JS type checking

alexgibson avatar Sep 08 '23 17:09 alexgibson

See also: https://alexharri.com/blog/jsdoc-as-an-alternative-typescript-syntax

alexgibson avatar Mar 11 '24 09:03 alexgibson