From 6cdf81db7c4a41d036eefc17e41ffb8db0cf54a1 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 30 Apr 2024 20:12:35 +0200 Subject: feat(cli): add support for jsxImportSourceTypes (#23419) Co-authored-by: David Sherret --- cli/schemas/config-file.v1.json | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/schemas') diff --git a/cli/schemas/config-file.v1.json b/cli/schemas/config-file.v1.json index a18894016..bfcae271b 100644 --- a/cli/schemas/config-file.v1.json +++ b/cli/schemas/config-file.v1.json @@ -76,6 +76,12 @@ "default": "react", "markdownDescription": "Specify module specifier used to import the JSX factory functions when using jsx: `react-jsx*`.\n\nSee more: https://www.typescriptlang.org/tsconfig/#jsxImportSource" }, + "jsxImportSourceTypes": { + "description": "Specify module specifier used to import the types for the JSX factory functions when using jsx: 'react-jsx*'. This is the logical equivalent of prefixing an import to the jsxImportSource with `// @deno-types=\"...\"`.", + "type": "string", + "default": "@types/react", + "markdownDescription": "Specify module specifier used to import the types for the JSX factory functions when using jsx: `react-jsx*`. This is the logical equivalent of prefixing an import to the jsxImportSource with `// @deno-types=\"...\"`." + }, "jsxPrecompileSkipElements": { "description": "Specify list of elements that should be exempt from being precompiled when the jsx 'precompile' transform is used.", "type": "array", -- cgit v1.2.3