glutinum-org / cli

https://glutinum.net/
59 stars 6 forks source link

Additional type is nested into 2 modules of the type name instead of 1 #79

Closed MangelMaxime closed 7 months ago

MangelMaxime commented 7 months ago

Issue created from Glutinum Tool

Glutinum version - 0.4.0

TypeScript

export interface EventPropTypeInterface<TTarget, TEventKey> {
    eventHandlers: {
        name: string
    };
}

FSharp

module rec Glutinum

open Fable.Core
open Fable.Core.JsInterop
open System

[<AllowNullLiteral>]
[<Interface>]
type EventPropTypeInterface =
    abstract member eventHandlers: EventPropTypeInterface.EventPropTypeInterface.eventHandlers with get, set

module EventPropTypeInterface =

    module EventPropTypeInterface =

        [<Global>]
        [<AllowNullLiteral>]
        type eventHandlers
            [<ParamObject; Emit("$0")>]
            (
                name: string
            ) =

            member val name : string = nativeOnly with get, set

Problem description

We should generate EventPropTypeInterface.eventHandlers instead of EventPropTypeInterface.EventPropTypeInterface.eventHandlers