question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CellDefinition's content type is wrong

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
simonbengtssoncommented, Nov 15, 2019

Fixed now in latest version 3.2.11. Thanks for reporting!

1reaction
simonbengtssoncommented, Nov 15, 2019

Oh, the content? Didn’t see that. Will fix it right away.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found