davstack icon indicating copy to clipboard operation
davstack copied to clipboard

Make the use() return a readonly value

Open s97712 opened this issue 1 year ago • 1 comments

The use() function currently allows its return value to be changed, which could result in improper updates.

To avoid this, the use() function should return a value that cannot be altered, ensuring it's not mistakenly updated.

We can implement this by following the Readonly type from type-fest or simply using the library.

s97712 avatar Jul 10 '24 22:07 s97712

Good idea, thought of it too +1

piscopancer avatar Dec 06 '24 20:12 piscopancer