We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E.g. the definition of IWebSocket gets generated as:
IWebSocket
interface IWebSocket extends Windows.Foundation.IClosable { readonly outputStream: Windows.Storage.Streams.IOutputStream; connectAsync(uri: Windows.Foundation.Uri): Windows.Foundation.WinRTPromise<void, void>; setRequestHeader(headerName: string, headerValue: string): void; close(code: number, reason: string): void; addEventListener(type: "closed", listener: Windows.Foundation.TypedEventHandler<Windows.Networking.Sockets.IWebSocket, Windows.Networking.Sockets.WebSocketClosedEventArgs>): void; removeEventListener(type: "closed", listener: Windows.Foundation.TypedEventHandler<Windows.Networking.Sockets.IWebSocket, Windows.Networking.Sockets.WebSocketClosedEventArgs>): void; }
Which produces the following error because IClosable declares the function close(): void
IClosable
close(): void
windows/WinRTTurboModule/Generated Files/types/Windows.Networking.Sockets.d.ts:65:15 - error TS2430: Interface 'IWebSocket' incorrectly extends interface 'IClosable'. Types of property 'close' are incompatible. Type '(code: number, reason: string) => void' is not assignable to type '() => void'. 65 interface IWebSocket extends Windows.Foundation.IClosable { ~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
No branches or pull requests
E.g. the definition of
IWebSocket
gets generated as:Which produces the following error because
IClosable
declares the functionclose(): void
The text was updated successfully, but these errors were encountered: