@comunica/types
Advanced tools
Comparing version 2.0.1-alpha.5.0 to 2.0.1-alpha.6.0
@@ -19,2 +19,6 @@ /** | ||
set: <V>(key: IActionContextKey<V>, value: V) => IActionContext; | ||
/** | ||
* Will only set the value if the key is not already set. | ||
*/ | ||
setDefault: <V>(key: IActionContextKey<V>, value: V) => IActionContext; | ||
delete: <V>(key: IActionContextKey<V>) => IActionContext; | ||
@@ -21,0 +25,0 @@ get: <V>(key: IActionContextKey<V>) => V | undefined; |
@@ -6,3 +6,3 @@ import type * as RDF from '@rdfjs/types'; | ||
import type { QueryAlgebraContext, QueryStringContext } from './IQueryContext'; | ||
import type { IQueryExplained, QueryEnhanced } from './IQueryOperationResult'; | ||
import type { IQueryExplained, QueryEnhanced, QueryExplainMode } from './IQueryOperationResult'; | ||
export declare type QueryFormatType = string | Algebra.Operation; | ||
@@ -18,9 +18,10 @@ export declare type SourceType = IDataSource; | ||
/** | ||
* Evaluate the given query | ||
* Explain the given query | ||
* @param {string | Algebra.Operation} query A query string or algebra. | ||
* @param context An optional query context. | ||
* @return {Promise<IQueryableResult | IQueryExplained>} | ||
* @param context A query context. | ||
* @param explainMode The explain mode. | ||
* @return {Promise<IQueryExplained>} | ||
* A promise that resolves to the query output. | ||
*/ | ||
queryOrExplain: <QueryFormatTypeInner extends QueryFormatType>(query: QueryFormatTypeInner, context?: QueryFormatTypeInner extends string ? QueryStringContext : QueryAlgebraContext) => Promise<QueryType | IQueryExplained>; | ||
explain: <QueryFormatTypeInner extends QueryFormatType>(query: QueryFormatTypeInner, context: QueryFormatTypeInner extends string ? QueryStringContext : QueryAlgebraContext, explainMode: QueryExplainMode) => Promise<IQueryExplained>; | ||
/** | ||
@@ -27,0 +28,0 @@ * @param context An optional context. |
@@ -69,5 +69,5 @@ import type * as RDF from '@rdfjs/types'; | ||
/** | ||
* A promise resolving to the boolean output of the operation. | ||
* An async function resolving to the boolean output of the operation. | ||
*/ | ||
booleanResult: Promise<boolean>; | ||
execute: () => Promise<boolean>; | ||
} | ||
@@ -84,5 +84,5 @@ /** | ||
/** | ||
* A promise resolving when the update has finished. | ||
* An async function resolving when the update has finished. | ||
*/ | ||
voidResult: Promise<void>; | ||
execute: () => Promise<void>; | ||
} | ||
@@ -129,2 +129,3 @@ /** | ||
* An interface marking an explained query. | ||
* WARNING: this API is experimental, and might be changed inbetween major versions. | ||
*/ | ||
@@ -131,0 +132,0 @@ export interface IQueryExplained { |
{ | ||
"name": "@comunica/types", | ||
"version": "2.0.1-alpha.5.0", | ||
"version": "2.0.1-alpha.6.0", | ||
"description": "Typings module for Comunica", | ||
@@ -16,2 +16,3 @@ "lsd:module": true, | ||
}, | ||
"sideEffects": false, | ||
"keywords": [ | ||
@@ -44,3 +45,3 @@ "comunica", | ||
}, | ||
"gitHead": "e2ae2e9e924bf0656df60cc99774f7e560d47695" | ||
"gitHead": "bbf46a068e635256495a40e784a4691b22e88bd3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
466
0
52945