@balena/contrato
Advanced tools
Comparing version 0.9.0 to 0.9.1-build-improve-query-typing-529407f9f7bb44abb83a17afba139733d49c6218-1
@@ -8,5 +8,5 @@ import Contract from './contract'; | ||
}): Contract[]; | ||
reproduce(contract: Contract): Contract[]; | ||
reproduce(contract: Contract, asIterable?: false): Contract[]; | ||
reproduce(contract: Contract, asIterable: true): IterableIterator<Contract>; | ||
reproduce(contract: Contract, asIterable?: boolean): Contract[] | IterableIterator<Contract>; | ||
reproduce(contract: Contract, asIterable?: boolean): IterableIterator<Contract> | Contract[]; | ||
} |
@@ -7,3 +7,4 @@ import { BlueprintLayout, BlueprintObject, ContractObject } from './types/types'; | ||
export { BlueprintLayout, ContractObject, BlueprintObject, Contract, Blueprint, buildTemplate, parseCardinality, }; | ||
export declare const query: (universe: Contract, layout: BlueprintLayout, skeleton: object, asIterable?: boolean) => Contract[] | IterableIterator<Contract>; | ||
export declare function query(universe: Contract, layout: BlueprintLayout, skeleton: object, asIterable: true): IterableIterator<Contract>; | ||
export declare function query(universe: Contract, layout: BlueprintLayout, skeleton: object, asIterable?: false): Contract[]; | ||
export declare const sequence: (universe: Contract, layout: BlueprintLayout, skeleton: object) => Contract[]; |
@@ -15,3 +15,5 @@ "use strict"; | ||
Object.defineProperty(exports, "parseCardinality", { enumerable: true, get: function () { return cardinality_1.parse; } }); | ||
const query = (universe, layout, skeleton, asIterable = false) => new blueprint_1.default(layout, skeleton).reproduce(universe, asIterable); | ||
function query(universe, layout, skeleton, asIterable = false) { | ||
return new blueprint_1.default(layout, skeleton).reproduce(universe, asIterable); | ||
} | ||
exports.query = query; | ||
@@ -18,0 +20,0 @@ const sequence = (universe, layout, skeleton) => new blueprint_1.default(layout, skeleton).sequence(universe); |
{ | ||
"name": "@balena/contrato", | ||
"version": "0.9.0", | ||
"version": "0.9.1-build-improve-query-typing-529407f9f7bb44abb83a17afba139733d49c6218-1", | ||
"description": "The official contract implementation", | ||
@@ -74,4 +74,4 @@ "homepage": "https://github.com/product-os/contrato", | ||
"versionist": { | ||
"publishedAt": "2023-04-03T21:58:18.864Z" | ||
"publishedAt": "2023-04-04T11:58:30.500Z" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
124360
1522