/** * Adds VAT to a price * * @param{number} price The price without VAT * @param{number} vat The VAT [0-1] * * @returns{number} */functionaddVAT(price
// imports `Article` type from `article.ts`
// and makes it available under `Article`
/**
* @typedef { import('./article').Article } Article
*/
/**
* @type {Article}
*/
const article = {
title: 'The best book in the world',
price: 10,
vat: 0.2
}
// import from `types.d.ts` type declaration file
/**
* @typedef { import('./types.d').ShipStorage } ShipStorage
*/