Delay typespec compilation to after expansion