Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#46657 react-email-editor: add missing conf…
Browse files Browse the repository at this point in the history
…iguration properties by @Adam-Howarth

* Added missing configuration properties for react-email-editor (Unlayer)

The additional properties are defined here: https://docs.unlayer.com/docs/features#emojis

* Missing brace

* Duplicate definition
  • Loading branch information
Adam-Howarth committed Aug 11, 2020
1 parent e182b4d commit 9fc4c8e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions types/react-email-editor/index.d.ts
Expand Up @@ -71,6 +71,15 @@ export interface Features {
readonly preview?: boolean;
readonly imageEditor?: boolean;
readonly undoRedo?: boolean;
readonly stockImages?: boolean;
readonly textEditor?: TextEditor;
}

export interface TextEditor {
readonly spellChecker?: boolean;
readonly tables?: boolean;
readonly cleanPaste?: boolean;
readonly emojis?: boolean;
}

export type Translations = Record<string, Record<string, string>>;
Expand Down
7 changes: 7 additions & 0 deletions types/react-email-editor/react-email-editor-tests.tsx
Expand Up @@ -121,6 +121,13 @@ class App extends React.Component {
preview: true,
imageEditor: false,
undoRedo: true,
stockImages: false,
textEditor: {
spellChecker: true,
tables: false,
cleanPaste: true,
emojis: true,
},
},
translations: {
en: {
Expand Down

0 comments on commit 9fc4c8e

Please sign in to comment.