I want to be able to run a custom validation on a specific type of document after the build has completed successfully. Ideally, we'd have access to the TypeScript type definition for the generated document at that time.