Closed ememisya closed 7 months ago
It appears the following line of code is necessary for this to occur during configuration.
modelClassesConverter.preConverted(tsGenerator.getJavaPackageToTsModuleConverter(), Pageable.class);
Hi, did you try to add ConversionExtension like we described here https://github.com/blue-veery-gmbh/spring-rest-2-ts#support-for-spring-data-in-spring-rest-controllers---since-ver-122 Probably it is just missing in the tests.
You are correct. I was under the mistaken impression that com.blueveery.springrest2ts.examples.test.SpringDataPageableTest was actually executing when cloning the project and running "mvn test", apparently not.
I missed the following line. My apologies. https://github.com/blue-veery-gmbh/spring-rest-2-ts/blob/86b75e9265454049c3162bfba6792607a02491c4/spring-rest2ts-examples/pom.xml#L167
When verifying by running the default project tests it seems Pageable extension does not quite work as intended. I get the following output
This appears to be due to the Pageable.class being converted into tsAny (TSSimpleType) and not the expected type by tsParameter.getType() instanceof TSParameterizedTypeReference<?>