Skip to content

IVector<T>, etc. function arguments don't allow arrays as arguments in generated TypeScript type definitions #177

Description

@dunhor

E.g. the following declaration:

static Windows.Foundation.Collections.IVector<Boolean> ReturnSameBoolVector(Windows.Foundation.Collections.IVector<Boolean> vector);

gets projected as:

public static returnSameBoolVector(vector: Windows.Foundation.Collections.IVector<boolean>): Windows.Foundation.Collections.IVector<boolean>;

This should presumably be:

public static returnSameBoolVector(vector: Windows.Foundation.Collections.IVector<boolean> | boolean[]): Windows.Foundation.Collections.IVector<boolean>;

because we allow arrays as arguments to functions that expect IVector<T>/IVectorView<T>/IEnumerable<T>

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