mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Add types to functions exported as API in src/pdf.js.
This commit is contained in:
parent
00a8b42e67
commit
bc4648c0a6
2 changed files with 11 additions and 1 deletions
|
@ -467,6 +467,9 @@ class AbortException extends BaseException {}
|
|||
|
||||
const NullCharactersRegExp = /\x00/g;
|
||||
|
||||
/**
|
||||
* @param {string} str
|
||||
*/
|
||||
function removeNullCharacters(str) {
|
||||
if (typeof str !== "string") {
|
||||
warn("The argument for removeNullCharacters must be a string.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue