Skip to content

Commit

Permalink
$mol_const: better formatting in dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Nov 19, 2023
1 parent 2ae30d4 commit daa39c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions const/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit daa39c1

Please sign in to comment.