Skip to content

Commit 4a9b07d

Browse files
fix: 🐛 expose used types
1 parent 9656d61 commit 4a9b07d

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

packages/interpolate/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type ReplaceMap<T> = { [placeholder: string]: T } | T[]
1+
export type ReplaceMap<T> = { [placeholder: string]: T } | T[]
22

33
/**
44
* Creates a renderer that substitutes placeholders in a template with values

packages/react-with-props/src/index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ function getDisplayName<C extends ElementType>(Component: C): string {
1111
: Component.displayName || Component.name || 'Component'
1212
}
1313

14-
type ExternalProps<
14+
export type ExternalProps<
1515
C extends ElementType,
1616
P extends object,
1717
I extends object = {},
1818
> = Omit<ComponentPropsWithoutRef<C>, keyof P> & I
1919

20-
type Injector<C extends ElementType, P extends object, I extends object> = (
21-
props: ExternalProps<C, P, I>,
22-
) => P
20+
export type Injector<
21+
C extends ElementType,
22+
P extends object,
23+
I extends object,
24+
> = (props: ExternalProps<C, P, I>) => P
2325

2426
function isInjector<
2527
P extends object,
@@ -46,7 +48,7 @@ export function withProps<
4648
return EnhancedComponent
4749
}
4850

49-
type Defaultize<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>
51+
export type Defaultize<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>
5052

5153
export function withDefaultProps<
5254
C extends ElementType,

packages/result/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { None, type Option, Some } from '@pacote/option'
22

3-
const T_OK = Symbol('Ok')
4-
const T_ERR = Symbol('Err')
3+
export const T_OK = Symbol('Ok')
4+
export const T_ERR = Symbol('Err')
55

66
/**
77
* Successful result type.

0 commit comments

Comments
 (0)