@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 +1 -1
- component-emitter/README.md +4 -4
- component-emitter/index.d.ts +13 -12
- component-emitter/package.json +8 -5
component-emitter/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
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
|
component-emitter/README.md
CHANGED
|
@@ -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://
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/component-emitter.
|
|
9
9
|
|
|
10
|
-
Additional Details
|
|
11
|
-
* Last updated:
|
|
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
|
|
16
|
+
These definitions were written by [Peter Snider](https://github.com/psnider).
|
component-emitter/index.d.ts
CHANGED
|
@@ -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
|
|
4
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
5
|
|
|
6
|
+
// TypeScript Version: 2.2
|
|
6
7
|
|
|
7
|
-
interface Emitter {
|
|
8
|
-
on(event:
|
|
9
|
-
once(event:
|
|
10
|
-
off(event?:
|
|
11
|
-
emit(event:
|
|
12
|
-
listeners(event:
|
|
13
|
-
hasListeners(event:
|
|
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
|
|
17
|
-
(obj?:
|
|
18
|
-
new (obj?:
|
|
17
|
+
declare const Emitter: {
|
|
18
|
+
(obj?: object): Emitter;
|
|
19
|
+
new (obj?: object): Emitter;
|
|
19
20
|
};
|
|
20
21
|
|
|
21
|
-
export =
|
|
22
|
+
export = Emitter;
|
component-emitter/package.json
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/component-emitter",
|
|
3
|
-
"version": "1.2.
|
|
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://
|
|
17
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
18
|
+
"directory": "types/component-emitter"
|
|
16
19
|
},
|
|
17
20
|
"scripts": {},
|
|
18
21
|
"dependencies": {},
|
|
19
|
-
"typesPublisherContentHash": "
|
|
20
|
-
"typeScriptVersion": "
|
|
22
|
+
"typesPublisherContentHash": "446bfc6b04cc0bdf3afbaa65ac393c5c9056ab15d158199b96d266059c762403",
|
|
23
|
+
"typeScriptVersion": "3.1"
|
|
21
24
|
}
|