We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently it's not possible to create an accurate interface for a composition function that returns a readonly(someObject).
readonly(someObject)
For example
interface QuantumDocument { documentState: ??? } function useQuantumDocument(): QuantumDocument { const documentState = reactive({ }); // code code code return { documentState: readonly(documentState) // return a readonly version of it } }
I propose simply exposing the DeepReadonly<T> type.
DeepReadonly<T>
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What problem does this feature solve?
Currently it's not possible to create an accurate interface for a composition function that returns a
readonly(someObject)
.For example
What does the proposed API look like?
I propose simply exposing the
DeepReadonly<T>
type.The text was updated successfully, but these errors were encountered: