blob: 0d480d15add33b5c509021726d5c37517571d8b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// This module is the CJS entry point for the library.
// The Rust addon.
import * as addon from './load.cjs';
// Use this declaration to assign types to the addon's exports,
// which otherwise by default are `any`.
declare module './load.cjs' {
function start(cb: () => void): () => boolean;
}
export function start(cb: () => void): () => boolean {
return addon.start(cb);
}
|