glutinum-org / cli

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

Missing `'` when using a type parameter inside of an union #113

Closed MangelMaxime closed 4 months ago

MangelMaxime commented 4 months ago

Issue created from Glutinum Tool

Glutinum version - 0.8.0

TypeScript

type PromiseLike<TResult1> = any

type T<TResult1> = TResult1 | PromiseLike<TResult1>

FSharp

module rec Glutinum

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

type PromiseLike<'TResult1> =
    obj

type T<'TResult1> =
    U2<TResult1, PromiseLike<TResult1>>

Problem description

The GlueAST is missing the type arguments information.

CleanShot 2024-07-16 at 22 12 44

instead of something like

CleanShot 2024-07-16 at 22 12 54