We consider the evolution of checks using the example of how vuex strict mode was thrown out of pinia and is now implemented at the level of static code analysis ( as const ) in pinia + ts.
In the last example, state only had simple refs. Of course, if there are nested objects, then as const will only work on the first level and deepReadolny will need to be slightly tweaked.
Structured content on the site - https://dmitrylavrik.ru/video/typescr...