Skip to content
This repository was archived by the owner on Nov 21, 2022. It is now read-only.

Commit 5f9a0c0

Browse files
committed
Fix type errors
1 parent 91c0cae commit 5f9a0c0

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devbookhq/sdk",
3-
"version": "2.5.6",
3+
"version": "2.5.7",
44
"description": "SDK for managing Devbook sessions from JavaScript/TypeScript",
55
"homepage": "https://usedevbook.com",
66
"license": "SEE LICENSE IN LICENSE",

src/session/index.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import normalizePath from 'normalize-path'
2+
23
import { id } from '../utils/id'
34
import { createDeferredPromise, formatSettledErrors } from '../utils/promise'
45
import {
@@ -10,11 +11,7 @@ import {
1011
ScanOpenedPortsHandler,
1112
codeSnippetService,
1213
} from './codeSnippet'
13-
import {
14-
FileInfo,
15-
FilesystemManager,
16-
filesystemService,
17-
} from './filesystem'
14+
import { FileInfo, FilesystemManager, filesystemService } from './filesystem'
1815
import FilesystemWatcher from './filesystemWatcher'
1916
import { ProcessManager, processService } from './process'
2017
import SessionConnection, { SessionConnectionOpts } from './sessionConnection'
@@ -100,7 +97,7 @@ class Session extends SessionConnection {
10097
writeFile: async (path, content) => {
10198
await this.call(filesystemService, 'writeFile', [path, content])
10299
},
103-
watch: async (path: string) => {
100+
watch: (path: string) => {
104101
const npath = normalizePath(path)
105102
return new FilesystemWatcher(this, npath)
106103
},

0 commit comments

Comments
 (0)