Skip to content

Typescript generation needs to "escape" keywords #116

Description

@dunhor

E.g. the following error exists:

windows/WinRTTurboModule/Generated Files/types/Windows.Devices.Custom.d.ts:55:48 - error TS1138: Parameter declaration expected.

55         public constructor(deviceType: number, function: number, accessMode: Windows.Devices.Custom.IOControlAccessMode, bufferingMethod: Windows.Devices.Custom.IOControlBufferingMethod);
                                                  ~~~~~~~~

Activity

  1. added
    bugSomething isn't working
    typescriptBugs/issues/feature asks for typescript generation
    on Aug 20, 2021
  2. dunhor commented on Aug 20, 2021

    @dunhor
    MemberAuthor

    Helpful list: microsoft/TypeScript#2536

    To be fair, we probably don't do this with C++ (though I'm not entirely sure you can get valid idl that way?)

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