Skip to content

Commit

Permalink
Update base-types.mdx: Enum --> enum
Browse files Browse the repository at this point in the history
  • Loading branch information
philmillman authored Dec 5, 2024
1 parent c53e3fd commit 496c9f0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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',
Expand Down

0 comments on commit 496c9f0

Please sign in to comment.