0.1.22 • Published 23 days ago
@rekajs/types v0.1.22
@rekajs/types
Package for creating and interacting with Reka data types (ie: the AST and the View)
Installation
npm install @rekajs/types
Creating a new Type
To create a new type, use the builder function which will return a new Type
instance:
import * as t from '@rekajs/types';
// Using the builder function
const literal = t.literal({
value: 0
});
// or manually: new Literal({ value: 0 })
Checking an instance's type
import * as t from '@rekajs/types';
const literal = t.literal({ value : 0 });
console.log(literal instanceof t.Literal); // true
console.log(literal instanceof t.Expression); // true
console.log(literal instanceof t.RekaComponent); // false
0.1.22
23 days ago
0.1.21
2 months ago
0.1.20
3 months ago
0.1.19
4 months ago
0.1.18
5 months ago
0.1.17
5 months ago
0.1.11
10 months ago
0.1.12
9 months ago
0.1.13
7 months ago
0.1.14
6 months ago
0.1.15
6 months ago
0.1.16
6 months ago
0.1.10
11 months ago
0.1.8
12 months ago
0.1.7
12 months ago
0.1.9
12 months ago
0.1.6
1 year ago
0.1.5
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.0
1 year ago
0.1.0-alpha.0
1 year ago