Skip to content

Commit

Permalink
Rename Observable related to .ts
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Jun 29, 2024
1 parent 9efd37d commit 2ab4b4a
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/iter-fest/src/Observable.fromOf.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
type Observer,
type StartFunction,
type Subscription
} from './Observable.js';
} from './Observable.ts';
import type { JestMockOf } from './private/JestMockOf.js';

describe('comprehensive', () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/iter-fest/src/Observable.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
type StartFunction,
type SubscriberFunction,
type Subscription
} from './Observable.js';
import { SymbolObservable } from './SymbolObservable.js';
} from './Observable.ts';
import { SymbolObservable } from './SymbolObservable.ts';
import type { JestMockOf } from './private/JestMockOf.js';

describe('comprehensive', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/iter-fest/src/Observable.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-expect-error core-js is not typed.
import CoreJSObservable from 'core-js-pure/full/observable/index.js';

import { SymbolObservable } from './SymbolObservable.js';
import { SymbolObservable } from './SymbolObservable.ts';

export interface SubscriptionObserver<T> {
/** Sends the next value in the sequence */
Expand Down
6 changes: 3 additions & 3 deletions packages/iter-fest/src/observableFromAsync.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { CompleteFunction, ErrorFunction, NextFunction, Observable, StartFunction } from './Observable.js';
import { observableFromAsync } from './observableFromAsync.js';
import type { CompleteFunction, ErrorFunction, NextFunction, Observable, StartFunction } from './Observable.ts';
import { observableFromAsync } from './observableFromAsync.ts';

import { type JestMockOf } from './private/JestMockOf.js';
import withResolvers from './private/withResolvers.js';
import withResolvers from './private/withResolvers.ts';

describe('comprehensive', () => {
let complete: JestMockOf<CompleteFunction>;
Expand Down
2 changes: 1 addition & 1 deletion packages/iter-fest/src/observableFromAsync.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Observable } from './Observable.js';
import { Observable } from './Observable.ts';

export function observableFromAsync<T>(iterable: AsyncIterable<T>): Observable<T> {
return new Observable(subscriber => {
Expand Down
6 changes: 3 additions & 3 deletions packages/iter-fest/src/observableSubscribeAsReadable.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Observable, type SubscriberFunction, type SubscriptionObserver } from './Observable.js';
import { observableSubscribeAsReadable } from './observableSubscribeAsReadable.js';
import { Observable, type SubscriberFunction, type SubscriptionObserver } from './Observable.ts';
import { observableSubscribeAsReadable } from './observableSubscribeAsReadable.ts';
import type { JestMockOf } from './private/JestMockOf.js';
import hasResolved from './private/hasResolved.js';
import hasResolved from './private/hasResolved.ts';

describe('comprehensive', () => {
let observable: Observable<number>;
Expand Down
4 changes: 2 additions & 2 deletions packages/iter-fest/src/observableValues.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Observable, type SubscriberFunction, type SubscriptionObserver } from './Observable.js';
import { observableValues } from './observableValues.js';
import { Observable, type SubscriberFunction, type SubscriptionObserver } from './Observable.ts';
import { observableValues } from './observableValues.ts';
import type { JestMockOf } from './private/JestMockOf.js';

describe('comprehensive', () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/iter-fest/src/observableValues.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Observable } from './Observable.js';
import { observableSubscribeAsReadable } from './observableSubscribeAsReadable.js';
import { readableStreamValues } from './readableStreamValues.js';
import { observableSubscribeAsReadable } from './observableSubscribeAsReadable.ts';
import { readableStreamValues } from './readableStreamValues.ts';

export function observableValues<T>(observable: Observable<T>): AsyncIterableIterator<T> {
const readable = observableSubscribeAsReadable(observable);
Expand Down
1 change: 1 addition & 0 deletions packages/iter-fest/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This configuration file is for VSCode only.
{
"compilerOptions": {
"allowImportingTsExtensions": true,
"esModuleInterop": true,
"jsx": "react",
"module": "ESNext",
Expand Down
1 change: 1 addition & 0 deletions packages/iter-fest/src/tsconfig.precommit.production.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"allowImportingTsExtensions": true,
"esModuleInterop": true,
"jsx": "react",
"module": "ESNext",
Expand Down
1 change: 1 addition & 0 deletions packages/iter-fest/src/tsconfig.precommit.test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"allowImportingTsExtensions": true,
"esModuleInterop": true,
"jsx": "react",
"module": "ESNext",
Expand Down

0 comments on commit 2ab4b4a

Please sign in to comment.