Skip to content

Commit

Permalink
Revert "Fixed inconsistencies with capital T in ValueType"
Browse files Browse the repository at this point in the history
This reverts commit 6c3f60f.
  • Loading branch information
dirkriehle committed Oct 31, 2023
1 parent 6c3f60f commit cf1bcbc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions apps/docs/docs/dev/05-jayvee-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ In `libs/extensions/<extension-name>/lang/src/lib/my-extractor-meta-inf.ts`:
import {
BlockMetaInformation,
IOType,
PrimitiveValueTypes,
PrimitiveValuetypes,
} from '@jvalue/jayvee-language-server';

export class MyExtractorMetaInformation extends BlockMetaInformation {
Expand All @@ -152,10 +152,10 @@ export class MyExtractorMetaInformation extends BlockMetaInformation {
// Property definitions:
{
url: {
type: PrimitiveValueTypes.Text,
type: PrimitiveValuetypes.Text,
},
limit: {
type: PrimitiveValueTypes.Integer,
type: PrimitiveValuetypes.Integer,
defaultValue: 10,
},
},
Expand Down Expand Up @@ -214,7 +214,7 @@ import {
Sheet,
implementsStatic,
} from '@jvalue/jayvee-execution';
import { IOType, PrimitiveValueTypes } from '@jvalue/jayvee-language-server';
import { IOType, PrimitiveValuetypes } from '@jvalue/jayvee-language-server';

@implementsStatic<BlockExecutorClass>()
export class MyExtractorExecutor
Expand All @@ -233,11 +233,11 @@ export class MyExtractorExecutor
// Accessing property values by their name:
const url = context.getPropertyValue(
'url',
PrimitiveValueTypes.Text,
PrimitiveValuetypes.Text,
);
const limit = context.getPropertyValue(
'limit',
PrimitiveValueTypes.Integer,
PrimitiveValuetypes.Integer,
);

// ...
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/docs/user/transforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ The general syntax of transforms looks like this:

```jayvee
transform <name> {
from <inputName> oftype <inputValueType>;
to <outputName> oftype <outputValueType>;
from <inputName> oftype <inputValuetype>;
to <outputName> oftype <outputValuetype>;
<outputName>: <expression>;
}
Expand All @@ -32,7 +32,7 @@ The curly braces denote the body of the transform.

The body first contains the definitions of input and output ports.
Input ports are defined using the `from` keyword whereas output ports use the `to` keyword.
Next, they are given a name and, after the `oftype` keyword, typed with a `valuetype`.
Next, they are given a name and, after the `oftype` keyword, typed with a valuetype.

Below, there needs to be an output assignment for each output port.
The output assignment defines how a particular output value is computed.
Expand Down

0 comments on commit cf1bcbc

Please sign in to comment.