Skip to content

Commit

Permalink
fix(typescript): interface optional parameters error
Browse files Browse the repository at this point in the history
  • Loading branch information
stoprocent committed May 29, 2024
1 parent 16a0f32 commit cb5eed1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- run: npm run rebuild
- run: npm test
- run: npm run coverage
- run: npx tsc *.d.ts
- uses: codecov/codecov-action@v3
with:
directory: ./coverage/
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export declare function startScanning(serviceUUIDs?: string[], allowDuplicates?:
export declare function startScanningAsync(serviceUUIDs?: string[], allowDuplicates?: boolean): Promise<void>;
export declare function stopScanning(callback?: () => void): void;
export declare function stopScanningAsync(): Promise<void>;
export declare function connect(peripheralUuid: string, options?: object, callback?: (error?: Error, peripheral: Peripheral) => void): void;
export declare function connect(peripheralUuid: string, options?: object, callback?: (error: Error | undefined, peripheral: Peripheral) => void): void;
export declare function connectAsync(peripheralUuid: string, options?: object): Promise<Peripheral>;
export declare function cancelConnect(peripheralUuid: string, options?: object): void;
export declare function reset(): void;
Expand Down

0 comments on commit cb5eed1

Please sign in to comment.