alphagov / govuk-frontend-docs

Technical documentation for GOV.UK Frontend
https://frontend.design-system.service.gov.uk/
36 stars 11 forks source link

Update workaround for accessing `this.$root` with TypeScript #475

Closed romaricpascal closed 1 month ago

romaricpascal commented 1 month ago

Propose the use of a shorthand ambient module declaration rather than re-defining get $root, which has the advantage to not add extra JavaScript code to support TypeScript.

netlify[bot] commented 1 month ago

Deploy Preview for govuk-frontend-docs-preview ready!

Name Link
Latest commit 5655011815dac1cace8572ba5ff94a9ee48d3adf
Latest deploy log https://app.netlify.com/sites/govuk-frontend-docs-preview/deploys/670d2775e5cdbf0008e71adc
Deploy Preview https://deploy-preview-475--govuk-frontend-docs-preview.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.