Commit a2f3a48
authored
feat(axe.d.ts): add nodeSerializer typings (#4551)
This API was added in pr #4093, but TS definitions were never added.
For simplicity I'm using SerialDqElement in the API. We could introduce
a generic for the custom serialized type (T extends SerialDqElement),
but it's hard to consistently use it everywhere (AxeReporter,
NodeSerializer.dqElmToSpec).
I also fixed DqElement.mergeSpecs which is needed to implement a custom
node serializer: it exists on the constructor and not on the individual
instances1 parent b422c79 commit a2f3a48
2 files changed
Lines changed: 36 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
345 | 348 | | |
346 | 349 | | |
347 | 350 | | |
| |||
405 | 408 | | |
406 | 409 | | |
407 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
408 | 429 | | |
409 | 430 | | |
410 | 431 | | |
| |||
423 | 444 | | |
424 | 445 | | |
425 | 446 | | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
| 447 | + | |
430 | 448 | | |
431 | 449 | | |
432 | 450 | | |
433 | 451 | | |
434 | 452 | | |
| 453 | + | |
435 | 454 | | |
436 | 455 | | |
437 | 456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
453 | 466 | | |
454 | 467 | | |
455 | 468 | | |
| |||
0 commit comments