Skip to content

Conversation

@chadhietala
Copy link
Contributor

Fix #20

This fixes issues where holey arrays or object literals within an array where not branded with a PropKind. That said it appears that casted object literals where being emitted with a PropKind.Type or PropKind.Interface which does not seem correct since these values exist at runtime.

This fixes some consistency issues where ObjectLiteral types where being emitted as Prokind.Type when they were actual objects that conform to a specific type
@vercel
Copy link

vercel bot commented May 27, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
structured-types ✅ Ready (Inspect) Visit Preview May 27, 2022 at 9:15PM (UTC)
@atanasster
Copy link
Contributor

Thanks a lot, looks great. Will try to merge it today or tomorrow .

can you give some examples of casted object literals

@chadhietala
Copy link
Contributor Author

chadhietala commented May 28, 2022

Sure. Here is the before and after.

The before is marking the kind as an interface but it's actually an Object thats casted to a specific interface.

Or here is another example where the object is being defined to conforming to a specific interface and is being marked as such. Here is this PR.

@atanasster atanasster merged commit d20079f into ccontrols:master Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants