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

Add support for TypeScript in the integration tests #4022

Open
MangelMaxime opened this issue Jan 26, 2025 · 0 comments
Open

Add support for TypeScript in the integration tests #4022

MangelMaxime opened this issue Jan 26, 2025 · 0 comments

Comments

@MangelMaxime
Copy link
Member

When working on #4007 , I wanted to add an integration test to cover comments generation but because right the Integration runs for JavaScript we can't test the TypeScript output.

Code I wanted to test:

module ParamObject

open Fable.Core

/// This is a user, a very strange individual which will find each and every edge case existing.
[<AllowNullLiteral>]
[<Global>]
type User [<ParamObjectAttribute; Emit("$0")>] (id: int, ?name: string, ?age: int) =
    /// Id used for id stuff
    member val id = id with get, set
    /// name used for naming conventions
    member val name: string option = jsNative with get, set
    /// age because you never tell age
    member val age: int option = jsNative with get, set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant