Skip to content

Commit

Permalink
fix: styling of class static property
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Sep 21, 2024
1 parent cacbc4c commit c1b9610
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { obj } from './values.js'
console.log(
dump(obj, {
styles: themes.default,
inspectStaticMembers: true,
collapse: ['DateTime'],
})
)
2 changes: 1 addition & 1 deletion formatters/console/printers/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const ConsolePrinters: TokenPrinters = {
let prefix = ''
if (formatter.context.isStaticMember) {
const prefixStyles = formatter.styles.objectKeyPrefix
prefix = prefixStyles('static')
prefix = `${prefixStyles('static')} `
}

return indent + prefix + styles(value) + ': '
Expand Down

0 comments on commit c1b9610

Please sign in to comment.