@hazae41/glacier
Advanced tools
Comparing version 2.0.0-111 to 2.0.0-112
import { ReactQuery } from '../../types/query.js'; | ||
interface RetrySettings { | ||
init?: number; | ||
base?: number; | ||
max?: number; | ||
readonly init?: number; | ||
readonly base?: number; | ||
readonly max?: number; | ||
} | ||
@@ -8,0 +8,0 @@ /** |
@@ -1,10 +0,9 @@ | ||
import { Result } from '@hazae41/result'; | ||
import { State } from './state.js'; | ||
type Indexer<D, F> = (states: States<D, F>) => Promise<Result<void, Error>>; | ||
type Indexer<D, F> = (states: States<D, F>) => Promise<void>; | ||
interface States<D, F> { | ||
current: State<D, F>; | ||
previous?: State<D, F>; | ||
readonly current: State<D, F>; | ||
readonly previous?: State<D, F>; | ||
} | ||
export type { Indexer, States }; |
@@ -6,20 +6,20 @@ import { DataInit, Data } from '../fetched/data.js'; | ||
interface RawState1<D = unknown, F = unknown> { | ||
version?: undefined; | ||
data?: D; | ||
error?: F; | ||
time: number; | ||
cooldown?: number; | ||
expiration?: number; | ||
readonly version?: undefined; | ||
readonly data?: D; | ||
readonly error?: F; | ||
readonly time: number; | ||
readonly cooldown?: number; | ||
readonly expiration?: number; | ||
} | ||
interface RawState2<D = unknown, F = unknown> { | ||
version: 2; | ||
data?: DataInit<D>; | ||
error?: FailInit<F>; | ||
time: number; | ||
cooldown?: number; | ||
expiration?: number; | ||
readonly version: 2; | ||
readonly data?: DataInit<D>; | ||
readonly error?: FailInit<F>; | ||
readonly time: number; | ||
readonly cooldown?: number; | ||
readonly expiration?: number; | ||
} | ||
interface StateAndAborter<D, F> { | ||
state: State<D, F>; | ||
aborter?: AbortController; | ||
readonly state: State<D, F>; | ||
readonly aborter?: AbortController; | ||
} | ||
@@ -26,0 +26,0 @@ type State<D, F> = RealState<D, F> | FakeState<D, F>; |
{ | ||
"type": "module", | ||
"name": "@hazae41/glacier", | ||
"version": "2.0.0-111", | ||
"version": "2.0.0-112", | ||
"author": "hazae41", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
574314
6127