Skip to content

Commit

Permalink
fix(win): Try fixing missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed Apr 20, 2021
1 parent 6b986c0 commit 24eeb95
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 32 deletions.
5 changes: 5 additions & 0 deletions lib/bindings/win/bindings.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/// <reference types="node" />
import EventEmitter from 'events';
declare global {
const Windows: any;
}
export interface Radio extends EventEmitter {
kind: string;
name: string;
Expand All @@ -14,6 +17,8 @@ export declare class NobleBindings extends EventEmitter {
private _advertisementWatcher;
private _filterAdvertisementServiceUuids;
private _allowAdvertisementDuplicates;
private static isInit;
private static init;
static getAdapterList(): Promise<Radio[]>;
constructor(radio: Radio);
init(): void;
Expand Down
2 changes: 1 addition & 1 deletion lib/bindings/win/bindings.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 18 additions & 9 deletions lib/bindings/win/bindings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/bindings/win/bindings.js.map

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions lib/bindings/win/rt-utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/// <reference types="node" />
declare global {
const Windows: any;
}
export declare function using(nsPackage: any, ns: string): void;
export declare function using(packageName: string, ns: string): void;
export declare function promisify(fn: () => void, o?: unknown): (...args: unknown[]) => Promise<unknown>;
export declare function toArray<T = unknown>(o: {
length: number;
Expand Down
2 changes: 1 addition & 1 deletion lib/bindings/win/rt-utils.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion lib/bindings/win/rt-utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 24eeb95

Please sign in to comment.