🔧 fix(base.py): add input_types property to TemplateFieldCreator class
🔧 fix(index.ts): add input_types property to TemplateVariableType interface
The `input_types` property is added to the `TemplateFieldCreator` class in `base.py` and the `TemplateVariableType` interface in `index.ts`. This change allows for specifying the input types for template fields and template variables, respectively.
This commit is contained in:
parent
5d2901c7a6
commit
0ecb531749
2 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ class TemplateFieldCreator(BaseModel, ABC):
|
|||
name: str = ""
|
||||
display_name: Optional[str] = None
|
||||
advanced: bool = False
|
||||
input_types: list[str] = []
|
||||
|
||||
def to_dict(self):
|
||||
result = self.dict()
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ export type TemplateVariableType = {
|
|||
show: boolean;
|
||||
multiline?: boolean;
|
||||
value?: any;
|
||||
input_types?: Array<string>;
|
||||
[key: string]: any;
|
||||
};
|
||||
export type sendAllProps = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue