From 7d1ef8108d0eb432362a3dbf8229cc48f77a5881 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Tue, 2 Sep 2014 14:25:53 -0700 Subject: [PATCH] Update WinRT typings to fix extend conflict as both 'IWebSocket' and 'IClosable' implemetn a close method with diffrent signatures --- winrt/winrt.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/winrt/winrt.d.ts b/winrt/winrt.d.ts index 350b43153..a6829956e 100644 --- a/winrt/winrt.d.ts +++ b/winrt/winrt.d.ts @@ -7940,6 +7940,8 @@ declare module Windows { control: Windows.Networking.Sockets.MessageWebSocketControl; information: Windows.Networking.Sockets.MessageWebSocketInformation; onmessagereceived: any/* TODO */; + close(): void; + close(code: number, reason: string): void; } export class MessageWebSocketControl implements Windows.Networking.Sockets.IMessageWebSocketControl, Windows.Networking.Sockets.IWebSocketControl { maxMessageSize: number; @@ -7978,6 +7980,8 @@ declare module Windows { control: Windows.Networking.Sockets.StreamWebSocketControl; information: Windows.Networking.Sockets.StreamWebSocketInformation; inputStream: Windows.Storage.Streams.IInputStream; + close(): void; + close(code: number, reason: string): void; } export class StreamWebSocketControl implements Windows.Networking.Sockets.IStreamWebSocketControl, Windows.Networking.Sockets.IWebSocketControl { noDelay: boolean;