Skip to content
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

Hotfix: sanitizer config type definition #1491

Merged

Conversation

phanletrunghieu
Copy link
Contributor

@phanletrunghieu phanletrunghieu commented Dec 30, 2020

When I use sanitizer with typescript.

I wanna use a function with el param.

const sanitizerConfig = {
  b: true,
  p: function(el) {
    return !el.textContent.includes('bad text')
  }
}

(https://editorjs.io/sanitizer)

But sanitizer is definited with func(): any (missing el parram).

Copy link
Member

@neSpecc neSpecc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No description provided.

types/configs/sanitizer-config.d.ts Outdated Show resolved Hide resolved
@hata6502
Copy link
Contributor

#1456

@khaydarov
Copy link
Member

@hata6502 could you resolve Peters' comment please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants