Skip to content

Instantly share code, notes, and snippets.

@pjmolina
Created January 15, 2018 09:18
Show Gist options
  • Save pjmolina/e451a33398c70e009d3f7b84c8fc5243 to your computer and use it in GitHub Desktop.
Save pjmolina/e451a33398c70e009d3f7b84c8fc5243 to your computer and use it in GitHub Desktop.
ts-pegjs sample tsc --strict compilation
$ tsc --strict output\arithmetics.ts
output/arithmetics.ts(170,3): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
output/arithmetics.ts(173,46): error TS7006: Parameter 'event' implicitly has an 'any' type.
output/arithmetics.ts(176,16): error TS7006: Parameter 'evt' implicitly has an 'any' type.
output/arithmetics.ts(177,21): error TS7006: Parameter 'text' implicitly has an 'any' type.
output/arithmetics.ts(177,27): error TS7006: Parameter 'n' implicitly has an 'any' type.
output/arithmetics.ts(187,18): error TS7006: Parameter 'text' implicitly has an 'any' type.
output/arithmetics.ts(187,24): error TS7006: Parameter 'length' implicitly has an 'any' type.
output/arithmetics.ts(235,37): error TS7006: Parameter 'result' implicitly has an 'any' type.
output/arithmetics.ts(235,45): error TS7006: Parameter 'element' implicitly has an 'any' type.
output/arithmetics.ts(245,37): error TS7006: Parameter 'result' implicitly has an 'any' type.
output/arithmetics.ts(245,45): error TS7006: Parameter 'element' implicitly has an 'any' type.
output/arithmetics.ts(272,61): error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
output/arithmetics.ts(420,20): error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.
output/arithmetics.ts(547,5): error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.
output/arithmetics.ts(578,20): error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.
output/arithmetics.ts(705,5): error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.
output/arithmetics.ts(736,20): error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.
output/arithmetics.ts(809,5): error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.
output/arithmetics.ts(840,20): error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.
output/arithmetics.ts(907,5): error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.
output/arithmetics.ts(938,20): error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.
output/arithmetics.ts(986,5): error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment