Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 707 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 707 Bytes

JOOP - Just Object-Oriented Programming

Class-oriented programming implemented for JavaScript (TypeScript).

Usage

import {dataclass} from 'joop';

@dataclass
class A {
    property: any;
}

@dataclass({ equalsTo: false })
class A {
    property: any;
}

Features

  • immutable objects

    • objects produced by classed with dataclass annotation are immutable.
  • toString() override

    • method toString is injected automatically for string representation of the object
  • custom representation of an object in console.log

    • uses toString() method instead of standard mechanism.
    • can be turned off via { log: false } parameter in annotation

TODO: To be implemented