From e75080a4cba1d70049ba126fd2432c1fc0ee71f2 Mon Sep 17 00:00:00 2001 From: ssi02014 Date: Sat, 9 Nov 2024 13:14:42 +0900 Subject: [PATCH] fix: remove types from jsdoc --- dist/purify.cjs.d.ts | 3 +-- dist/purify.cjs.js | 4 ++-- dist/purify.es.d.mts | 3 +-- dist/purify.es.mjs | 4 ++-- dist/purify.js | 4 ++-- dist/purify.min.js | 4 ++-- src/purify.ts | 7 +++---- 7 files changed, 13 insertions(+), 16 deletions(-) diff --git a/dist/purify.cjs.d.ts b/dist/purify.cjs.d.ts index d8594120f..95677a195 100644 --- a/dist/purify.cjs.d.ts +++ b/dist/purify.cjs.d.ts @@ -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; /** diff --git a/dist/purify.cjs.js b/dist/purify.cjs.js index 0e0eb7857..f1147300c 100644 --- a/dist/purify.cjs.js +++ b/dist/purify.cjs.js @@ -246,8 +246,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). */ diff --git a/dist/purify.es.d.mts b/dist/purify.es.d.mts index 7f19c3965..fddbc7739 100644 --- a/dist/purify.es.d.mts +++ b/dist/purify.es.d.mts @@ -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; /** diff --git a/dist/purify.es.mjs b/dist/purify.es.mjs index 0af926b4d..5b87ae245 100644 --- a/dist/purify.es.mjs +++ b/dist/purify.es.mjs @@ -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). */ diff --git a/dist/purify.js b/dist/purify.js index a0dd99e6f..9deb30973 100644 --- a/dist/purify.js +++ b/dist/purify.js @@ -250,8 +250,8 @@ /** * 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). */ diff --git a/dist/purify.min.js b/dist/purify.min.js index 1d1e78ca7..c36144114 100644 --- a/dist/purify.min.js +++ b/dist/purify.min.js @@ -250,8 +250,8 @@ /** * 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). */ diff --git a/src/purify.ts b/src/purify.ts index f4aa87db6..5c2ba4d7d 100644 --- a/src/purify.ts +++ b/src/purify.ts @@ -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). */ @@ -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;