From 4dcc6252e22b72d9ad400363e3077a3810ad10fb Mon Sep 17 00:00:00 2001 From: Foxhoundn Date: Thu, 22 Aug 2024 16:39:27 +0200 Subject: [PATCH] Fixed types --- package.json | 2 +- src/types/forms.ts | 8 ++++---- src/types/qorus.ts | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ba1f55d..fa7e00e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@qoretechnologies/ts-toolkit", - "version": "0.4.4", + "version": "0.4.5", "description": "Utility library to interact with Qorus Integration Engine & Qore Language", "keywords": [ "qoretechnologies", diff --git a/src/types/forms.ts b/src/types/forms.ts index 0a32435..8a9cb7c 100644 --- a/src/types/forms.ts +++ b/src/types/forms.ts @@ -5,16 +5,16 @@ import { TQorusType } from './qorus'; export type TQorusFormOperatorValue = string | string[] | undefined | null; -export type TQorusFormField = { +export interface IQorusFormField { type: TQorusType; value: any; is_expression?: boolean; op?: TQorusFormOperatorValue; -}; +} -export type IQorusForm = +export type TQorusForm = | { - [optionName: string]: TQorusFormField | undefined; + [optionName: string]: IQorusFormField | undefined; } | undefined; diff --git a/src/types/qorus.ts b/src/types/qorus.ts index 8d918cd..1e848af 100644 --- a/src/types/qorus.ts +++ b/src/types/qorus.ts @@ -11,6 +11,7 @@ export type TQorusBooleanCompatibleUIType = 'bool' | 'boolean'; export type TQorusSpecialUIType = 'richtext' | 'data-provider'; export type TQorusType = + | TQorusInterfaces | TQorusStringCompatibleUIType | TQorusNumberCompatibleUIType | TQorusListCompatibleUIType