You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoshuaKGoldberg
changed the title
No way to create standalone union of strings
Standalone union of strings only created with 'definitions', not '$definitions'
Jul 29, 2022
Hi! I'm trying to work on typescript-eslint/typescript-eslint#5386 (typescript-eslint/typescript-eslint#5058) to auto-generate typescript-eslint's rule docs options. We have a schema that reduces to something like this:
Quick Node script that compiles the schema...
For context, a rule that shows this bug in its docs is: https://github.com/typescript-eslint/typescript-eslint/blob/029c2a8b0ea435922ad0643a4b22bef3cc05f55e/packages/eslint-plugin/src/rules/array-type.ts#L105.
Actual
Expected
Adding
"tsType": "Shared"
to theshared
object makes it assume there exists aShared
type somewhere (note the lack oftype Shared
):Switching
declareExternallyReferenced
off or on doesn't seem to help.Is this a bug or a feature request? 😄
The text was updated successfully, but these errors were encountered: