Sanity Library Reference Docs
    Preparing search index...

    Function stegaBrand

    • Beta

      Marks strings in an already fetched query result as potentially containing stega-encoded data, by re-typing them as StegaString. Comparing branded strings to string literals is a type error until they're cleaned with stegaClean(), which recovers the original type.

      This is an identity function, it only changes the type of the input, not its value. Prefer passing ClientReturnStega as the first generic to client.fetch when possible, and use this function for data that has already been fetched.

      Type Parameters

      • Result

      Parameters

      Returns StegaBranded<Result>