tsc

built-in
0.0% Savings
0 Commands
0 Tokens saved
3 Tests

Install

tokf install f262533fbc5c0c06dbfd6223bc2302c0c0116794d58634cdd12e9888000c6300
Safety checks passed

Filter definition

command = "tsc"

match_output = [
  { contains = "Found 0 errors", output = "✓ TypeScript: no errors" },
]

keep = ["\\(\\d+,\\d+\\): (error|warning)"]

[on_success]
output = "✓ TypeScript: ok"

[on_failure]
tail = 50

Examples

type errors show file references ~71 tokens → ~64 tokens (10% saved)
Raw output
src/app.ts(10,5): error TS2322: Type 'string' is not assignable to type 'number'.
src/utils.ts(34,12): error TS2339: Property 'foo' does not exist on type 'Bar'.
src/components/Button.tsx(8,3): warning TS6133: 'unused' is declared but its value is never read.

Found 3 errors in 3 files.
Filtered output
src/app.ts(10,5): error TS2322: Type 'string' is not assignable to type 'number'.
src/utils.ts(34,12): error TS2339: Property 'foo' does not exist on type 'Bar'.
src/components/Button.tsx(8,3): warning TS6133: 'unused' is declared but its value is never read.
found 0 errors message shows no errors variant ~6 tokens → ~6 tokens
Raw output
Found 0 errors in 10 files.
Filtered output
✓ TypeScript: no errors
no errors collapses to single line ~0 tokens → ~4 tokens
Raw output
 
Filtered output
✓ TypeScript: ok
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters