Merge pull request #8585 from backstage/rugvip/treeify

backend-common: clarify responsiblity of readTree directory deletion
This commit is contained in:
Patrik Oldsberg
2021-12-22 15:50:51 +01:00
committed by GitHub
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-common': patch
---
Updated the `ReadTreeResponse` documentation to clarify that the caller of `dir()` is responsible for removing the directory after use.
@@ -222,6 +222,8 @@ export type ReadTreeResponse = {
/**
* Extracts the tree response into a directory and returns the path of the
* directory.
*
* **NOTE**: It is the responsibility of the caller to remove the directory after use.
*/
dir(options?: ReadTreeResponseDirOptions): Promise<string>;