Typeberry by Fluffy Labs - v0.5.0
    Preparing search index...

    Function copyAndUpdateState

    • A rather test-only function to copy some fields from the state, apply an update to them (excluding services) and return a new plain object.

      NOTE: if looking something more sophisticated try InMemoryState representation.

      Type Parameters

      Parameters

      • preState: T
      • stateUpdate: Partial<T>

      Returns { [K in string | number | symbol]: T[K] }