Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed types #45

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading