Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as firestore from './providers/firestore';
import * as pubsub from './providers/pubsub';
import * as storage from './providers/storage';

export interface FeaturesList {
export interface LazyFeatures {
mockConfig: typeof mockConfig;
wrap: typeof wrap;
makeChange: typeof makeChange;
Expand All @@ -20,7 +20,7 @@ export interface FeaturesList {
storage: typeof storage;
}

export const features: FeaturesList = {
export const features: LazyFeatures = {
mockConfig,
wrap,
makeChange,
Expand All @@ -32,3 +32,7 @@ export const features: FeaturesList = {
pubsub,
storage,
};

export interface FeaturesList extends LazyFeatures {
cleanup;
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ export = (firebaseConfig?: AppOptions) => {
features = merge({}, features, {
cleanup: () => test.cleanup,
});
return features;
return features as FeaturesList;
};