• Creates a proxy of an Alias instance so that we can use it like a normal object.

    Type Parameters

    • T

    Parameters

    Returns ILike<T>

    Example

    import { alias } from 'deleight/proxies/alias'
    const obj1 = { a: 1, b: 2 };
    const obj2 = { a: 3, b: 4 };
    const al = alias({ c: obj1, d: obj2 }, {c: 'a', d: 'a'});
    console.log(al.c) // 1
    console.log(al.d) // 3