onejs-core 2.0.16 → 2.0.17

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.
@@ -33,15 +33,21 @@ declare global {
33
33
  const requestAnimationFrame: (callback: (time: number) => void) => number
34
34
  const cancelAnimationFrame: (id: number) => void
35
35
 
36
+ interface Performance {
37
+ now(): number
38
+ }
39
+
40
+ const performance: Performance
41
+
36
42
  const console: {
37
- log: (...args: any[]) => void;
38
- info: (...args: any[]) => void;
39
- warn: (...args: any[]) => void;
40
- error: (...args: any[]) => void;
41
- trace: (...args: any[]) => void;
42
- assert: (condition: boolean, ...args: any[]) => void;
43
- time: (label: string) => void;
44
- timeEnd: (label: string) => void;
43
+ log: (...args: any[]) => void
44
+ info: (...args: any[]) => void
45
+ warn: (...args: any[]) => void
46
+ error: (...args: any[]) => void
47
+ trace: (...args: any[]) => void
48
+ assert: (condition: boolean, ...args: any[]) => void
49
+ time: (label: string) => void
50
+ timeEnd: (label: string) => void
45
51
  }
46
52
 
47
53
  interface Event {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onejs-core",
3
3
  "description": "The JS part of OneJS, a UI framework and Scripting Engine for Unity.",
4
- "version": "2.0.16",
4
+ "version": "2.0.17",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/Singtaa/onejs-core"