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

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