@tiptap/extension-italic
Advanced tools
Comparing version 2.0.0-beta.13 to 2.0.0-beta.14
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-beta.14](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-italic@2.0.0-beta.13...@tiptap/extension-italic@2.0.0-beta.14) (2021-06-07) | ||
**Note:** Version bump only for package @tiptap/extension-italic | ||
# [2.0.0-beta.13](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-italic@2.0.0-beta.12...@tiptap/extension-italic@2.0.0-beta.13) (2021-05-18) | ||
@@ -8,0 +16,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { Command, Mark } from '@tiptap/core'; | ||
import { Mark } from '@tiptap/core'; | ||
export interface ItalicOptions { | ||
@@ -6,3 +6,3 @@ HTMLAttributes: Record<string, any>; | ||
declare module '@tiptap/core' { | ||
interface Commands { | ||
interface Commands<ReturnType> { | ||
italic: { | ||
@@ -12,11 +12,11 @@ /** | ||
*/ | ||
setItalic: () => Command; | ||
setItalic: () => ReturnType; | ||
/** | ||
* Toggle an italic mark | ||
*/ | ||
toggleItalic: () => Command; | ||
toggleItalic: () => ReturnType; | ||
/** | ||
* Unset an italic mark | ||
*/ | ||
unsetItalic: () => Command; | ||
unsetItalic: () => ReturnType; | ||
}; | ||
@@ -23,0 +23,0 @@ } |
{ | ||
"name": "@tiptap/extension-italic", | ||
"description": "italic extension for tiptap", | ||
"version": "2.0.0-beta.13", | ||
"version": "2.0.0-beta.14", | ||
"homepage": "https://tiptap.dev", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "6b154e4c8161fbba987e162ebebc155243432f24" | ||
"gitHead": "5c8e46b0d48aa09ba0d2e8337ae6bbb2d7503e82" | ||
} |
import { | ||
Command, | ||
Mark, | ||
@@ -14,3 +13,3 @@ markInputRule, | ||
declare module '@tiptap/core' { | ||
interface Commands { | ||
interface Commands<ReturnType> { | ||
italic: { | ||
@@ -20,11 +19,11 @@ /** | ||
*/ | ||
setItalic: () => Command, | ||
setItalic: () => ReturnType, | ||
/** | ||
* Toggle an italic mark | ||
*/ | ||
toggleItalic: () => Command, | ||
toggleItalic: () => ReturnType, | ||
/** | ||
* Unset an italic mark | ||
*/ | ||
unsetItalic: () => Command, | ||
unsetItalic: () => ReturnType, | ||
} | ||
@@ -31,0 +30,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29841
316