Skip to content

Commit

Permalink
Narrow TypeScript spec exclusions to spec directory (#10003)
Browse files Browse the repository at this point in the history
changelog: Internal, Type Checking, Increase type checking code coverage
  • Loading branch information
aduth authored Jan 30, 2024
1 parent 05bf73e commit 0b6e886
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/javascript/packages/build-sass/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const TARGETS = browserslistToTargets(
* Compiles a given Sass file.
*
* @param {string} file File to build.
* @param {BuildOptions & SyncSassOptions} options Build options.
* @param {Partial<BuildOptions> & SyncSassOptions} options Build options.
*
* @return {Promise<CompileResult>}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const ExtractKeysWebpackPlugin = require('./extract-keys-webpack-plugin.js');
* // 'foo'
* ```
*
* @param {Record<string, any>} object
* @param {undefined|Record<string, any>} object
* @param {string[]} keyPath
*
* @return {any}
Expand Down Expand Up @@ -136,7 +136,7 @@ class RailsI18nWebpackPlugin extends ExtractKeysWebpackPlugin {
* @param {string} domain
* @param {string} locale
*
* @return {Promise<Record<string, string>>}
* @return {Promise<undefined|Record<string, string>>}
*/
getLocaleData(domain, locale) {
if (!(domain in this.localeData)) {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
"./*.js",
"scripts"
],
"exclude": ["**/fixtures", "**/*.spec.js"]
"exclude": ["**/fixtures", "spec/**/*.spec.js"]
}

0 comments on commit 0b6e886

Please sign in to comment.