From 3c284f543e500e2a3a1ad2a896a6b6ec5a82a7b8 Mon Sep 17 00:00:00 2001 From: David Luna Date: Wed, 17 Jan 2024 23:37:13 +0100 Subject: [PATCH] chore: fix export for typescript --- lib/types.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/types.d.ts b/lib/types.d.ts index 8218cfc..95a9756 100644 --- a/lib/types.d.ts +++ b/lib/types.d.ts @@ -32,7 +32,7 @@ export declare type OperatorFunction = UnaryFunction, Observ export declare type ObservableInput = Observable | PromiseLike | ArrayLike; export declare type ObservedValueOf = O extends ObservableInput ? T : never; -export type { createObsevable } from './observable'; +export { createObsevable } from './observable'; export declare class Observable { constructor(subscribeFn: SubscribeFunction); @@ -157,9 +157,9 @@ type EventOrParams = T extends EventEmitterLike ? Parameters : Ev export declare function fromEvent(target: T, eventName: string): Observable>; -export type { fromEventPattern } from './factories/fromEventPattern'; +export { fromEventPattern } from './factories/fromEventPattern'; -export type { interval } from './factories/interval'; +export { interval } from './factories/interval'; export declare function merge(a: Observable, b: Observable): Observable; export declare function merge(a: Observable, b: Observable, c: Observable): Observable; @@ -168,24 +168,24 @@ export declare function merge(a: Observable, b: Observable, export declare function of(...inputs: unknown[]): Observable; -export type { sequence } from './factories/sequence'; +export { sequence } from './factories/sequence'; -export type { timer } from './factories/timer'; +export { timer } from './factories/timer'; // operators -export type { filter } from './operators/filter'; +export { filter } from './operators/filter'; -export type { map } from './operators/map'; +export { map } from './operators/map'; -export type { mergeMap } from './operators/mergeMap'; +export { mergeMap } from './operators/mergeMap'; // TODO: check to move this one export declare function switchMap>(project: (value: T, index: number) => R): OperatorFunction>; -export type { take } from './operators/take'; +export { take } from './operators/take'; -export type { takeWhile } from './operators/takeWhile'; +export { takeWhile } from './operators/takeWhile'; export declare function withLatestFrom(a: Observable, b: Observable): OperatorFunction; export declare function withLatestFrom(a: Observable, b: Observable, c: Observable): OperatorFunction;