(decorate: Decorate | string)
| 54 | |
| 55 | // Helper function to determine if a decoration is specified by its key or by its reference |
| 56 | const predicate = (decorate: Decorate | string) => { |
| 57 | const isKey = typeof decorate === 'string' |
| 58 | return (d: Decorate) => { |
| 59 | return isKey ? d.key === decorate : d === decorate |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | // Object to handle adding, removing, and checking the presence of decorations in a given Editor instance |
| 64 | export const Decorate = { |
no outgoing calls
no test coverage detected
searching dependent graphs…