Skip to main content

Logic

Stentor API Reference


Stentor API Reference / stentor-models/src / Logic

Interface: Logic

Defined in: packages/stentor-models/src/Logic.ts:5

Logic meant to be run in the LogicEvaluator.

Properties​

version?​

optional version: number

Defined in: packages/stentor-models/src/Logic.ts:10

Version of the LogicEvaluator the compiled code will be executed within.


compiled​

compiled: string

Defined in: packages/stentor-models/src/Logic.ts:14

The compiled JavaScript


typescript?​

optional typescript: string

Defined in: packages/stentor-models/src/Logic.ts:22

Alpha

Currently not supported but in the future we might want to store the raw TypeScript source which is easier to read and write than the compiled JavaScript.