You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a function and pass Header Variant as well as Table Variant as parameters:
import {TableProps, HeaderProps} from "@cloudscape-design/components";
function createTable(
headerVariant: HeaderProps.Variant,
tableVariant: TableProps.Variant,
...
Using TableProps.Variant works fine, HeaderProps.Variant results in a type error.
The reason is that table.interfaces.d.ts exports the namespace TableProps, while header/interfaces.d.ts only declares the namespace HeaderProps and doesn't export it.
Browser
No response
Package version
3.0.39
React version
No response
Description
I want to create a function and pass Header Variant as well as Table Variant as parameters:
Using TableProps.Variant works fine, HeaderProps.Variant results in a type error.
The reason is that table.interfaces.d.ts exports the namespace TableProps, while header/interfaces.d.ts only declares the namespace HeaderProps and doesn't export it.
Source code
No response
Reproduction
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: