Skip to content

Classes that implement WinRTPromiseBase do not declare the "extra" promise-like functions #113

Description

@dunhor

E.g. this results in the error:

windows/WinRTTurboModule/Generated Files/types/Windows.Storage.Streams.d.ts:46:11 - error TS2420: Class 'DataReaderLoadOperation' incorrectly implements interface 'WinRTPromiseBase<number, void> & Promise<number>'.
  Type 'DataReaderLoadOperation' is not assignable to type 'WinRTPromiseBase<number, void>'.
    Type 'DataReaderLoadOperation' is missing the following properties from type 'WinRTPromiseBase<number, void>': then, done, operation

46     class DataReaderLoadOperation implements Windows.Foundation.WinRTPromise<number, void>, Windows.Foundation.IAsyncInfo {
             ~~~~~~~~~~~~~~~~~~~~~~~

Activity

  1. added
    bugSomething isn't working
    typescriptBugs/issues/feature asks for typescript generation
    on Aug 20, 2021
  2. changed the title [-]Classes that implement WinRTPromise do not declare the "extra" promise-like functions[/-] [+]Classes that implement WinRTPromiseBase do not declare the "extra" promise-like functions[/+] on Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtypescriptBugs/issues/feature asks for typescript generation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions