The right of election of a surviving spouse or domestic partner and the rights of the surviving spouse or domestic partner may be waived, wholly or partially, before or after marriage before, on or after May 28, 1980, by a written contract, agreement or waiver, signed by the party waiving after fair disclosure. Unless it provides to the contrary, a waiver of "all rights" (or equivalent language) in the property or estate of a present or prospective spouse or domestic partner or a complete property settlement entered into after or in anticipation of separation, divorce or termination of a domestic partnership is a waiver of all rights to an elective share by each spouse or domestic partner in the property of the other and a renunciation by each of all benefits which would otherwise pass to him from the other by intestate succession or by virtue of the provisions of any will executed before the waiver or property settlement.
N.J.S. § 3B:8-10