Nigerian Prince Meme

    @grudge/domain

    2.0.10 • Public • Published

    @grudge/domain

    Grudge domain models

    Usage

    import { User } from '@grudge/domain';
    
    // see the default property values
    console.log(User.defaults);
    
    // create an instance
    const user = new User({ name: 'hello' });
    const user2 = user.clone();
    const user3 = User.create({ name: 'bobby' });
    
    // see current properties
    console.log(user.properties);
    console.log(user.name);
    
    // properties are frozen
    user.name = 'jimmy'; // Error!

    Keywords

    none

    Install

    npm i @grudge/domain

    DownloadsWeekly Downloads

    1

    Version

    2.0.10

    License

    none

    Unpacked Size

    5.93 kB

    Total Files

    11

    Last publish

    Collaborators

    • ddmills