Skip to content
New issue

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

Support anonymous intersection types #344

Open
et1975 opened this issue Jun 15, 2020 · 0 comments
Open

Support anonymous intersection types #344

et1975 opened this issue Jun 15, 2020 · 0 comments

Comments

@et1975
Copy link
Member

et1975 commented Jun 15, 2020

The following declaration:

declare type ConfigurationStoresRegenerateKeyResponse = ApiKey & {
    _response: msRest.HttpResponse & {
        bodyAsText: string;
        parsedBody: ApiKey;
    };
};

will produce this F# interface:

type [<AllowNullLiteral>] ConfigurationStoresRegenerateKeyResponse =
    interface end

Azure APIs are all based on msRest and follow the same pattern, would be nice if ts2fable could handle this better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant