Skip to content
/ joop Public

Class-oriented programming in JavaScript/TypeScript

License

Notifications You must be signed in to change notification settings

eakarpov/joop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Class-oriented programming in JavaScript/TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published