Files
docx-js/src/file/paragraph/run/text-run.ts
2019-11-21 01:02:46 +00:00

15 lines
349 B
TypeScript

import { IRunOptions, Run } from "./run";
import { Text } from "./run-components/text";
export class TextRun extends Run {
constructor(options: IRunOptions | string) {
if (typeof options === "string") {
super({});
this.root.push(new Text(options));
return;
}
super(options);
}
}