There was a issue where if you had a struct being called in a sub struct and in the top struct level, and that being after all the others it was causing a typescript issue.
I have extended the testEverything to include the edge case. Without my fix the output would be
This would cause a typescript error Block-scoped variable 'Post' used before its declaration. typescript error as PostWithMetaDataSchema is being used before the declaration of the object.
There was a issue where if you had a struct being called in a sub struct and in the top struct level, and that being after all the others it was causing a typescript issue.
I have extended the testEverything to include the edge case. Without my fix the output would be
This would cause a typescript error
Block-scoped variable 'Post' used before its declaration.
typescript error as PostWithMetaDataSchema is being used before the declaration of the object.