pull/4950/head
pushkine 5 years ago
parent 2e094a0b13
commit 839639fe8c

@ -12,8 +12,6 @@ export const is_cors =
}
})();
export const has_Symbol = typeof Symbol === 'function';
declare const global: any;
export const globals = is_browser ? window : typeof globalThis !== 'undefined' ? globalThis : global;
export const resolved_promise = Promise.resolve();
export let now = is_browser ? window.performance.now.bind(window.performance) : Date.now.bind(Date);
export let raf = is_browser ? requestAnimationFrame : noop;

@ -0,0 +1,7 @@
declare const global: any;
export const globals = (typeof window !== 'undefined'
? window
: typeof globalThis !== 'undefined'
? globalThis
: global) as unknown as typeof globalThis;

@ -2,6 +2,7 @@ export * from './animations';
export * from './await_block';
export * from './dom';
export * from './environment';
export * from './globals';
export * from './keyed_each';
export * from './lifecycle';
export * from './loop';

Loading…
Cancel
Save