Skip to content

Commit 5b92696

Browse files
committed
Avoid circular rewference issue post compile
1 parent 0f580f5 commit 5b92696

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": false,
33
"name": "@attio/react-data-list",
4-
"version": "1.0.4",
4+
"version": "1.0.5",
55
"author": "Braden Marshall <[email protected]>",
66
"license": "MIT",
77
"bugs": "https://github.com/attio/react-data-list/issues",

src/data-list-types.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@ export interface DataListDescriptor<TRenderItem = any> {
3939
/**
4040
* Utility type to extract the TRenderItem type from UniversalListDescriptor.
4141
*/
42-
export type ValueOfDescriptor<T extends DataListDescriptor<any>> = T extends DataListDescriptor<
43-
infer TRenderItem
44-
>
45-
? TRenderItem
46-
: never
42+
export type DataListValueOfDescriptor<T extends DataListDescriptor<any>> =
43+
T extends DataListDescriptor<infer TRenderItem> ? TRenderItem : never
4744

4845
/**
4946
* The shape of the item info passed into the render function of a row.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {
33
DataListRenderListItem,
44
DataListRenderListItemInfo,
55
DataListRenderListItemInfoWithIndex,
6-
ValueOfDescriptor as DataListValueOfDescriptor,
6+
DataListValueOfDescriptor,
77
} from "./data-list-types"
88
import {DataList} from "./data-list"
99
import {useDataListRendererContext} from "./data-list-renderer-context"

0 commit comments

Comments
 (0)