micin-jp / ameba

Ameba is a flexible entity with TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ameba

Ameba is a flexible entity with TypeScript

Example

import Ameba from 'ameba';

interface Test {
  name: string,
  age: number
}

let test: Ameba<Test> = Ameba.create<Test>({name: 'foo', age: 2});
console.log(test.props.age);  // => 2
test.props.age = 3
console.log(test.props.age);  // => 3

test.valueChanges
  .subscribe((val: any) => {
    console.log(val);
  });

About

Ameba is a flexible entity with TypeScript

License:MIT License


Languages

Language:TypeScript 97.4%Language:JavaScript 2.6%