-
I have some script files bundled in a library that are to be invoked through Or do you recommend that these script files be type complete too? Scripts tend to have lots of top levels variables. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Do you include these scripts within the package of your library, or are the used only at build time? If they're build-only, I recommend excluding them from your package. If these scripts need to be included within your library package, I recommend putting them in their own subdirectory that starts with an underscore, such as Does that address your needs? |
Beta Was this translation helpful? Give feedback.
Do you include these scripts within the package of your library, or are the used only at build time? If they're build-only, I recommend excluding them from your package.
If these scripts need to be included within your library package, I recommend putting them in their own subdirectory that starts with an underscore, such as
_scripts
. This will tell type checkers that the files within this directory are not part of the library interface and are not meant to be imported by consumers of the library. The--verifytypes
check will also ignore all files in that directory.Does that address your needs?