mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:52:51 +00:00
feat(types): add IPublicTypeInstanceOf to prop-types
This commit is contained in:
parent
50aa15cd85
commit
2788b02ab4
@ -3,7 +3,7 @@ import { IPublicTypePropConfig } from './';
|
||||
|
||||
export type IPublicTypePropType = IPublicTypeBasicType | IPublicTypeRequiredType | IPublicTypeComplexType;
|
||||
export type IPublicTypeBasicType = 'array' | 'bool' | 'func' | 'number' | 'object' | 'string' | 'node' | 'element' | 'any';
|
||||
export type IPublicTypeComplexType = IPublicTypeOneOf | IPublicTypeOneOfType | IPublicTypeArrayOf | IPublicTypeObjectOf | IPublicTypeShape | IPublicTypeExact;
|
||||
export type IPublicTypeComplexType = IPublicTypeOneOf | IPublicTypeOneOfType | IPublicTypeArrayOf | IPublicTypeObjectOf | IPublicTypeShape | IPublicTypeExact | IPublicTypeInstanceOf;
|
||||
|
||||
export interface IPublicTypeRequiredType {
|
||||
type: IPublicTypeBasicType;
|
||||
@ -40,3 +40,9 @@ export interface IPublicTypeExact {
|
||||
value: IPublicTypePropConfig[];
|
||||
isRequired?: boolean;
|
||||
}
|
||||
|
||||
export interface IPublicTypeInstanceOf {
|
||||
type: 'instanceOf';
|
||||
value: IPublicTypePropConfig;
|
||||
isRequired?: boolean;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user