Socket
Socket
Sign inDemoInstall

@types/stats.js

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.16.1 to 0.17.0

19

stats.js/index.d.ts

@@ -1,7 +0,10 @@

// Type definitions for Stats.js 0.16.0
// 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>
// 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
declare class Stats {
constructor();
REVISION: number;

@@ -17,6 +20,16 @@ dom: HTMLDivElement;

update(): void;
addPanel(panel: Stats.Panel): Stats.Panel;
}
declare module "stats.js" {
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;
}

15

stats.js/package.json
{
"name": "@types/stats.js",
"version": "0.16.1",
"version": "0.17.0",
"description": "TypeScript definitions for Stats.js",

@@ -9,7 +9,14 @@ "license": "MIT",

"name": "Gregory Dalton",
"url": "https://github.com/gregolai"
"url": "https://github.com/gregolai",
"githubUsername": "gregolai"
},
{
"name": "Harm Berntsen",
"url": "https://github.com/hberntsen"
"url": "https://github.com/hberntsen",
"githubUsername": "hberntsen"
},
{
"name": "Dan Vanderkam",
"url": "https://github.com/danvk",
"githubUsername": "danvk"
}

@@ -24,4 +31,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "05ef53c6a782f4b3662349279b9847635b315aec9b44f56958813c39c8d48702",
"typesPublisherContentHash": "efc6c5763f75627be87c471029dd829d1f8783d7a29a14982e5abe8f62be7569",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Mon, 21 Aug 2017 22:03:22 GMT
* Last updated: Sun, 03 Dec 2017 16:31:01 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: Stats

# Credits
These definitions were written by Gregory Dalton <https://github.com/gregolai>, Harm Berntsen <https://github.com/hberntsen>.
These definitions were written by Gregory Dalton <https://github.com/gregolai>, Harm Berntsen <https://github.com/hberntsen>, Dan Vanderkam <https://github.com/danvk>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc