We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dd6fe90 + 4f9864f commit ce8ffd6Copy full SHA for ce8ffd6
src/index.ts
@@ -24,8 +24,8 @@ declare module globalThis {
24
reader: ReadableStreamDefaultReader<CallbackEvent>
25
}
26
27
-const ports: Record<string, SerialPort|null> = {}
28
-export default async function setup(page: Page) {
+export default async function setup(page: Page): Promise<Board> {
+ const ports: Record<string, SerialPort|null> = {}
29
const arduino = new Board()
30
31
const methods: Record<string, (...args: any[]) => Promise<any>> = {
@@ -166,4 +166,5 @@ export default async function setup(page: Page) {
166
167
})
168
169
+ return arduino;
170
0 commit comments