Skip to content

Commit

Permalink
refactor(lib)!: remove types export (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
theisel committed May 17, 2023
1 parent b773253 commit f95c9da
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 7 deletions.
45 changes: 45 additions & 0 deletions .changeset/nine-drinks-walk.md
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<{...}>>;
```
7 changes: 0 additions & 7 deletions astro-portabletext/lib/components.ts
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";

0 comments on commit f95c9da

Please sign in to comment.