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

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mlejva committed Oct 19, 2022
1 parent 91c0cae commit 5f9a0c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devbookhq/sdk",
"version": "2.5.6",
"version": "2.5.7",
"description": "SDK for managing Devbook sessions from JavaScript/TypeScript",
"homepage": "https://usedevbook.com",
"license": "SEE LICENSE IN LICENSE",
Expand Down
9 changes: 3 additions & 6 deletions src/session/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import normalizePath from 'normalize-path'

import { id } from '../utils/id'
import { createDeferredPromise, formatSettledErrors } from '../utils/promise'
import {
Expand All @@ -10,11 +11,7 @@ import {
ScanOpenedPortsHandler,
codeSnippetService,
} from './codeSnippet'
import {
FileInfo,
FilesystemManager,
filesystemService,
} from './filesystem'
import { FileInfo, FilesystemManager, filesystemService } from './filesystem'
import FilesystemWatcher from './filesystemWatcher'
import { ProcessManager, processService } from './process'
import SessionConnection, { SessionConnectionOpts } from './sessionConnection'
Expand Down Expand Up @@ -100,7 +97,7 @@ class Session extends SessionConnection {
writeFile: async (path, content) => {
await this.call(filesystemService, 'writeFile', [path, content])
},
watch: async (path: string) => {
watch: (path: string) => {
const npath = normalizePath(path)
return new FilesystemWatcher(this, npath)
},
Expand Down

0 comments on commit 5f9a0c0

Please sign in to comment.