From 496c9f0a1fdab2c2824d81d52145324b4482ed0e Mon Sep 17 00:00:00 2001 From: Phil Miller Date: Thu, 5 Dec 2024 11:33:21 -0500 Subject: [PATCH] Update base-types.mdx: Enum --> enum --- .../src/content/docs/docs/reference/base-types.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/docs-site/src/content/docs/docs/reference/base-types.mdx b/packages/docs-site/src/content/docs/docs/reference/base-types.mdx index 38cd83e0..c4ffad1e 100644 --- a/packages/docs-site/src/content/docs/docs/reference/base-types.mdx +++ b/packages/docs-site/src/content/docs/docs/reference/base-types.mdx @@ -104,7 +104,7 @@ export default defineDmnoService({ ### `enum` -`DmnoBaseTypes.Enum({ settingsSchema? })` +`DmnoBaseTypes.enum({ settingsSchema? })` DMNO Built-in data type for Enums. Includes the following optional settings: @@ -121,13 +121,13 @@ type settingsSchema = { Example: ```javascript -const myEnumType = DmnoBaseTypes.Enum({ values: ['one', 'two', 'three'] }); -const myEnumType2 = DmnoBaseTypes.Enum({ +const myEnumType = DmnoBaseTypes.enum({ values: ['one', 'two', 'three'] }); +const myEnumType2 = DmnoBaseTypes.enum({ values: [ { value: 'one', description: 'The first one' }, { value: 'two', description: 'The second one' }], }); -const myEnumType3 = DmnoBaseTypes.Enum( +const myEnumType3 = DmnoBaseTypes.enum( { values: { one: 'The first one',