@types/stats.js
Advanced tools
Comparing version 0.17.0 to 0.17.1
@@ -32,4 +32,4 @@ // Type definitions for Stats.js 0.17.0 | ||
declare module 'stats.js' { | ||
declare module "stats.js" { | ||
export = Stats; | ||
} |
{ | ||
"name": "@types/stats.js", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"description": "TypeScript definitions for Stats.js", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stats.js", | ||
"license": "MIT", | ||
@@ -24,10 +25,12 @@ "contributors": [ | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/stats.js" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "efc6c5763f75627be87c471029dd829d1f8783d7a29a14982e5abe8f62be7569", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "4274629550e684804119c8ff445767e634750b1f2cc1474037e5a8220b432037", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -8,10 +8,48 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stats.js | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stats.js. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stats.js/index.d.ts) | ||
````ts | ||
// Type definitions for Stats.js 0.17.0 | ||
// Project: https://github.com/mrdoob/stats.js | ||
// Definitions by: Gregory Dalton <https://github.com/gregolai>, | ||
// Harm Berntsen <https://github.com/hberntsen>, | ||
// Dan Vanderkam <https://github.com/danvk> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
Additional Details | ||
* Last updated: Sun, 03 Dec 2017 16:31:01 GMT | ||
declare class Stats { | ||
constructor(); | ||
REVISION: number; | ||
dom: HTMLDivElement; | ||
/** | ||
* @param value 0:fps, 1: ms, 2: mb, 3+: custom | ||
*/ | ||
showPanel(value: number): void; | ||
begin(): void; | ||
end(): number; | ||
update(): void; | ||
addPanel(panel: Stats.Panel): Stats.Panel; | ||
} | ||
declare namespace Stats { | ||
class Panel { | ||
constructor(name: string, foregroundColor: string, backgroundColor: string); | ||
dom: HTMLCanvasElement; | ||
update(value: number, maxValue: number): void; | ||
} | ||
} | ||
declare module "stats.js" { | ||
export = Stats; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 25 Sep 2023 13:39:06 GMT | ||
* Dependencies: none | ||
* Global values: Stats | ||
* Global values: `Stats` | ||
# Credits | ||
These definitions were written by Gregory Dalton <https://github.com/gregolai>, Harm Berntsen <https://github.com/hberntsen>, Dan Vanderkam <https://github.com/danvk>. | ||
These definitions were written by [Gregory Dalton](https://github.com/gregolai), [Harm Berntsen](https://github.com/hberntsen), and [Dan Vanderkam](https://github.com/danvk). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4786
1
55