Skip to content

Commit 1a4615e

Browse files
committed
chore: fix interface re-exports compilation warnings
1 parent 5c99187 commit 1a4615e

File tree

4 files changed

+9
-22
lines changed

4 files changed

+9
-22
lines changed

src/activity-recognition/index.ts

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1 @@
1-
export {
2-
getActivityRecognizer,
3-
ActivityRecognizer,
4-
StartOptions,
5-
RecognitionCallback,
6-
Resolution,
7-
ActivityChange,
8-
HumanActivity,
9-
Transition,
10-
} from "../internal/activity-recognition";
1+
export * from "../internal/activity-recognition";

src/geolocation/index.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
export {
2-
getGeolocationProvider,
3-
GeolocationProvider,
4-
Geolocation,
5-
GeolocationLike,
6-
AcquireOptions,
7-
StreamOptions,
8-
} from "../internal/geolocation";
1+
export * from "../internal/geolocation";

src/internal/activity-recognition/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ export {
2929
RecognitionCallback,
3030
} from "./recognizers";
3131
export { HumanActivity } from "./human-activity";
32-
export { ActivityChange, Transition } from "./activity-change";
32+
import { ActivityChange as AC, Transition } from "./activity-change";
33+
export type ActivityChange = AC;
34+
export { Transition } from "./activity-change";

src/internal/geolocation/index.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { Accuracy, GeolocationAdapter, Options } from "./adapter";
2-
import { Geolocation } from "./geolocation";
2+
import { Geolocation, GeolocationLike as GL } from "./geolocation";
33
import { Observable } from "rxjs";
44

5+
export { Geolocation };
6+
export type GeolocationLike = GL;
7+
58
const SECONDS = 1e3;
69
const MINUTES = 60 * SECONDS;
710
const defaultAccuracy = Accuracy.high;
@@ -55,8 +58,6 @@ export interface StreamOptions extends AcquireOptions {
5558
saveBattery?: boolean;
5659
}
5760

58-
export { Geolocation, GeolocationLike } from "./geolocation";
59-
6061
function geolocationOptionsToPluginOptions(
6162
options: AcquireOptions | StreamOptions
6263
): Options {

0 commit comments

Comments
 (0)