mirror of
https://github.com/Microsoft/vscode
synced 2024-10-13 14:57:14 +00:00
object literal type to the interface type
more readable & predictable
This commit is contained in:
parent
816a315176
commit
a2417451fc
|
@ -125,7 +125,7 @@ function storeServiceDependency(id: Function, target: Function, index: number, o
|
|||
/**
|
||||
* A *only* valid way to create a {{ServiceIdentifier}}.
|
||||
*/
|
||||
export function createDecorator<T>(serviceId: string): { (...args: any[]): void; type: T; } {
|
||||
export function createDecorator<T>(serviceId: string): ServiceIdentifier<T> {
|
||||
|
||||
if (_util.serviceIds.has(serviceId)) {
|
||||
return _util.serviceIds.get(serviceId)!;
|
||||
|
|
Loading…
Reference in a new issue