Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add compile-time checking for selectors that don't exist when using index signature syntax, ie. a['my-selector'] #26 #29

Conversation

silbinarywolf
Copy link

feat: add compile-time checking for selectors that don't exist when using index signature syntax, ie. a['my-selector']

@silbinarywolf silbinarywolf changed the title feat: add compile-time checking for selectors that don't exist when using index signature syntax, ie. a['my-selector'] feat: add compile-time checking for selectors that don't exist when using index signature syntax, ie. a['my-selector'] #26 Oct 18, 2019
…sing index signature syntax, ie. a['my-selector'] (seek-oss#20)
@silbinarywolf silbinarywolf force-pushed the feature/index-sig-compile-check branch from 487483c to c527c78 Compare October 18, 2019 04:21
@silbinarywolf
Copy link
Author

@MattsJones Mind giving this a review?
I'm not sure how to get robust tests on this logic without having TypeScript as a dep and actually running it through the type-checker :/

@mattcompiles
Copy link
Collaborator

@silbinarywolf
Copy link
Author

Huh that's interesting. Cheers.

We're running that exact version right now and I didn't see such an error come up when I manually tested this with *.d.ts files. I tweaked the playground to closer match what we do but it still gets errors.

This signals to me that merging this in would be a bad idea, though I don't understand why it's working with our build system. (Not that crazy, Webpack + ts-loader + TypeScript outputting ES5)

I'll close this for the time-being until I figure out a better solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants