-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve
TypeReference
supports when inside of an Union especia…
…lly when dealing with `TypeParameters` [converter][web] Fix #113
- Loading branch information
1 parent
a413d14
commit cc99bab
Showing
7 changed files
with
73 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class MyType<TResult1> { | ||
a : TResult1 | ||
} | ||
|
||
type T<TResult1> = TResult1 | MyType<TResult1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module rec Glutinum | ||
|
||
open Fable.Core | ||
open Fable.Core.JsInterop | ||
open System | ||
|
||
[<AbstractClass>] | ||
[<Erase>] | ||
type Exports = | ||
[<Import("MyType", "REPLACE_ME_WITH_MODULE_NAME"); EmitConstructor>] | ||
static member MyType<'TResult1> () : MyType<'TResult1> = nativeOnly | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type MyType<'TResult1> = | ||
abstract member a: 'TResult1 with get, set | ||
|
||
type T<'TResult1> = | ||
U2<'TResult1, MyType<'TResult1>> | ||
|
||
(***) | ||
#r "nuget: Fable.Core" | ||
(***) |