Sanity Library Reference Docs
    Preparing search index...

    Function stegaClean

    • Can take a result JSON from a const {result} = client.fetch(query, params, {filterResponse: false}) and remove all stega-encoded data from it. If the result type has strings branded as StegaString (by ClientReturnStega or stegaBrand()), the brand is stripped and the original string type is restored.

      Type Parameters

      • Result = unknown

      Parameters

      Returns StegaCleaned<Result>