Skip to content

Instantly share code, notes, and snippets.

@georgebohnisch
Created January 31, 2019 23:04
Show Gist options
  • Save georgebohnisch/cdb472e98e196f78dc589e1dd40563f4 to your computer and use it in GitHub Desktop.
Save georgebohnisch/cdb472e98e196f78dc589e1dd40563f4 to your computer and use it in GitHub Desktop.
ffmpeg-normalize compile errors
$ tsc --build tsconfig.json
src/normalizer.ts:49:7 - error TS7017: Element implicitly has an 'any' type because type 'Validator' has no index signature.
49 if (this[name])
~~~~~~~~~~
src/normalizer.ts:51:8 - error TS7017: Element implicitly has an 'any' type because type 'Validator' has no index signature.
51 if (this[name].isValid(Number(value)))
~~~~~~~~~~
src/normalizer.ts:58:91 - error TS7017: Element implicitly has an 'any' type because type 'Validator' has no index signature.
58 console.log(`Loudness parameter validator:: ${name} is not in range setting default ${this[name].base}.`);
~~~~~~~~~~
src/normalizer.ts:59:12 - error TS7017: Element implicitly has an 'any' type because type 'Validator' has no index signature.
59 return this[name].base;
~~~~~~~~~~
src/normalizer.ts:112:3 - error TS7031: Binding element 'input_i' implicitly has an 'any' type.
112 input_i,
~~~~~~~
src/normalizer.ts:113:3 - error TS7031: Binding element 'input_lra' implicitly has an 'any' type.
113 input_lra,
~~~~~~~~~
src/normalizer.ts:114:3 - error TS7031: Binding element 'input_tp' implicitly has an 'any' type.
114 input_tp,
~~~~~~~~
src/normalizer.ts:115:3 - error TS7031: Binding element 'input_thresh' implicitly has an 'any' type.
115 input_thresh,
~~~~~~~~~~~~
src/normalizer.ts:116:3 - error TS7031: Binding element 'target_offset' implicitly has an 'any' type.
116 target_offset
~~~~~~~~~~~~~
src/normalizer.ts:118:3 - error TS7006: Parameter 'validator' implicitly has an 'any' type.
118 validator?
~~~~~~~~~~
src/normalizer.ts:143:3 - error TS7031: Binding element 'normalization' implicitly has an 'any' type.
143 normalization,
~~~~~~~~~~~~~
src/normalizer.ts:144:3 - error TS7031: Binding element 'target' implicitly has an 'any' type.
144 target
~~~~~~
src/normalizer.ts:171:3 - error TS7031: Binding element 'input' implicitly has an 'any' type.
171 input,
~~~~~
src/normalizer.ts:172:3 - error TS7031: Binding element 'loudness' implicitly has an 'any' type.
172 loudness,
~~~~~~~~
src/normalizer.ts:186:21 - error TS7031: Binding element 'stderr' implicitly has an 'any' type.
186 processAfter: ({ stderr }) => {
~~~~~~
src/normalizer.ts:193:3 - error TS7031: Binding element 'input' implicitly has an 'any' type.
193 input,
~~~~~
src/normalizer.ts:194:3 - error TS7031: Binding element 'output' implicitly has an 'any' type.
194 output,
~~~~~~
src/normalizer.ts:195:3 - error TS7031: Binding element 'loudness' implicitly has an 'any' type.
195 loudness,
~~~~~~~~
src/normalizer.ts:196:3 - error TS7031: Binding element 'measured' implicitly has an 'any' type.
196 measured
~~~~~~~~
src/normalizer.ts:299:3 - error TS7031: Binding element 'input' implicitly has an 'any' type.
299 input,
~~~~~
src/normalizer.ts:300:3 - error TS7031: Binding element 'output' implicitly has an 'any' type.
300 output,
~~~~~~
src/normalizer.ts:301:3 - error TS7031: Binding element 'loudness' implicitly has an 'any' type.
301 loudness,
~~~~~~~~
src/normalizer.ts:317:3 - error TS7031: Binding element 'input' implicitly has an 'any' type.
317 input,
~~~~~
src/normalizer.ts:318:3 - error TS7031: Binding element 'output' implicitly has an 'any' type.
318 output,
~~~~~~
src/normalizer.ts:319:3 - error TS7031: Binding element 'loudness' implicitly has an 'any' type.
319 loudness,
~~~~~~~~
src/normalizer.ts:323:14 - error TS2585: 'Promise' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
323 return new Promise((resolve, reject) => {
~~~~~~~
src/normalizer.ts:323:23 - error TS7006: Parameter 'resolve' implicitly has an 'any' type.
323 return new Promise((resolve, reject) => {
~~~~~~~
src/normalizer.ts:323:32 - error TS7006: Parameter 'reject' implicitly has an 'any' type.
323 return new Promise((resolve, reject) => {
~~~~~~
src/normalizer.ts:326:17 - error TS7031: Binding element 'stdout' implicitly has an 'any' type.
326 success: ({ stdout, stderr, processed}) => {
~~~~~~
src/normalizer.ts:326:25 - error TS7031: Binding element 'stderr' implicitly has an 'any' type.
326 success: ({ stdout, stderr, processed}) => {
~~~~~~
src/normalizer.ts:326:33 - error TS7031: Binding element 'processed' implicitly has an 'any' type.
326 success: ({ stdout, stderr, processed}) => {
~~~~~~~~~
src/normalizer.ts:337:11 - error TS7006: Parameter 'error' implicitly has an 'any' type.
337 fail: error => {
~~~~~
src/normalizer.ts:354:4 - error TS7031: Binding element 'input' implicitly has an 'any' type.
354 input,
~~~~~
src/normalizer.ts:355:4 - error TS7031: Binding element 'output' implicitly has an 'any' type.
355 output,
~~~~~~
src/normalizer.ts:356:4 - error TS7031: Binding element 'loudness' implicitly has an 'any' type.
356 loudness,
~~~~~~~~
src/normalizer.ts:357:4 - error TS7031: Binding element 'measured' implicitly has an 'any' type.
357 measured,
~~~~~~~~
src/normalizer.ts:361:15 - error TS2585: 'Promise' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
361 return new Promise((resolve, reject) => {
~~~~~~~
src/normalizer.ts:361:24 - error TS7006: Parameter 'resolve' implicitly has an 'any' type.
361 return new Promise((resolve, reject) => {
~~~~~~~
src/normalizer.ts:361:33 - error TS7006: Parameter 'reject' implicitly has an 'any' type.
361 return new Promise((resolve, reject) => {
~~~~~~
src/normalizer.ts:364:18 - error TS7031: Binding element 'stdout' implicitly has an 'any' type.
364 success: ({ stdout, stderr}) => {
~~~~~~
src/normalizer.ts:364:26 - error TS7031: Binding element 'stderr' implicitly has an 'any' type.
364 success: ({ stdout, stderr}) => {
~~~~~~
src/normalizer.ts:377:12 - error TS7006: Parameter 'error' implicitly has an 'any' type.
377 fail: error => {
~~~~~
src/normalizer.ts:432:28 - error TS7006: Parameter 'input' implicitly has an 'any' type.
432 module.exports.normalize = input => {
~~~~~
src/normalizer.ts:439:11 - error TS7006: Parameter 'measured' implicitly has an 'any' type.
439 .then( measured => {
~~~~~~~~
src/normalizer.ts:444:29 - error TS2345: Argument of type '{ input: any; output: any; loudness: any; }' is not assignable to parameter of type '{ [x: string]: any; input: any; output: any; loudness: any; measured: any; }'.
Property 'measured' is missing in type '{ input: any; output: any; loudness: any; }' but required in type '{ [x: string]: any; input: any; output: any; loudness: any; measured: any; }'.
444 return Normalizer.change(validated);
~~~~~~~~~
Found 45 errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment