@plasmicapp/host
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -24,2 +24,7 @@ import "@plasmicapp/preamble"; | ||
}; | ||
declare type ChoiceType = { | ||
type: "choice"; | ||
options: string[]; | ||
defaultValue?: string; | ||
}; | ||
declare type SlotType = "slot" | { | ||
@@ -43,4 +48,4 @@ type: "slot"; | ||
declare type SupportControlled<T> = Extract<T, String> | (Exclude<T, String> & ControlTypeBase); | ||
export declare type PropType = SupportControlled<StringType | BooleanType | NumberType | JSONLikeType> | SlotType; | ||
declare type RestrictPropType<T> = T extends string ? SupportControlled<StringType | JSONLikeType> : T extends boolean ? SupportControlled<BooleanType | JSONLikeType> : T extends number ? SupportControlled<NumberType | JSONLikeType> : PropType; | ||
export declare type PropType = SupportControlled<StringType | BooleanType | NumberType | JSONLikeType | ChoiceType> | SlotType; | ||
declare type RestrictPropType<T> = T extends string ? SupportControlled<StringType | ChoiceType | JSONLikeType> : T extends boolean ? SupportControlled<BooleanType | JSONLikeType> : T extends number ? SupportControlled<NumberType | JSONLikeType> : PropType; | ||
export interface ComponentMeta<P> { | ||
@@ -47,0 +52,0 @@ /** |
{ | ||
"name": "@plasmicapp/host", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "plasmic library for app hosting", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
80841
596