-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
4.10 M4
In dev mode the following sample code is working fine but in jar version there a errors
let count = 0;
(Repository.query("//element(*, ametys:content)[@ametys:title='Welcome !']") as org.ametys.plugins.repository.NodeIteratorIterable<org.ametys.cms.repository.Content>).forEach(function(content) {
count++;
Ametys.console.info(`#${count} - ${content.getLastModified()}`)
});
Conversion of type 'NodeIteratorIterable<AmetysObject> | NodeIterator' to type 'NodeIteratorIterable<Content>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Type 'NodeIterator' is missing the following properties from type 'NodeIteratorIterable<Content>': iterator, close, getClass, hashCode, and 4 more.(2352)