diff --git a/CHANGELOG.md b/CHANGELOG.md index b0a0dc8..512de42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.0.2 +## Types: +- Fixed types declaration # 1.0.1 ## Bug fixes: - Fixed types file specification in package.json diff --git a/index.d.ts b/index.d.ts index f3142cf..953666b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,6 +1,6 @@ import type { EventEmitter } from 'node:events'; -export class PythonLikeEvent { +declare class PythonLikeEvent { private constructor(); private event: EventEmitter; private _flag: boolean; @@ -8,4 +8,10 @@ export class PythonLikeEvent { public isSet(): boolean; public clear(): void; public wait(timeout: number|null): Promise; -} \ No newline at end of file +} + +declare namespace PythonLikeEvent { + const PythonLikeEvent: PythonLikeEvent; +} + +export = PythonLikeEvent; \ No newline at end of file diff --git a/package.json b/package.json index fd3b9df..56f5890 100644 --- a/package.json +++ b/package.json @@ -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",