Skip to content
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

Supports the use of interface dynamic types in spec files. #362

Open
yjhmelody opened this issue Jun 28, 2021 · 1 comment
Open

Supports the use of interface dynamic types in spec files. #362

yjhmelody opened this issue Jun 28, 2021 · 1 comment

Comments

@yjhmelody
Copy link

ERROR TS2339: Property '__aspectStrictEquals' does not exist on type 'assembly/__tests__/serde.spec/Layout'.

     result = left.__aspectStrictEquals(
                   ~~~~~~~~~~~~~~~~~~~~
 in ../../node_modules/@as-pect/assembly/assembly/internal/Reflect.ts(661,19)

ERROR TS2339: Property '__aspectAddReflectedValueKeyValuePairs' does not exist on type 'assembly/__tests__/serde.spec/Layout'.

         value.__aspectAddReflectedValueKeyValuePairs(
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 in ../../node_modules/@as-pect/assembly/assembly/internal/Reflect.ts(359,15)

I defined an interface in the spec file, and defined many classes to implement the interface, but I encountered such an error when I have not used these classes

@jtenner
Copy link
Contributor

jtenner commented Jun 28, 2021

This is because the aspect transform should be applied after classes are all generated. I will keep this in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants