mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-09 13:44:04 +02:00
wip
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user