UNPKG

703 BTypeScriptView Raw
1import Environment = require("../..");
2import createLogger = require("./log");
3
4/**
5 * Create a "sloppy" copy of an initial Environment object.
6 * The focus of this method is on performance rather than correctly deep
7 * copying every property or recreating a correct instance.
8 * Use carefully and don't rely on `hasOwnProperty` of the copied environment.
9 *
10 * Every property are shared except the runLoop which is regenerated.
11 *
12 * @param initialEnv The Environment instance to duplicate.
13 * @return A sloppy copy of the specified `Environment`.
14 */
15export function duplicateEnv(initialEnv: Environment): Environment;
16
17/**
18 * Creates a new `Logger`-instance.
19 */
20export let log: typeof createLogger;