-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: remove
BlockStyle
and isBlockStyle
- Loading branch information
Showing
4 changed files
with
12 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"astro-portabletext": minor | ||
--- | ||
|
||
**BREAKING** | ||
|
||
- Removed deprecated `BlockStyle` type; use `Block` type instead | ||
- Removed deprecated `isBlockStyle`; a utility _type guard_ function which is tied to `BlockStyle` | ||
and has no purpose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
import type { TypedObject, BlockStyle } from "./types"; | ||
|
||
export { toPlainText } from "@portabletext/toolkit"; | ||
export { mergeComponents } from "./internal"; | ||
|
||
/** | ||
* @deprecated Has no purpose anymore | ||
* | ||
* Checks if (node) is of {@link BlockStyle} | ||
*/ | ||
export const isBlockStyle = (node: TypedObject): node is BlockStyle => | ||
typeof (node as BlockStyle).style === "string"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters