Skip to content

Commit 6bb9825

Browse files
committed
More types fix and getHDSModel() added
1 parent 01c2090 commit 6bb9825

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hds-lib",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "Health Data Safe - Library",
55
"main": "src/index.js",
66
"scripts": {

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ module.exports = {
1414
HDService,
1515
HDSModel,
1616
get model () {
17+
console.warn('HDSLib.model is deprecated use getHDSModel() instead');
1718
return HDSModelInitAndSingleton.getModel();
1819
},
20+
getHDSModel: HDSModelInitAndSingleton.getModel,
1921
initHDSModel: HDSModelInitAndSingleton.initHDSModel,
2022
appTemplates,
2123
localizeText,

types/HDSService.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import type { serviceCustomizations } from "pryv";
22

33
export = HDSService;
44
declare class HDSService {
5-
constructor(serviceInfoUrl: string, serviceCustomizations: serviceCustomizations);
5+
constructor(serviceInfoUrl?: string, serviceCustomizations?: serviceCustomizations);
66
}

types/toolkit/StreamsAutoCreate.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ declare class StreamsAutoCreate {
1616
* @param {Connection} connection
1717
*/
1818
private constructor();
19-
connection: pryv.Connection;
2019
knownStreams: {};
2120
/**
2221
* @param {Array<String|HDSItemDef>|Set<String|HDSItemDef>} keysOrDefs - Array or Set of itemDefs or itemKeys

0 commit comments

Comments
 (0)