-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix SanitizerConfig type definition #1456
Fix SanitizerConfig type definition #1456
Conversation
b532025
to
75d12ea
Compare
src/types-internal/html-janitor.d.ts
Outdated
interface Config { | ||
tags: { | ||
[key: string]: boolean|{[attr: string]: boolean|string}|(() => any) | ||
[key: string]: Option | ((el: HTMLElement) => Option) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By adding el: HTMLElement
, escape Type error with callback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR description is not provided
src/types-internal/html-janitor.d.ts
Outdated
@@ -3,9 +3,11 @@ | |||
* After that we can use it at the TS modules | |||
*/ | |||
declare module 'html-janitor' { | |||
type Option = boolean | { [attr: string]: boolean | string }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs missed
types/configs/sanitizer-config.d.ts
Outdated
@@ -1,3 +1,5 @@ | |||
type Option = boolean | { [attr: string]: boolean | string }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs are missed
929573b
to
6d0943f
Compare
@neSpecc |
Please pull the |
@neSpecc I did |
Co-authored-by: Peter Savchenko <[email protected]>
8f97a6f
to
6206f16
Compare
6206f16
to
e1f63e8
Compare
@@ -560,7 +560,7 @@ export default class BlockManager extends Module { | |||
* 2) Mark it as current | |||
* | |||
* @param {Node} childNode - look ahead from this node. | |||
* @returns can return undefined in case when the passed child note is not a part of the current editor instance | |||
* @returns {Block | undefined} can return undefined in case when the passed child note is not a part of the current editor instance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed for yarn lint:fix
Resolved conflicts. |
#1513