Skip to content

cupertino-files / registerTypes

Function: registerTypes()

registerTypes(mapping, app?): void

Defined in: src/tsp/registry.ts:808

Register additional type-ID → message-name mappings.

ts
registerTypes({ 10176: "TP.SomeNewArchive" }, "pages");

Registrations are process-wide and take precedence over the bundled tables, so they can also correct an entry that a newer app changed.

Parameters

mapping

Readonly<Record<number | string, string>>

app?

IWorkApp

Returns

void

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