6 lines
80 B
TypeScript
6 lines
80 B
TypeScript
export function newState<T>(s: T) {
|
|
const state = $state(s);
|
|
|
|
return state;
|
|
}
|