Skip to content

Commit

Permalink
Fixed the comment cutting, tests updated, type errors resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-dukhovnyy committed Jan 13, 2024
1 parent aec520e commit 4a053ef
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 16 deletions.
4 changes: 3 additions & 1 deletion dist/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export declare class PurifyHTML {
* Is need to remove comments in root and in all nodes by default
*/
protected removeComments: boolean;
protected allowedTags: TagRule[];
protected allowedTags: {
[key: string]: TagRule;
};
protected whiteList: string[];
constructor(allowedTags?: TagRule[] | string[]);
/**
Expand Down
2 changes: 1 addition & 1 deletion dist/core.d.ts.map

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

2 changes: 1 addition & 1 deletion dist/index.browser.js

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

2 changes: 1 addition & 1 deletion dist/index.esm.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/utils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ export declare const addPrefix: (str: string, check: RegExp, prefix: string) =>
/**
* Deep clone an object
*/
export declare const deepClone: (item: object | string) => object | string;
export declare const deepClone: <T>(item: T) => T;
/**
* Create clone of config for safe mutations
*
* @param {string[] | TagRule[]} config
* @returns {string[] | TagRule[]} cloned config
*/
export declare const copyConfig: (config: any[]) => any[];
export declare const copyConfig: (config: (string | TagRule)[]) => (string | TagRule)[];
/**
* @typedef PresetCheckResult
* @type {object}
Expand Down
Loading

0 comments on commit 4a053ef

Please sign in to comment.