Skip to content

Commit e3a4993

Browse files
committed
refactor(multiple): Fix MatTableDataSource and Tooltip types
1 parent 997acb3 commit e3a4993

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/material/table/table-data-source.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ const MAX_SAFE_INTEGER = 9007199254740991;
4141
* own `DataSource`.
4242
*/
4343
export class MatTableDataSource<
44-
T extends object | ArrayLike<unknown>,
44+
// TODO: Remove `any` type below in a breaking change:
45+
T extends object | ArrayLike<unknown> | any,
4546
P extends MatPaginator = MatPaginator,
4647
> extends DataSource<T> {
4748
/** Stream that emits when a new data array is set on the data source. */

src/material/tooltip/tooltip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
319319
return this._message;
320320
}
321321

322-
set message(value: unknown) {
322+
set message(value: string | number | null | undefined) {
323323
const oldMessage = this._message;
324324

325325
// If the message is not a string (e.g. number), convert it to a string and trim it.

0 commit comments

Comments
 (0)