Skip to main content

createManifestPatchDecoder

Callable

  • createManifestPatchDecoder(manifest: ThemeManifest): (input: Readonly<Record<string, unknown>>) => Readonly<Record<string, unknown>>

  • DOM-free mirror of InspectedTheme.patch encoding: validates a source patch against manifest metadata and returns the canonical decoded value of every source it writes.


    Parameters

    Returns (input: Readonly<Record<string, unknown>>) => Readonly<Record<string, unknown>>

      • (input: Readonly<Record<string, unknown>>): Readonly<Record<string, unknown>>
      • Parameters

        • input: Readonly<Record<string, unknown>>

        Returns Readonly<Record<string, unknown>>