spread and generics - arktype