Skip to content

Commit e7ae90d

Browse files
authored
Merge pull request #86 from ncave/fable
Removed duplicate interface
2 parents 11af756 + 6f18f43 commit e7ae90d

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

src/FSharp.Data.Adaptive/FableHelpers.fs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -101,27 +101,9 @@ module OptimizedClosures =
101101

102102
namespace System.Runtime.CompilerServices
103103

104-
105-
[<AutoOpen>]
106-
module private WeakTableHelpers =
107-
open Fable.Core
108-
open Fable.Core.JsInterop
109-
110-
type [<AllowNullLiteral>] WeakMap<'K, 'V> =
111-
abstract clear: unit -> unit
112-
abstract delete: key: 'K -> bool
113-
abstract get: key: 'K -> 'V
114-
abstract has: key: 'K -> bool
115-
abstract set: key: 'K * ?value: 'V -> WeakMap<'K, 'V>
116-
117-
and [<AllowNullLiteral>] WeakMapConstructor =
118-
[<Emit("new $0($1...)")>] abstract Create: ?iterable: seq<'K * 'V> -> WeakMap<'K, 'V>
119-
120-
let [<Global>] WeakMap: WeakMapConstructor = jsNative
121-
122104
type ConditionalWeakTable<'K, 'V when 'K : not struct and 'V : not struct>() =
123105

124-
let m = WeakMap.Create<'K, 'V> []
106+
let m = Fable.Core.JS.WeakMap.Create<'K, 'V> []
125107

126108
member x.TryGetValue(key : 'K) =
127109
if m.has key then (true, m.get key)

0 commit comments

Comments
 (0)