Having upgraded to 2.0.0, I am getting some unhappiness in tsc and my IDE with the typings in index.d.ts
{
"experimentalDecorators": true,
"noImplicitAny": true,
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"inlineSourceMap": true,
"declaration": true,
"strictNullChecks": true,
"outDir": "ext"
}
If it's not obvious what's going on, I'd be happy to try to put together a minimal repro.
node_modules/quadstore-comunica/index.d.ts:32:11 - error TS2320: Interface 'Engine' cannot simultaneously extend types 'StringQueryable<AllMetadataSupport, StringContext>' and 'AlgebraQueryable<Algebra, AllMetadataSupport, AlgebraContext>'.
Named property 'query' of types 'StringQueryable<AllMetadataSupport, StringContext>' and 'AlgebraQueryable<Algebra, AllMetadataSupport, AlgebraContext>' are not identical.
32 interface Engine extends StringQueryable<AllMetadataSupport, StringContext>
~~~~~~
node_modules/quadstore-comunica/index.d.ts:32:11 - error TS2320: Interface 'Engine' cannot simultaneously extend types 'StringSparqlQueryable<SparqlResultSupport, StringContext>' and 'AlgebraSparqlQueryable<Algebra, SparqlResultSupport, AlgebraContext>'.
Named property 'queryBindings' of types 'StringSparqlQueryable<SparqlResultSupport, StringContext>' and 'AlgebraSparqlQueryable<Algebra, SparqlResultSupport, AlgebraContext>' are not identical.
32 interface Engine extends StringQueryable<AllMetadataSupport, StringContext>
~~~~~~
node_modules/quadstore-comunica/index.d.ts:32:11 - error TS2320: Interface 'Engine' cannot simultaneously extend types 'StringSparqlQueryable<SparqlResultSupport, StringContext>' and 'AlgebraSparqlQueryable<Algebra, SparqlResultSupport, AlgebraContext>'.
Named property 'queryBoolean' of types 'StringSparqlQueryable<SparqlResultSupport, StringContext>' and 'AlgebraSparqlQueryable<Algebra, SparqlResultSupport, AlgebraContext>' are not identical.
32 interface Engine extends StringQueryable<AllMetadataSupport, StringContext>
~~~~~~
node_modules/quadstore-comunica/index.d.ts:32:11 - error TS2320: Interface 'Engine' cannot simultaneously extend types 'StringSparqlQueryable<SparqlResultSupport, StringContext>' and 'AlgebraSparqlQueryable<Algebra, SparqlResultSupport, AlgebraContext>'.
Named property 'queryQuads' of types 'StringSparqlQueryable<SparqlResultSupport, StringContext>' and 'AlgebraSparqlQueryable<Algebra, SparqlResultSupport, AlgebraContext>' are not identical.
32 interface Engine extends StringQueryable<AllMetadataSupport, StringContext>
~~~~~~
node_modules/quadstore-comunica/index.d.ts:32:11 - error TS2320: Interface 'Engine' cannot simultaneously extend types 'StringSparqlQueryable<SparqlResultSupport, StringContext>' and 'AlgebraSparqlQueryable<Algebra, SparqlResultSupport, AlgebraContext>'.
Named property 'queryVoid' of types 'StringSparqlQueryable<SparqlResultSupport, StringContext>' and 'AlgebraSparqlQueryable<Algebra, SparqlResultSupport, AlgebraContext>' are not identical.
32 interface Engine extends StringQueryable<AllMetadataSupport, StringContext>
~~~~~~
node_modules/quadstore-comunica/index.d.ts:32:11 - error TS2395: Individual declarations in merged declaration 'Engine' must be all exported or all local.
32 interface Engine extends StringQueryable<AllMetadataSupport, StringContext>
~~~~~~
node_modules/quadstore-comunica/index.d.ts:33:22 - error TS2709: Cannot use namespace 'Algebra' as a type.
33 , AlgebraQueryable<Algebra, AllMetadataSupport, AlgebraContext>
~~~~~~~
node_modules/quadstore-comunica/index.d.ts:35:28 - error TS2709: Cannot use namespace 'Algebra' as a type.
35 , AlgebraSparqlQueryable<Algebra, SparqlResultSupport, AlgebraContext> {}
~~~~~~~
node_modules/quadstore-comunica/index.d.ts:37:15 - error TS2395: Individual declarations in merged declaration 'Engine' must be all exported or all local.