Skip to content

Commit 34bbf72

Browse files
committed
feat(type): export PropOptions
Resolves: #71
1 parent 9411ec5 commit 34bbf72

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/component/componentProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export type ComponentPropsOptions<P = Data> = {
66

77
type Prop<T> = PropOptions<T> | PropType<T>;
88

9-
interface PropOptions<T = any> {
9+
export interface PropOptions<T = any> {
1010
type?: PropType<T> | null;
1111
required?: boolean;
1212
default?: T | null | undefined | (() => T | null | undefined);

src/component/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export { Data, createComponent, SetupFunction, SetupContext, ComponentInstance } from './component';
2-
export { PropType } from './componentProps';
2+
export { PropType, PropOptions } from './componentProps';

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (currentVue && typeof window !== 'undefined' && window.Vue) {
2323
export default plugin;
2424
export { default as createElement } from './createElement';
2525
export { SetupContext };
26-
export { createComponent, PropType } from './component';
26+
export { createComponent, PropType, PropOptions } from './component';
2727

2828
export * from './apis/state';
2929
export * from './apis/lifecycle';

0 commit comments

Comments
 (0)