Skip to content

Interop Gen: Support Passing TS Configuration from tsconfig.json #442

@nikeokoronkwo

Description

@nikeokoronkwo

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']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions