Skip to content

cupertino-files / PAGE_NUMBER_FORMATS

Variable: PAGE_NUMBER_FORMATS

const PAGE_NUMBER_FORMATS: object

Defined in: src/tswp/fields.ts:87

Page-number formats this library will write.

Deliberately short. Apple's number_format enum certainly has more members — the UI offers roman numerals in both cases, letters, and more — but only these two appear in any file examined, each with its name written alongside so the pairing is not inferred. A format outside this list is written by passing both halves explicitly to buildNumberAttachment.

Type Declaration

decimal

readonly decimal: object

decimal.code

readonly code: 0 = 0

decimal.name

readonly name: "decimal" = "decimal"

lower-roman

readonly lower-roman: object

lower-roman.code

readonly code: 2 = 2

lower-roman.name

readonly name: "lower-roman" = "lower-roman"

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.