# dateAfter Source: https://smartassertions.dev/matchers/dateAfter/ Index of every page: https://smartassertions.dev/llms.txt Matcher for a Date holding an instant later than the given one. Matchers are applied through assertObjectMatches, where they narrow the corresponding property type. ## Usage ```ts import { assertObjectMatches, dateAfter } from "@kensio/smartass"; const value: unknown = { dueAt: new Date("2026-06-01T00:00:00.000Z"), }; assertObjectMatches(value, { dueAt: dateAfter(new Date("2026-01-01T00:00:00.000Z")), }); // value is now narrowed to an object with a Date dueAt // { // dueAt: Date; // } ``` ## Source Source file: [`src/assert/date-after/date-after.match.ts`](https://github.com/KensioSoftware/smartass/blob/main/src/assert/date-after/date-after.match.ts)