Skip to content

Commit

Permalink
fix: Revert a patch release contents that was actually breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
Iku-turso committed May 17, 2023
1 parent edc0724 commit 22628a3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 62 deletions.
16 changes: 8 additions & 8 deletions packages/mobx-utils/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { IComputedValue } from 'mobx';

export type IAsyncComputed<TValue, TPending> = {
value: IComputedValue<TValue | TPending>;
export type IAsyncComputed<T> = {
value: IComputedValue<T>;
pending: IComputedValue<boolean>;
invalidate: () => void;
};

type AsyncComputedParams<TValue, TPending> = {
getValueFromObservedPromise: () => Promise<TValue>;
valueWhenPending?: TValue | TPending;
type AsyncComputedParams<T> = {
getValueFromObservedPromise: () => Promise<T>;
valueWhenPending?: T;
betweenUpdates?: 'show-pending-value' | 'show-latest-value';
};

export function asyncComputed<TValue, TPending = undefined>(
configuration: AsyncComputedParams<TValue, TPending>,
): IAsyncComputed<TValue, TPending>;
export function asyncComputed<T>(
configuration: AsyncComputedParams<T>,
): IAsyncComputed<T>;
53 changes: 0 additions & 53 deletions packages/mobx-utils/index.test-d.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/mobx-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"scripts": {
"build": "ogre-tools-build-js",
"test": "ogre-tools-test",
"test:types": "tsd",
"code-style:verify": "ogre-tools-verify-code-style",
"code-style:fix": "ogre-tools-fix-code-style"
},
Expand Down

0 comments on commit 22628a3

Please sign in to comment.