File tree 3 files changed +8
-10
lines changed
3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,6 @@ module InputJson =
160
160
| SignatureOverload
161
161
| TypeDef
162
162
| Extends
163
- | TypedInterface
164
163
override x.ToString () =
165
164
match x with
166
165
| Property _ -> " property"
@@ -173,7 +172,6 @@ module InputJson =
173
172
| SignatureOverload _ -> " signatureoverload"
174
173
| TypeDef _ -> " typedef"
175
174
| Extends _ -> " extends"
176
- | TypedInterface _ -> " typedinterface"
177
175
178
176
let getItemByName ( allItems : InputJsonType.Root []) ( itemName : string ) ( kind : ItemKind ) otherFilter =
179
177
let filter ( item : InputJsonType.Root ) =
@@ -782,8 +780,8 @@ module Emit =
782
780
m.Params.Length = 1 &&
783
781
( DomTypeToTsType m.Params.[ 0 ]. Type) = expectedParamType
784
782
let processInterfaceType iName =
785
- match getOverriddenItems ItemKind.TypedInterface Flavor.All |> Array.tryFind ( matchInterface iName) with
786
- | Some it -> iName + " <" + ( it.Parameters |> String.concat " , " ) + " >"
783
+ match getOverriddenItems ItemKind.Interface Flavor.All |> Array.tryFind ( matchInterface iName) with
784
+ | Some it -> iName + " <" + ( it.TypeParameters |> String.concat " , " ) + " >"
787
785
| _ -> iName
788
786
789
787
/// Emit overloads for the createElement method
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
- "kind" : " typedinterface " ,
3
+ "kind" : " interface " ,
4
4
"interface" : " CustomEventInit" ,
5
- "parameters " : [
5
+ "typeParameters " : [
6
6
" T = any"
7
7
]
8
8
},
13
13
"type" : " T"
14
14
},
15
15
{
16
- "kind" : " typedinterface " ,
16
+ "kind" : " interface " ,
17
17
"interface" : " CustomEvent" ,
18
- "parameters " : [
18
+ "typeParameters " : [
19
19
" T = any"
20
20
]
21
21
},
Original file line number Diff line number Diff line change 338
338
"interface" : " Document"
339
339
},
340
340
{
341
- "kind" : " typedinterface " ,
341
+ "kind" : " interface " ,
342
342
"interface" : " CustomEventInit" ,
343
- "parameters " : [
343
+ "typeParameters " : [
344
344
" T = any"
345
345
]
346
346
},
You can’t perform that action at this time.
0 commit comments