array of number returning strings

Hey,
I've defined an array of number in my schema:
price: numeric('price', { precision: 10 }).array()

The problem is that when I retrieve the value, it's actually typed as an array of string: price: string[]
How comes? How can I get the right type? (number[])
When I hover on the column declaration on my schema, it shows this: see capture
Why is the data: string[]?
Screenshot_2024-07-21_at_16.59.33.png
Was this page helpful?