Skip to content

Commit

Permalink
fixup! chore: improve no-declarations error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Oct 31, 2022
1 parent 462023c commit ce48d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/private/ts_validate_options.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def _validate_options_impl(ctx):
for d in ctx.attr.deps:
if not d[JsInfo].declarations:
fail("""\
ts_project '{0}' does not contain any declarations (.d.ts or other type-check files).
ts_project '{1}' dependency '{0}' does does not contain any declarations (.d.ts or other type-check files).
Generally, targets which produce no declarations aren't useful as dependencies to the TypeScript type-checker.
This likely means you forgot to set 'declaration = true' in the compilerOptions for that target.
Expand Down

0 comments on commit ce48d5c

Please sign in to comment.