12 lines
282 B
TypeScript
12 lines
282 B
TypeScript
type Valuation = {
|
|
positions: { currentValue: unknown }[];
|
|
totals: { value: string };
|
|
};
|
|
|
|
export function isCompleteValuation(
|
|
snapshot: Valuation,
|
|
): boolean {
|
|
return Boolean(snapshot.totals) &&
|
|
snapshot.positions.every((position) => position.currentValue !== null);
|
|
}
|