Some TS declaration code may have certain settings they were generated with, and this may apply when it comes to parsing them. The presence/absence of certain libraries can make certain .d.ts files fail even though they are correct.
This issue fixes this by allowing users to pass TS configuration to the TS Declaration Generator, either as a file (command-line, config file), or as a normal TSConfig object (config file).
dart bin/gen_interop_bindings.dart --ts-config tsconfig.json # Pass the TS Configuration at tsconfig.json
# Pass the file
ts_config_file: ../tsconfig.json
# Or the config
ts_config:
lib: ['dom']