0.1.24 • Published 11 months ago
@rekajs/types v0.1.24
@rekajs/types
Package for creating and interacting with Reka data types (ie: the AST and the View)
Installation
npm install @rekajs/typesCreating 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); // false0.1.24
11 months ago
0.1.23
2 years ago
0.1.22
2 years ago
0.1.21
2 years ago
0.1.20
2 years ago
0.1.19
2 years ago
0.1.18
2 years ago
0.1.17
2 years ago
0.1.11
2 years ago
0.1.12
2 years ago
0.1.13
2 years ago
0.1.14
2 years ago
0.1.15
2 years ago
0.1.16
2 years ago
0.1.10
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.9
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.0
3 years ago
0.1.0-alpha.0
3 years ago