maxgherman/TypeIOC

View on GitHub
src/common/owner.ts

Summary

Maintainability
A
0 mins
Test Coverage

/**
 * Represents ownerships type values
 */
export type OwnerType = 1 | 2

/**
 * Represents ownerships type
 */
export const owner = Object.freeze({
    /**
     * Container ownership
     */
    container: 1 as OwnerType,

    /**
     * External ownership
     */
    externals: 2 as OwnerType
})