@types/component-emitter 1.2.6 → 1.2.10

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.
component-emitter/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Copyright (c) Microsoft Corporation.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -5,12 +5,12 @@
5
5
  This package contains type definitions for component-emitter (https://www.npmjs.com/package/component-emitter).
6
6
 
7
7
  # Details
8
- Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/component-emitter
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/component-emitter.
9
9
 
10
- Additional Details
11
- * Last updated: Mon, 21 Aug 2017 21:49:18 GMT
10
+ ### Additional Details
11
+ * Last updated: Wed, 09 Sep 2020 21:18:32 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
15
15
  # Credits
16
- These definitions were written by Peter Snider <https://github.com/psnider>.
16
+ These definitions were written by [Peter Snider](https://github.com/psnider).
@@ -1,21 +1,22 @@
1
1
  // Type definitions for component-emitter v1.2.1
2
2
  // Project: https://www.npmjs.com/package/component-emitter
3
3
  // Definitions by: Peter Snider <https://github.com/psnider>
4
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/emitter-component
4
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
5
 
6
+ // TypeScript Version: 2.2
6
7
 
7
- interface Emitter {
8
- on(event: string, listener: Function): Emitter;
9
- once(event: string, listener: Function): Emitter;
10
- off(event?: string, listener?: Function): Emitter;
11
- emit(event: string, ...args: any[]): boolean;
12
- listeners(event: string): Function[];
13
- hasListeners(event: string): boolean;
8
+ interface Emitter<Event = string> {
9
+ on(event: Event, listener: Function): Emitter;
10
+ once(event: Event, listener: Function): Emitter;
11
+ off(event?: Event, listener?: Function): Emitter;
12
+ emit(event: Event, ...args: any[]): Emitter;
13
+ listeners(event: Event): Function[];
14
+ hasListeners(event: Event): boolean;
14
15
  }
15
16
 
16
- declare const constructor: {
17
- (obj?: any): Emitter;
18
- new (obj?: any): Emitter;
17
+ declare const Emitter: {
18
+ (obj?: object): Emitter;
19
+ new (obj?: object): Emitter;
19
20
  };
20
21
 
21
- export = constructor;
22
+ export = Emitter;
@@ -1,21 +1,24 @@
1
1
  {
2
2
  "name": "@types/component-emitter",
3
- "version": "1.2.6",
3
+ "version": "1.2.10",
4
4
  "description": "TypeScript definitions for component-emitter",
5
5
  "license": "MIT",
6
6
  "contributors": [
7
7
  {
8
8
  "name": "Peter Snider",
9
- "url": "https://github.com/psnider"
9
+ "url": "https://github.com/psnider",
10
+ "githubUsername": "psnider"
10
11
  }
11
12
  ],
12
13
  "main": "",
14
+ "types": "index.d.ts",
13
15
  "repository": {
14
16
  "type": "git",
15
- "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
17
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
18
+ "directory": "types/component-emitter"
16
19
  },
17
20
  "scripts": {},
18
21
  "dependencies": {},
19
- "typesPublisherContentHash": "dbcbb2cc1cc2f2f2e678c2ea3fa632cf225b16702009df1cd0b50d65c8adb7e7",
20
- "typeScriptVersion": "2.0"
22
+ "typesPublisherContentHash": "446bfc6b04cc0bdf3afbaa65ac393c5c9056ab15d158199b96d266059c762403",
23
+ "typeScriptVersion": "3.1"
21
24
  }