-
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(lib)!: remove
types
export (#34)
- Loading branch information
Showing
2 changed files
with
45 additions
and
7 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,45 @@ | ||
--- | ||
"astro-portabletext": minor | ||
--- | ||
|
||
**BREAKING CHANGE** `astro-portabletext/components` | ||
|
||
- Removed `BlockProps` type | ||
|
||
```diff | ||
- import type { BlockProps } from "astro-portabletext/components"; | ||
+ import type { Block, Props as $ } from "astro-portabletext/types"; | ||
``` | ||
```js | ||
// type BlockProps = $<Block>; | ||
``` | ||
|
||
- Removed `ListProps` type | ||
|
||
```diff | ||
- import type { ListProps } from "astro-portabletext/components"; | ||
+ import type { List, Props as $ } from "astro-portabletext/types"; | ||
``` | ||
```js | ||
// type ListProps = $<List>; | ||
``` | ||
|
||
- Removed `ListItemProps` type | ||
|
||
```diff | ||
- import type { ListItemProps } from "astro-portabletext/components"; | ||
+ import type { ListItem, Props as $ } from "astro-portabletext/types"; | ||
``` | ||
```js | ||
// type ListItemProps = $<ListItem>; | ||
``` | ||
|
||
- Removed `MarkProps` type | ||
|
||
```diff | ||
- import type { MarkProps } from "astro-portabletext/components"; | ||
+ import type { Mark, Props as $ } from "astro-portabletext/types"; | ||
``` | ||
```js | ||
// type MarkProps = $<Mark<{...}>>; | ||
``` |
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,11 +1,4 @@ | ||
export { default as Block } from "../components/Block.astro"; | ||
export type { Props as BlockProps } from "../components/Block.astro"; | ||
|
||
export { default as List } from "../components/List.astro"; | ||
export type { Props as ListProps } from "../components/List.astro"; | ||
|
||
export { default as ListItem } from "../components/ListItem.astro"; | ||
export type { Props as ListItemProps } from "../components/ListItem.astro"; | ||
|
||
export { default as Mark } from "../components/Mark.astro"; | ||
export type { Props as MarkProps } from "../components/Mark.astro"; |