From daa39c193a9414e2f1deac5ac99b5725594aee97 Mon Sep 17 00:00:00 2001 From: jin Date: Sun, 19 Nov 2023 18:24:31 +0300 Subject: [PATCH] $mol_const: better formatting in dev tools --- const/const.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/const/const.ts b/const/const.ts index e0e1a25cf1d..36238e96aff 100644 --- a/const/const.ts +++ b/const/const.ts @@ -8,6 +8,7 @@ namespace $ { const getter = <{ () : Value , '()' : Value }> ( () => value ) getter['()'] = value ;(getter as any)[ Symbol.toStringTag ] = value + ;(getter as any )[ $mol_dev_format_head ] = ()=> $mol_dev_format_span( {} , '()=> ', $mol_dev_format_auto( value ) ) return getter } }