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.
- package/definitions/augments.d.ts +14 -8
- package/package.json +1 -1
|
@@ -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