-
-
Notifications
You must be signed in to change notification settings - Fork 84
Reworked weak target #888
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
Reworked weak target #888
Conversation
@pokey Tests added. Some test or not currently possible. For example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Haven't reviewed tests yet but overall looks like what we agreed on. Left a few comments
okay updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah looking better. Few more minor comments then I'll have a look at the tests and we should be good to go!
sure happy to record the snippet ones. For "inside funk", we're actually looking for a scope type that doesn't have an "inside" to ensure that it doesn't expand to containing pair, right? I don't see why we can't test that today. Would just be an error test. Tbh would prob be better not to use "funk" because that will break when we support inside "funk". Maybe better to use "inside token"? |
I think I've added all the test I can now
|
Co-authored-by: Pokey Rule <[email protected]>
Co-authored-by: Pokey Rule <[email protected]>
This reverts commit 9ad7e9f.
// NB: We import `Target` below just so that @link below resolves. Once one of | ||
// the following issues are fixed, we can either remove the above line or | ||
// switch to `{import("foo")}` syntax in the `{@link}` tag. | ||
// - https://github.com/microsoft/TypeScript/issues/43869 | ||
// - https://github.com/microsoft/TypeScript/issues/43950 | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import type { Target } from "../../typings/target.types"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kind of annoying, but this was the best I could come up with cc/ @AndreasArvidsson @auscompgeek
Fixes #883
Fixes #882
Checklist