Skip to content

v0.8.0

Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 30 Dec 06:39

Breaking

  • Move the strongly-typed .Typed types into the main TypeScript types (#69) df35ea6

Migrate:

-const emitter = new Emittery.Typed<{value: string}, 'open' | 'close'>();
+const emitter = new Emittery<
+	{
+		value: string,
+		open: undefined,
+		close: undefined
+	}
+>();

Improvements

  • Allow async listeners in the TypeScript types (#70) 7db4644

v0.7.2...v0.8.0