When I use the styled function in a JavaScript file instead of a TypeScript file as shown below, Intellisense breaks in VSCode because the Extra type gets evaluated to undefined. Adding this default type fixes that and shouldn't have any negative impact on TypeScript users as far as I can tell.
When I use the
styled
function in a JavaScript file instead of a TypeScript file as shown below, Intellisense breaks in VSCode because the Extra type gets evaluated toundefined
. Adding this default type fixes that and shouldn't have any negative impact on TypeScript users as far as I can tell.