Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

common: export getFeature

Abdullah Atta86b650712ef5
diff --git a/packages/common/src/utils/is-feature-available.ts b/packages/common/src/utils/is-feature-available.ts
index 8de99f646..3d47b4672 100644
--- a/packages/common/src/utils/is-feature-available.ts
+++ b/packages/common/src/utils/is-feature-available.ts
@@ -441,7 +441,7 @@ async function availableOn(id: FeatureId, value?: number) {
}
}
-function getFeature<TId extends FeatureId>(id: TId): Feature<TId> {
+export function getFeature<TId extends FeatureId>(id: TId): Feature<TId> {
return features[id] as unknown as Feature<TId>;
}