Skip to content

Add support for TypeScript in the integration tests #4022

Description

@MangelMaxime

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

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions