ava/types/subscribable.d.cts
Mark Wubben 3ebe65cbeb
Re-organize types for maximum compatibility
Add shims for TypeScript's 'node' module resolution algorithm. The exports map is only used with the `node16` algorithm.

Write types in CommonJS, so they can be exported from ESM files. The other way around is prone to, at the very least, confusing warnings.
2022-09-25 16:31:54 +02:00

6 lines
113 B
TypeScript

export type Subscribable = {
subscribe(observer: {
error(error: any): void;
complete(): void;
}): void;
};