Assuming you already have an opaque type for F32Vector, you can write this type:
(require/typed ffi/vector
[f32vector (Real * -> F32Vector)])
If you don't have an opaque type yet, you can import it as follows:
(require/typed ffi/vector
[
Of course, you can combine the sentences above into one require/typed.
: Typed Racket, , ->*, , ( ). , typed/ffi/vector .