Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add class generic type param in manifest (#3292)
The datepicker and the calendar components use generic type parameter to allow custom implementation of Date, eg. ``` export class SbbDatepickerElement<T = Date> { private _min?: T | null; // and so on } ``` This needs to be taken in account in Angular classes generation, so a new param has been added to the manifest during its generation, eg. ``` { "kind": "javascript-module", "path": "datepicker/datepicker.js", "declarations": [ { "kind": "class", "description": "Combined with a native input, it displays the input's value as a formatted date.", "name": "SbbDatepickerElement", "members": [], "events": [], "attributes": [], "superclass": {}, "classGenerics": "T = Date", <--------------------------------- new property "tagName": "sbb-datepicker", "customElement": true } ], exports: [] ```
- Loading branch information