@@ -232,12 +232,22 @@ function handleEvent(child: Node): Event {
232232 * @param child The child node to handle.
233233 */
234234function handleProperty ( child : Node ) : Partial < Property > {
235+ let typeNode : Node | undefined ;
236+ for ( const c of child . children ) {
237+ if ( c . name === "type" ) {
238+ typeNode = c ;
239+ break ;
240+ }
241+ }
242+
235243 return {
236244 name : string ( child . values [ 0 ] ) ,
237245 ...optionalMember ( "exposed" , "string" , child . properties ?. exposed ) ,
238246 ...optionalMember ( "optional" , "boolean" , child . properties ?. optional ) ,
239247 ...optionalMember ( "overrideType" , "string" , child . properties ?. overrideType ) ,
240- ...optionalMember ( "type" , "string" , child . properties ?. type ) ,
248+ ...( typeNode
249+ ? handleTyped ( typeNode )
250+ : optionalMember ( "type" , "string" , child . properties ?. type ) ) ,
241251 ...optionalMember ( "readonly" , "boolean" , child . properties ?. readonly ) ,
242252 ...optionalMember ( "deprecated" , "boolean" , child . properties ?. deprecated ) ,
243253 } ;
0 commit comments