From 97c3a246c04b542fac3d64c498289f8440f2bc90 Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Sat, 20 Nov 2021 14:42:40 +0000 Subject: [PATCH] Note the tools for dts bundling --- src/content/content-types.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/content/content-types.yml b/src/content/content-types.yml index ef2f214..d7b625b 100644 --- a/src/content/content-types.yml +++ b/src/content/content-types.yml @@ -409,8 +409,9 @@ body: publish the compiled JavaScript code as a package for others to use, you will probably also want to publish type declarations. This is not something that esbuild can do for you because it doesn't retain any type information. - You will likely either need to use the TypeScript compiler to generate them - or manually write them yourself. + You will likely either need to use the TypeScript compiler to generate them, + use [`rollup-plugin-dts`](https://github.com/Swatinem/rollup-plugin-dts/)/ + [api-extractor](https://api-extractor.com) or manually write them yourself.

- h4#tsconfig-json: Only certain `tsconfig.json` fields are respected