CellDefinition's content type is wrong
See original GitHub issueI’m using jsPDF in my project and I’m creating a CellDefinition object like below
const TableHeading: CellDefinition[] = [
{
content: "Title One",
colSpan: 2
},
{
content: "Title Two",
colSpan: 2
}
];
I’m getting a typescript error because Type 'string' is not assignable to type 'Styles | undefined'.ts(2322)
It looks like this is the issue:
interface CellDefinition {
rowSpan?: number,
colSpan?: number,
styles?: Styles,
content?: Styles,
}
I imagine that content shouldn’t be of type Styles
. I’ll be happy to make a PR to update this if you’re happy to confirm the type it should be.
Thanks for making this package. It’s exactly what I need for my project!
-A
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
SSRS file error message: The number of defined parameters ...
To correct the problem RDL file... I opened it in a text editor; updated the <ReportParametersLayout><CellDefinitions> node to include a ...
Read more >[Table] Mat cell definitions do not ensure correct typing #16273
ERROR in src\app\table-basic\table-basic-example.html(18,21): : Property 'non_existing_field' does not exist on type 'PeriodicElement'.
Read more >Error while deploying SSRS report: panel layout for...
I am having an error while deploying a D365F&O SSRS report in my Visual ... But in the XML of the report a...
Read more >SSRS 2019 RDL Internal/Hidden Parameter Shows as blank
Issue: If I deploy as 2008-2014 the Internal/Hidden parameters hide properly. If I deploy with 2016 or Later, the Internal/Hidden parameters ...
Read more >row (Row) - c-rex
The element expresses information about an entire row of a worksheet, and contains all cell definitions for a particular row in the worksheet....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed now in latest version 3.2.11. Thanks for reporting!
Oh, the content? Didn’t see that. Will fix it right away.