1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-09 13:44:04 +02:00
This commit is contained in:
syuilo
2025-03-10 11:21:17 +09:00
parent 05078e9c14
commit 9842eb2eeb
8 changed files with 9 additions and 9 deletions

View File

@@ -752,7 +752,7 @@ export class ColdDeviceStorage {
* 特定のキーの、簡易的なgetter/setterを作ります
* 主にvue場で設定コントロールのmodelとして使う用
*/
public static makeGetterSetter<K extends keyof typeof ColdDeviceStorage.default>(key: K) {
public static model<K extends keyof typeof ColdDeviceStorage.default>(key: K) {
// TODO: VueのcustomRef使うと良い感じになるかも
const valueRef = ColdDeviceStorage.ref(key);
return {