Skip to content

Commit

Permalink
fix re-exports
Browse files Browse the repository at this point in the history
  • Loading branch information
matey97 committed May 5, 2022
1 parent 4a201f9 commit f54e4d9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions demo/app/home/device-list/device-list-page.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Frame, ItemEventData, NavigatedData, Page } from "@nativescript/core";
import { DeviceListViewModel } from "~/home/device-list/device-list-view-model";
import { Node } from "nativescript-wearos-sensors/internal/node";
import { fromString } from "nativescript-wearos-sensors/internal/sensors/sensor-type";
import { Node } from "nativescript-wearos-sensors/node";
import { fromString } from "nativescript-wearos-sensors/sensors";

export function onNavigatingTo(args: NavigatedData) {
const page = <Page>args.object;
Expand Down
10 changes: 8 additions & 2 deletions src/collection/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
export { CollectorManager, PrepareError } from "../internal/collection/collector-manager";
export { CollectionConfiguration, SensorDelay } from "../internal/collection/collection-configuration";
import { CollectorManager as CM, PrepareError as PE } from "../internal/collection/collector-manager";
export type CollectorManager = CM;
export type PrepareError = PE;

import { CollectionConfiguration as CC } from "../internal/collection/collection-configuration";
export type CollectionConfiguration = CC;

export { SensorDelay } from "../internal/collection/collection-configuration";
5 changes: 4 additions & 1 deletion src/node/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export { Node } from "../internal/node";
export { NodeDiscoverer, NodeDiscovered } from "../internal/node/discoverer/node-discoverer";
import { NodeDiscoverer as NDR, NodeDiscovered as NDD } from "../internal/node/discoverer/node-discoverer";
export type NodeDiscoverer = NDR;
export type NodeDiscovered = NDD;

export { getNodeDiscoverer } from "../internal/node/discoverer";
2 changes: 1 addition & 1 deletion src/sensors/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { getSensorCollector } from "../internal/sensors";
export { SensorType } from "../internal/sensors/sensor-type";
export { SensorType, fromString } from "../internal/sensors/sensor-type";

0 comments on commit f54e4d9

Please sign in to comment.