world.ts 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +55 -51
- package/dist/index.js.map +1 -1
- package/dist/layers/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/layers/index.d.ts
CHANGED
|
@@ -72,7 +72,8 @@ export type Layer = {
|
|
|
72
72
|
export type Properties<T> = {
|
|
73
73
|
[K in keyof T]: T[K] extends Function | undefined ? T[K] : () => T[K];
|
|
74
74
|
};
|
|
75
|
-
export declare const
|
|
75
|
+
export declare const cacheAll: <T extends readonly any[], R>(_value: { [K in keyof T]: () => T[K]; }, f: (_: T) => R) => () => R;
|
|
76
|
+
export declare const cache: <T, R>(value: () => T, f: (_: T) => R) => () => R;
|
|
76
77
|
export declare const createMouseEvents: (properties: Properties<Partial<LayerOptions>>) => {
|
|
77
78
|
onClick: ((_: Pick) => void) | undefined;
|
|
78
79
|
onRightClick: ((_: Pick) => void) | undefined;
|