Mirror: 🎩 A tiny but capable push & pull stream library for TypeScript and Flow

fix: Add missing Symbol.observable typings to build output (#168)

Changed files
+13 -6
.changeset
src
+5
.changeset/fresh-tips-yell.md
···
+
---
+
'wonka': patch
+
---
+
+
Add missing `Symbol.observable` global declaration back to typings.
-6
src/helpers.ts
···
import { TalkbackFn, TeardownFn, Start, Push, SignalKind } from './types';
-
declare global {
-
interface SymbolConstructor {
-
readonly observable: symbol;
-
}
-
}
-
/** Placeholder {@link TeardownFn | teardown functions} that's a no-op.
* @see {@link TeardownFn} for the definition and usage of teardowns.
* @internal
+8
src/observable.ts
···
import { Source, SignalKind, TalkbackKind } from './types';
import { push, start, talkbackPlaceholder, observableSymbol } from './helpers';
+
// NOTE: This must be placed in an exported file for `rollup-plugin-dts`
+
// to include it in output typings files
+
declare global {
+
interface SymbolConstructor {
+
readonly observable: symbol;
+
}
+
}
+
/** A definition of the ES Observable Subscription type that is returned by
* {@link Observable.subscribe}
*