uri - export as URI and as default

This commit is contained in:
Johannes Rieken 2018-08-27 15:12:08 +02:00
parent c3ff42d57a
commit ae90f6dea1
2 changed files with 4 additions and 2 deletions

View file

@ -5,7 +5,7 @@
'use strict';
import * as paths from 'vs/base/common/paths';
import URI from 'vs/base/common/uri';
import { URI } from 'vs/base/common/uri';
import { equalsIgnoreCase } from 'vs/base/common/strings';
import { Schemas } from 'vs/base/common/network';
import { isLinux, isWindows } from 'vs/base/common/platform';

View file

@ -82,7 +82,7 @@ const _regexp = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
* / \ / \
* urn:example:animal:ferret:nose
*/
export default class URI implements UriComponents {
export class URI implements UriComponents {
static isUri(thing: any): thing is URI {
if (thing instanceof URI) {
@ -355,6 +355,8 @@ export default class URI implements UriComponents {
}
}
export default URI;
export interface UriComponents {
scheme: string;
authority: string;