Skip to content

Commit 31ffc98

Browse files
authored
chore: export types to be used in zinc-core (#6)
* chore: export types to be used in zinc-core * chore: update version * fix: ensure required is type boolean
1 parent 7220aa9 commit 31ffc98

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nintex/form-plugin-contract",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"author": "Nintex",
55
"description": "Nintex Forms Plugin Contract",
66
"main": "dist/cjs/index.js",

src/form-plugin-contract.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
interface BaseProp {
1+
export interface BaseProp {
22
title: string;
33
required?: boolean;
44
description?: string;
5-
defaultValue?: string | boolean | number;
5+
defaultValue?: string | boolean | number | object | undefined;
66
format?: string;
77
isValueField?: boolean;
88
}
99

10-
type MinimumSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
10+
export type MinimumSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
1111

12-
interface StringProp extends BaseProp {
12+
export interface StringProp extends BaseProp {
1313
type: 'string';
1414
minLength?: number;
1515
maxLength?: number;
1616
}
1717

18-
interface ChoiceProp extends BaseProp {
18+
export interface ChoiceProp extends BaseProp {
1919
type: 'string';
2020
enum: string[];
2121
showAsRadio?: boolean;
2222
verticalLayout?: boolean;
2323
}
2424

25-
interface NumberProp extends BaseProp {
25+
export interface NumberProp extends BaseProp {
2626
type: 'number';
2727
minimum?: number;
2828
maximum?: number;
2929
}
3030

31-
interface IntegerProp extends BaseProp {
31+
export interface IntegerProp extends BaseProp {
3232
type: 'integer';
3333
minimum?: number;
3434
maximum?: number;
3535
}
3636

37-
interface BooleanProp extends BaseProp {
37+
export interface BooleanProp extends BaseProp {
3838
type: 'boolean';
3939
}
4040

@@ -81,4 +81,4 @@ export interface PluginContract {
8181
}
8282

8383
// this is same value is in package.json
84-
export const PluginContractVersion = '1.0.2';
84+
export const PluginContractVersion = '1.0.3';

0 commit comments

Comments
 (0)