We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Considering the code:
import pptxgen from "pptxgenjs"; const pptx = new pptxgen(); const slide = pptx.addSlide();
now slide is of type ISlide and e.g. addText is defined as Function :
ISlide
export interface ISlide { <....> addText: Function <....> }
Thought he specific Slide class has a correct definition
Slide
addText(text: string | IText[], options?: ITextOpts): Slide
what I am doing right now is :
const coverSlide = pptx.addSlide() as any as PptxGenJS.Slide;
so any way to get type safety when using slide object?
The text was updated successfully, but these errors were encountered:
Fix for Issue #673
c6988f7
Thanks @gytisgreitai
This is now fixed.
Sorry, something went wrong.
gitbrent
No branches or pull requests
Considering the code:
now slide is of type
ISlide
and e.g. addText is defined as Function :Thought he specific
Slide
class has a correct definitionwhat I am doing right now is :
so any way to get type safety when using slide object?
The text was updated successfully, but these errors were encountered: