Mark _serviceBrand properties using declare (#99312)

_serviceBrand is only used for typing and should not result in emit

Also adds readonly
This commit is contained in:
Matt Bierner
2020-06-05 11:04:15 -07:00
committed by GitHub
parent 96ce46b217
commit cadabab73f
338 changed files with 459 additions and 459 deletions

View File

@@ -12,7 +12,7 @@ import { Schemas } from 'vs/base/common/network';
class ExtensionResourceLoaderService implements IExtensionResourceLoaderService {
_serviceBrand: undefined;
declare readonly _serviceBrand: undefined;
constructor(
@IFileService private readonly _fileService: IFileService

View File

@@ -12,7 +12,7 @@ export const IExtensionResourceLoaderService = createDecorator<IExtensionResourc
* A service useful for reading resources from within extensions.
*/
export interface IExtensionResourceLoaderService {
_serviceBrand: undefined;
readonly _serviceBrand: undefined;
/**
* Read a certain resource within an extension.

View File

@@ -10,7 +10,7 @@ import { IExtensionResourceLoaderService } from 'vs/workbench/services/extension
export class ExtensionResourceLoaderService implements IExtensionResourceLoaderService {
_serviceBrand: undefined;
declare readonly _serviceBrand: undefined;
constructor(
@IFileService private readonly _fileService: IFileService