Skip to content

Commit 65860a1

Browse files
committed
refactor(format-po): remove unnecessary type cast
headerOrder is a public property on PoFile, no cast needed.
1 parent b87a46c commit 65860a1

File tree

1 file changed

+1
-2
lines changed
  • packages/format-po/src

1 file changed

+1
-2
lines changed

packages/format-po/src/po.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,7 @@ export function formatter(options: PoFormatterOptions = {}): CatalogFormatter {
318318
ctx.locale,
319319
options.customHeaderAttributes
320320
)
321-
// accessing private property
322-
;(po as any).headerOrder = Object.keys(po.headers)
321+
po.headerOrder = Object.keys(po.headers)
323322
}
324323

325324
po.items = serialize(catalog, options)

0 commit comments

Comments
 (0)