source: node_modules/ts-mixer/dist/esm/proxy.d.ts@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 1019 bytes
Line 
1/**
2 * Finds the ingredient with the given prop, searching in reverse order and breadth-first if searching ingredient
3 * prototypes is required.
4 */
5export declare const getIngredientWithProp: (prop: string | number | symbol, ingredients: any[]) => object | undefined;
6/**
7 * "Mixes" ingredients by wrapping them in a Proxy. The optional prototype argument allows the mixed object to sit
8 * downstream of an existing prototype chain. Note that "properties" cannot be added, deleted, or modified.
9 */
10export declare const proxyMix: (ingredients: any[], prototype?: Object) => {};
11/**
12 * Creates a new proxy-prototype object that is a "soft" mixture of the given prototypes. The mixing is achieved by
13 * proxying all property access to the ingredients. This is not ES5 compatible and less performant. However, any
14 * changes made to the source prototypes will be reflected in the proxy-prototype, which may be desirable.
15 */
16export declare const softMixProtos: (ingredients: any[], constructor: Function) => object;
Note: See TracBrowser for help on using the repository browser.