glutinum-org / cli

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

Missing generics on `ThisType` #139

Closed MangelMaxime closed 1 month ago

MangelMaxime commented 1 month ago

Issue created from Glutinum Tool

Glutinum version - 0.11.0-preview

TypeScript

declare class Pool<T> {
    instance() : this
}

FSharp

module rec Glutinum

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

[<AbstractClass>]
[<Erase>]
type Exports =
    [<Import("Pool", "REPLACE_ME_WITH_MODULE_NAME"); EmitConstructor>]
    static member Pool<'T> () : Pool<'T> = nativeOnly

[<AllowNullLiteral>]
[<Interface>]
type Pool<'T> =
    abstract member instance: unit -> Pool

Problem description

Should generates:

module rec Glutinum

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

[<AbstractClass>]
[<Erase>]
type Exports =
    [<Import("Pool", "REPLACE_ME_WITH_MODULE_NAME"); EmitConstructor>]
    static member Pool<'T> () : Pool<'T> = nativeOnly

[<AllowNullLiteral>]
[<Interface>]
type Pool<'T> =
    abstract member instance: unit -> Pool<'T>