Skip to content

Commit 97ab802

Browse files
authored
Ensure cleanup is in type definition of module export. (#14)
1 parent c1a254c commit 97ab802

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/features.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as firestore from './providers/firestore';
77
import * as pubsub from './providers/pubsub';
88
import * as storage from './providers/storage';
99

10-
export interface FeaturesList {
10+
export interface LazyFeatures {
1111
mockConfig: typeof mockConfig;
1212
wrap: typeof wrap;
1313
makeChange: typeof makeChange;
@@ -20,7 +20,7 @@ export interface FeaturesList {
2020
storage: typeof storage;
2121
}
2222

23-
export const features: FeaturesList = {
23+
export const features: LazyFeatures = {
2424
mockConfig,
2525
wrap,
2626
makeChange,
@@ -32,3 +32,7 @@ export const features: FeaturesList = {
3232
pubsub,
3333
storage,
3434
};
35+
36+
export interface FeaturesList extends LazyFeatures {
37+
cleanup;
38+
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ export = (firebaseConfig?: AppOptions) => {
3535
features = merge({}, features, {
3636
cleanup: () => test.cleanup,
3737
});
38-
return features;
38+
return features as FeaturesList;
3939
};

0 commit comments

Comments
 (0)