Skip to content

Commit

Permalink
Fixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxhoundn committed Aug 22, 2024
1 parent 9ff801e commit 4dcc625
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 4 additions & 4 deletions src/types/forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions src/types/qorus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type TQorusBooleanCompatibleUIType = 'bool' | 'boolean';
export type TQorusSpecialUIType = 'richtext' | 'data-provider';

export type TQorusType =
| TQorusInterfaces
| TQorusStringCompatibleUIType
| TQorusNumberCompatibleUIType
| TQorusListCompatibleUIType
Expand Down

0 comments on commit 4dcc625

Please sign in to comment.