angular / ts-api-guardian

MIT License
15 stars 15 forks source link

Throws and error if symbol is exported as a name that matches the `stripExportPattern`. #17

Closed chuckjaz closed 7 years ago

chuckjaz commented 7 years ago

REPRO: 1) Create a API that exports original_symbol as _private_symbol. 2) Run ts-api-guardian on the with stripExportPattern to include any symbol that begins with _ (e.g. /^_/)

RECEIVED: Exception: Symbol "original_symbol" was aliased as "_private_symbol". Aliases are not supported."

EXPECTED: API golden file produced without error that doesn't include _private_symbol.