Skip to content

Commit

Permalink
Merge pull request #2 from TheoPierne/Release-v1.0.2
Browse files Browse the repository at this point in the history
types(PythonLikeEvent): Fixed types declaration
  • Loading branch information
TheoPierne authored Aug 20, 2023
2 parents f689a74 + 4b64b56 commit b048c1c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.0.2
## Types:
- Fixed types declaration
# 1.0.1
## Bug fixes:
- Fixed types file specification in package.json
Expand Down
10 changes: 8 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import type { EventEmitter } from 'node:events';

export class PythonLikeEvent {
declare class PythonLikeEvent {
private constructor();
private event: EventEmitter;
private _flag: boolean;
public set(): void;
public isSet(): boolean;
public clear(): void;
public wait(timeout: number|null): Promise<boolean>;
}
}

declare namespace PythonLikeEvent {
const PythonLikeEvent: PythonLikeEvent;
}

export = PythonLikeEvent;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-threading-event",
"version": "1.0.1",
"version": "1.0.2",
"description": "An implementation of the threading.Event Python package",
"main": "src/index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit b048c1c

Please sign in to comment.