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

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Phil Pluckthun and committed by
GitHub
f028aa31 cb59c2aa

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