jmap-kit
    Preparing search index...
    • Transforms a serialised request using the post-serialization transformers

      Parameters

      • context: PluginContext<"post-serialization">

        The plugin context containing the data to transform and execution context

      • transformers: {
            hook: "post-serialization";
            name: string;
            trigger: PluginTrigger;
            transform(
                this: void,
                context: PluginContext<"post-serialization">,
            ): MaybePromise<
                { body: string
                | Blob
                | ArrayBuffer
                | File; headers: Headers },
            >;
        }[]

        The array of transformers to execute

      Returns Promise<{ body: string | Blob | ArrayBuffer | File; headers: Headers }>

      The transformed PluginData after all transformers have run

      This function is structurally identical to transformBuild but has different type parameters. TypeScript's handling of conditional types makes it difficult to create a single function that handles both cases with proper type safety.