Handle interfaces in the generate-externs task