@@ -86,7 +86,7 @@ export const converters: { [string]: ?Function } = {
8686 return (
8787 < span >
8888 < components . TypeMeta > { convert( type . value ) } < / components . TypeMeta >
89- < AddBrackets openBracket = "<" closeBracket = ">" >
89+ < AddBrackets openBracket = "<" closeBracket = ">" Expander = { components . Expander } >
9090 { type . typeParams &&
9191 type . typeParams . params . map ( ( param , index , array ) => (
9292 < span key = { index } >
@@ -120,7 +120,7 @@ export const converters: { [string]: ?Function } = {
120120
121121 return (
122122 < span >
123- < AddBrackets BracketStyler = { components . TypeMeta } openBracket = "{" closeBracket = "}" >
123+ < AddBrackets openBracket = "{" closeBracket = "}" Expander = { components . Expander } >
124124 < components . Indent >
125125 { type . members
126126 . filter ( p => p )
@@ -147,7 +147,7 @@ export const converters: { [string]: ?Function } = {
147147 return (
148148 < span >
149149 < components . TypeMeta > Array</ components . TypeMeta >
150- < AddBrackets BracketStyler = { components . TypeMeta } openBracket = "<" closeBracket = ">" >
150+ < AddBrackets openBracket = "<" closeBracket = ">" Expander = { components . Expander } >
151151 < components . Indent > { prettyConvert ( type . type , components , depth ) } </ components . Indent >
152152 </ AddBrackets >
153153 </ span >
@@ -168,7 +168,7 @@ export const converters: { [string]: ?Function } = {
168168 union : ( type : K . Union , components : Components , depth : number ) = > (
169169 < span >
170170 < components . TypeMeta > One of </ components . TypeMeta >
171- < AddBrackets BracketStyler = { components . TypeMeta } openBracket = "<" closeBracket = ">" >
171+ < AddBrackets openBracket = "<" closeBracket = ">" Expander = { components . Expander } >
172172 < components . Indent >
173173 { type . types . map ( ( t , index , array ) => (
174174 < div key = { index } >
@@ -198,7 +198,7 @@ export const converters: { [string]: ?Function } = {
198198 } else if ( simpleParameters || type . parameters . length < 2 ) {
199199 return (
200200 < span >
201- < AddBrackets BracketStyler = { components . FunctionType } >
201+ < AddBrackets Expander = { components . Expander } >
202202 { type . parameters . map ( ( param , index , array ) => [
203203 prettyConvert ( param , components , depth ) ,
204204 array . length - 1 === index ? '' : ', '
@@ -212,7 +212,7 @@ export const converters: { [string]: ?Function } = {
212212 return (
213213 < span >
214214 < components . TypeMeta > function </ components . TypeMeta >
215- < AddBrackets BracketStyler = { components . FunctionType } >
215+ < AddBrackets Expander = { components . Expander } >
216216 < components . Indent >
217217 { type . parameters . map ( ( param , index , array ) => (
218218 < div key = { convert ( param . value ) } >
@@ -228,9 +228,9 @@ export const converters: { [string]: ?Function } = {
228228 ) ;
229229 }
230230 } ,
231- param : ( type : K . Param , components , depth ) = > {
232- return < span key = { convert ( type . value ) } > { prettyConvert ( type . value , components , depth ) } </ span > ;
233- } ,
231+ param : ( type : K . Param , components , depth ) = > (
232+ < span key = { convert ( type . value ) } > { prettyConvert ( type . value , components , depth ) } </ span >
233+ ) ,
234234 typeof : ( type : K . Typeof , components , depth ) = > prettyConvert ( type . type , components , depth )
235235} ;
236236
0 commit comments