Skip to content

Commit

Permalink
fix: patch @biomejs/js-api
Browse files Browse the repository at this point in the history
  • Loading branch information
ianzone committed Feb 10, 2025
1 parent 8379a60 commit 6473d15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/spotty-hounds-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@biomejs/js-api": patch
---

remove wrong openProject() definition, and add jsDoc.
6 changes: 5 additions & 1 deletion packages/@biomejs/js-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ export class Biome {
}
}

openProject(): ProjectKey;
/**
* Open a possible workspace project folder. Returns the key of said project. Use this key when you want to switch to different projects.
*
* @param {string} [path]
*/
openProject(path?: string): ProjectKey {
return this.workspace.openProject({
path: path || "",
Expand Down

0 comments on commit 6473d15

Please sign in to comment.