-
given the grammar
i would expect to find |
Beta Was this translation helpful? Give feedback.
Answered by
msujew
Apr 23, 2025
Replies: 1 comment
-
Hey @cdietrich, Likely a bug somewhere in the type inference. I believe as a workaround, ModelContent: (('@metadata' '{' (props+=MetadataPropertyAssignment)* '}')? (
{StructTypeDefinition} StructTypeDefinitionRule | ...;
interface StructTypeDefinition {
visibility?: 'private' | 'internal' | 'public';
props?: MetadataPropertyAssignment[];
name: string;
baseType?: string;
content: StructTypeMember[];
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cdietrich
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @cdietrich,
Likely a bug somewhere in the type inference. I believe as a workaround,
StructTypeDefinition
andSimpleTypeDefinition
could be interfaces that addvisibility?: ...
andprops: MetadataPropertyAssignment[]
. AFAIK that should work as expected: