Skip to content

Commit

Permalink
fix: patch js-api openProject() (#5000)
Browse files Browse the repository at this point in the history
Co-authored-by: Emanuele Stoppa <[email protected]>
  • Loading branch information
ianzone and ematipico authored Feb 10, 2025
1 parent 8379a60 commit 4de5de8
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 4de5de8

Please sign in to comment.