Generate actor type declarations (dfx generate) without creating a canister first

Hey just checking in on this, I was also reading through this similar post -

…which seems to have a Rust-specific solution and was wondering if this could be generalized.