Socket
Socket
Sign inDemoInstall

@types/oojs

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/oojs - npm Package Compare versions

Comparing version 6.0.5 to 7.0.0

10

oojs/Factory.d.ts

@@ -9,6 +9,10 @@ declare namespace OO {

* OO.initClass( MyClass );
* MyClass.static.name = 'hello';
* // Register class with the factory, available via the symbolic name "hello"
* MyClass.key = 'hello';
*
* // Register class with the factory
* factory.register( MyClass );
*
* // Instantiate a class based on its registered key (also known as a "symbolic name")
* factory.create( 'hello' );
*
* @param constructor Constructor to use when creating object

@@ -20,3 +24,3 @@ * @param name Symbolic name to use for {@link create()}.

*/
register(constructor: ConstructorLike & { static: { name: string } }): void;
register(constructor: (ConstructorLike & { static: { name: string } }) | (ConstructorLike & { key: string })): void;

@@ -23,0 +27,0 @@ /**

@@ -1,2 +0,2 @@

// Type definitions for OOjs 6.0
// Type definitions for OOjs 7.0
// Project: https://www.mediawiki.org/wiki/OOjs

@@ -3,0 +3,0 @@ // Definitions by: diskdance <https://github.com/diskdance>

{
"name": "@types/oojs",
"version": "6.0.5",
"version": "7.0.0",
"description": "TypeScript definitions for OOjs",

@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oojs",

"dependencies": {},
"typesPublisherContentHash": "72ccebb008cbd8008e9069684216ecd2a12cc7e2711ae9ed19635da39c436f9c",
"typesPublisherContentHash": "f041ef46ef224a94586369548ed8ffcf4707b6eb8d71e34203038458d1bbbd68",
"typeScriptVersion": "4.3"
}

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

### Additional Details
* Last updated: Sun, 11 Jun 2023 01:02:52 GMT
* Last updated: Thu, 06 Jul 2023 09:32:44 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `OO`

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc