From 4a4856a29e973dc8076c2b02eb738141b0383af9 Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Mon, 28 Feb 2022 17:19:01 +0530 Subject: [PATCH 1/3] export module --- src/lib.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.ts b/src/lib.ts index 89cd7706..ca75f6c9 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -34,3 +34,7 @@ export {TemplateView} from "./platform/web/ui/general/TemplateView"; export {ViewModel} from "./domain/ViewModel"; export {LoadingView} from "./platform/web/ui/general/LoadingView.js"; export {AvatarView} from "./platform/web/ui/AvatarView.js"; +export {RoomType} from "./matrix/room/common"; +export {EventEmitter} from "./utils/EventEmitter"; +export {Disposables} from "./utils/Disposables"; +export * from "./observable/"; From 4c50dbf7ec5d204183a58c4a2d95af9a46dff27c Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 1 Mar 2022 15:41:44 +0100 Subject: [PATCH 2/3] make SDK exports explicit --- src/lib.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib.ts b/src/lib.ts index ca75f6c9..e846a378 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -37,4 +37,12 @@ export {AvatarView} from "./platform/web/ui/AvatarView.js"; export {RoomType} from "./matrix/room/common"; export {EventEmitter} from "./utils/EventEmitter"; export {Disposables} from "./utils/Disposables"; -export * from "./observable/"; +// these should eventually be moved to another library +export { + ObservableArray, + SortedArray, + MappedList, + AsyncMappedList, + ConcatList, + ObservableMap +} from "./observable/index"; From ee8e45926f89d7cf8516a840fa392680d2d74dda Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 1 Mar 2022 15:42:04 +0100 Subject: [PATCH 3/3] also export observable value classes --- src/lib.ts | 6 ++++++ src/observable/ObservableValue.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib.ts b/src/lib.ts index e846a378..c0b05032 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -46,3 +46,9 @@ export { ConcatList, ObservableMap } from "./observable/index"; +export { + BaseObservableValue, + IWaitHandle, + ObservableValue, + RetainedObservableValue +} from "./observable/ObservableValue"; diff --git a/src/observable/ObservableValue.ts b/src/observable/ObservableValue.ts index ad0a226d..65406700 100644 --- a/src/observable/ObservableValue.ts +++ b/src/observable/ObservableValue.ts @@ -41,7 +41,7 @@ export abstract class BaseObservableValue extends BaseObservable<(value: T) = } } -interface IWaitHandle { +export interface IWaitHandle { promise: Promise; dispose(): void; }