Skip to content

Commit

Permalink
fix: remove types from jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ssi02014 committed Nov 9, 2024
1 parent fd7af7e commit e75080a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 16 deletions.
3 changes: 1 addition & 2 deletions dist/purify.cjs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ interface DOMPurify {
/**
* Set the configuration once.
*
* @param {Config} cfg configuration object
* @returns {void}
* @param cfg configuration object
*/
setConfig(cfg?: Config): void;
/**
Expand Down
4 changes: 2 additions & 2 deletions dist/purify.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions dist/purify.es.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ interface DOMPurify {
/**
* Set the configuration once.
*
* @param {Config} cfg configuration object
* @returns {void}
* @param cfg configuration object
*/
setConfig(cfg?: Config): void;
/**
Expand Down
4 changes: 2 additions & 2 deletions dist/purify.es.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ const getGlobal = function getGlobal() {
/**
* Creates a no-op policy for internal use only.
* Don't export this function outside this module!
* @param trustedTypes - The policy factory.
* @param purifyHostElement - The Script element used to load DOMPurify (to determine policy name suffix).
* @param trustedTypes The policy factory.
* @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
* @return The policy created (or null, if Trusted Types
* are not supported or creating the policy failed).
*/
Expand Down
4 changes: 2 additions & 2 deletions dist/purify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/purify.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions src/purify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const getGlobal = function (): WindowLike {
/**
* Creates a no-op policy for internal use only.
* Don't export this function outside this module!
* @param trustedTypes - The policy factory.
* @param purifyHostElement - The Script element used to load DOMPurify (to determine policy name suffix).
* @param trustedTypes The policy factory.
* @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
* @return The policy created (or null, if Trusted Types
* are not supported or creating the policy failed).
*/
Expand Down Expand Up @@ -1703,8 +1703,7 @@ interface DOMPurify {
/**
* Set the configuration once.
*
* @param {Config} cfg configuration object
* @returns {void}
* @param cfg configuration object
*/
setConfig(cfg?: Config): void;

Expand Down

0 comments on commit e75080a

Please sign in to comment.