islamic-inheritance-calculator
Version:
A simple library for calculating Islamic inheritance shares (experimental)
17 lines (16 loc) • 384 B
TypeScript
export interface Heirs {
spouse?: 'husband' | 'wife';
children?: boolean;
sons?: number;
daughters?: number;
father?: boolean;
mother?: boolean;
siblings?: number;
fullBrothers?: number;
fullSisters?: number;
grandsons?: number;
}
export interface InheritanceResult {
shares: Record<string, number | string>;
remainingEstate: number;
}