Skip to content

Commit

Permalink
chore(tsconfig): target es2022
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Sep 23, 2023
1 parent 0ad4307 commit 0284215
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "types",
"resolveJsonModule": true
"resolveJsonModule": true,
"target": "ES2022"
},
"include": ["src/index.js"]
}
30 changes: 14 additions & 16 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default UnRTF;
export class UnRTF {
/** @param {string} [binPath] - Path of UnRTF binary. */
constructor(binPath?: string | undefined);
constructor(binPath?: string);
unrtfPath: string;
/**
* @author Frazer Smith
Expand All @@ -27,20 +27,18 @@ export class UnRTF {
*/
convert(
file: string,
options?:
| {
noPictures?: boolean | undefined;
noRemap?: boolean | undefined;
outputHtml?: boolean | undefined;
outputLatex?: boolean | undefined;
outputPs?: boolean | undefined;
outputRtf?: boolean | undefined;
outputText?: boolean | undefined;
outputVt?: boolean | undefined;
outputWpml?: boolean | undefined;
printVersionInfo?: boolean | undefined;
quiet?: boolean | undefined;
}
| undefined
options?: {
noPictures?: boolean;
noRemap?: boolean;
outputHtml?: boolean;
outputLatex?: boolean;
outputPs?: boolean;
outputRtf?: boolean;
outputText?: boolean;
outputVt?: boolean;
outputWpml?: boolean;
printVersionInfo?: boolean;
quiet?: boolean;
}
): Promise<string>;
}

0 comments on commit 0284215

Please sign in to comment.