build: include bob lib output
This commit is contained in:
1
lib/typescript/package.json
Normal file
1
lib/typescript/package.json
Normal file
@@ -0,0 +1 @@
|
||||
{"type":"module"}
|
||||
7
lib/typescript/react-native-bpl-scale/src/NativeBPLScale.d.ts
vendored
Normal file
7
lib/typescript/react-native-bpl-scale/src/NativeBPLScale.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { TurboModule } from 'react-native';
|
||||
export interface Spec extends TurboModule {
|
||||
hello(name: string): string;
|
||||
}
|
||||
declare const _default: Spec;
|
||||
export default _default;
|
||||
//# sourceMappingURL=NativeBPLScale.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"NativeBPLScale.d.ts","sourceRoot":"","sources":["../../../../react-native-bpl-scale/src/NativeBPLScale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;;AAED,wBAAkE"}
|
||||
2
lib/typescript/react-native-bpl-scale/src/index.d.ts
vendored
Normal file
2
lib/typescript/react-native-bpl-scale/src/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export { default } from './NativeBPLScale';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
lib/typescript/react-native-bpl-scale/src/index.d.ts.map
Normal file
1
lib/typescript/react-native-bpl-scale/src/index.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../react-native-bpl-scale/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
|
||||
10
lib/typescript/src/NativeBplScale.d.ts
vendored
Normal file
10
lib/typescript/src/NativeBplScale.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
export interface NativeBplScale {
|
||||
startDiscovery(): void;
|
||||
cancelDiscovery(): void;
|
||||
getBondedDevices(): Promise<any[]>;
|
||||
parseBluetoothScaleData(data: string): any;
|
||||
scanDevices(scanDurationMs: number): Promise<any[]>;
|
||||
}
|
||||
declare const _default: NativeBplScale;
|
||||
export default _default;
|
||||
//# sourceMappingURL=NativeBplScale.d.ts.map
|
||||
1
lib/typescript/src/NativeBplScale.d.ts.map
Normal file
1
lib/typescript/src/NativeBplScale.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"NativeBplScale.d.ts","sourceRoot":"","sources":["../../../src/NativeBplScale.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,cAAc,IAAI,IAAI,CAAC;IACvB,eAAe,IAAI,IAAI,CAAC;IACxB,gBAAgB,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACnC,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;IAG3C,WAAW,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;CACrD;wBAI0B,cAAc;AAAzC,wBAA0C"}
|
||||
17
lib/typescript/src/index.d.ts
vendored
Normal file
17
lib/typescript/src/index.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
export type BLEDevice = {
|
||||
name: string;
|
||||
address: string;
|
||||
weight: number;
|
||||
impedance: number;
|
||||
};
|
||||
/**
|
||||
* Scan BLE devices and return weight and impedance.
|
||||
* @param scanDurationMs Duration of scan in milliseconds
|
||||
* @returns Promise resolving to a list of BLE devices with weight & impedance
|
||||
*/
|
||||
export declare const scanDevices: (scanDurationMs: number) => Promise<BLEDevice[]>;
|
||||
declare const _default: {
|
||||
scanDevices: (scanDurationMs: number) => Promise<BLEDevice[]>;
|
||||
};
|
||||
export default _default;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
lib/typescript/src/index.d.ts.map
Normal file
1
lib/typescript/src/index.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAQF;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAU,gBAAgB,MAAM,KAAG,OAAO,CAAC,SAAS,EAAE,CAY7E,CAAC;;kCAZgD,MAAM,KAAG,OAAO,CAAC,SAAS,EAAE,CAAC;;AAc/E,wBAEE"}
|
||||
Reference in New Issue
Block a user