Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 448409d

Browse files
authored
Deprecate URI (#1188)
1 parent f7bd42d commit 448409d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/sourcegraph-extension-api/src/sourcegraph.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,18 @@ declare module 'sourcegraph' {
1717
unsubscribe(): void
1818
}
1919

20+
/**
21+
* @deprecated In the future the API will use the [native `URL` API](https://developer.mozilla.org/en-US/docs/Web/API/URL)
22+
*/
2023
export class URI {
24+
/**
25+
* @deprecated In the future the API will use the [native `URL` API](https://developer.mozilla.org/en-US/docs/Web/API/URL), which does not contain this method.
26+
*/
2127
static parse(value: string): URI
28+
29+
/**
30+
* @deprecated In the future the API will use the [native `URL` API](https://developer.mozilla.org/en-US/docs/Web/API/URL), which does not contain this method.
31+
*/
2232
static file(path: string): URI
2333

2434
constructor(value: string)
@@ -28,7 +38,7 @@ declare module 'sourcegraph' {
2838
/**
2939
* Returns a JSON representation of this Uri.
3040
*
31-
* @return An object.
41+
* @deprecated In the future the API will use the [native `URL` API](https://developer.mozilla.org/en-US/docs/Web/API/URL), which returns a string instead of an object.
3242
*/
3343
toJSON(): any
3444
}

0 commit comments

Comments
 (0)