15 lines
439 B
TypeScript
15 lines
439 B
TypeScript
import type { InstalledState } from './InstalledState';
|
|
import type { InstallingState } from './InstallingState';
|
|
import type { UpdatingState } from './UpdatingState';
|
|
export type PackageState = ({
|
|
state: 'installing';
|
|
} & InstallingState) | ({
|
|
state: 'restoring';
|
|
} & InstallingState) | ({
|
|
state: 'updating';
|
|
} & UpdatingState) | ({
|
|
state: 'installed';
|
|
} & InstalledState) | ({
|
|
state: 'removing';
|
|
} & InstalledState);
|