Skip to content

Commit

Permalink
plugin: add Uri.from declaration
Browse files Browse the repository at this point in the history
The commit adds the missing declaration for `Uri.from` in our
`theia.d.ts` file (helps with the compatibility report). The static
method is already supported but now should officially be marked as such
in our report.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto committed Mar 22, 2022
1 parent 2ba1574 commit 6d67d66
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/plugin/src/theia.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,15 @@ export module '@theia/plugin' {
*/
static parse(value: string): Uri;

/**
* Create an URI from its component parts
*
* @see {@link Uri.toString}
* @param components The component parts of an Uri.
* @return A new Uri instance.
*/
static from(components: { readonly scheme: string; readonly authority?: string; readonly path?: string; readonly query?: string; readonly fragment?: string }): Uri;

/**
* Use the `file` and `parse` factory functions to create new `Uri` objects.
*/
Expand Down

0 comments on commit 6d67d66

Please sign in to comment.