Skip to content

Commit

Permalink
chore(tsconfig): use es2022 lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Oct 8, 2023
1 parent 99b59d7 commit 504bc84
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
17 changes: 16 additions & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

* [UnRTF](#UnRTF)
* [new UnRTF([binPath])](#new_UnRTF_new)
* [.unrtfPath](#UnRTF+unrtfPath) : <code>string</code> \| <code>undefined</code>
* [.unrtfVersion](#UnRTF+unrtfVersion) : <code>string</code> \| <code>undefined</code>
* [.unrtfAcceptedOptions](#UnRTF+unrtfAcceptedOptions) : <code>object</code>
* [.convert(file, [options])](#UnRTF+convert) ⇒ <code>Promise.&lt;string&gt;</code>

<a name="new_UnRTF_new"></a>
Expand All @@ -13,8 +16,20 @@

| Param | Type | Description |
| --- | --- | --- |
| [binPath] | <code>string</code> | Path of UnRTF binary. |
| [binPath] | <code>string</code> | Path of UnRTF binary. If not provided, the constructor will attempt to find the binary in the PATH environment variable. For `win32`, a binary is bundled with the package and will be used if a local installation is not found. |

<a name="UnRTF+unrtfPath"></a>

### unRTF.unrtfPath : <code>string</code> \| <code>undefined</code>
**Kind**: instance property of [<code>UnRTF</code>](#UnRTF)
<a name="UnRTF+unrtfVersion"></a>

### unRTF.unrtfVersion : <code>string</code> \| <code>undefined</code>
**Kind**: instance property of [<code>UnRTF</code>](#UnRTF)
<a name="UnRTF+unrtfAcceptedOptions"></a>

### unRTF.unrtfAcceptedOptions : <code>object</code>
**Kind**: instance property of [<code>UnRTF</code>](#UnRTF)
<a name="UnRTF+convert"></a>

### unRTF.convert(file, [options]) ⇒ <code>Promise.&lt;string&gt;</code>
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"checkJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"lib": ["ES2023"],
"lib": ["ES2022"],
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "types",
Expand Down
16 changes: 14 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
export default UnRTF;
export class UnRTF {
/** @param {string} [binPath] - Path of UnRTF binary. */
/**
* @param {string} [binPath] - Path of UnRTF binary.
* If not provided, the constructor will attempt to find the binary
* in the PATH environment variable.
*
* For `win32`, a binary is bundled with the package and will be used
* if a local installation is not found.
*/
constructor(binPath?: string);
unrtfPath: string;
/** @type {string|undefined} */
unrtfPath: string | undefined;
/** @type {string|undefined} */
unrtfVersion: string | undefined;
/** @type {object} */
unrtfAcceptedOptions: object;
/**
* @author Frazer Smith
* @description Converts an RTF file to HTML/LaTeX/RTF/TXT.
Expand Down

0 comments on commit 504bc84

Please sign in to comment.