• Builds a filter that filters mutations by given types.

    Parameters

    • mutations: (string | RegExp)[]

      Mutation types that should trigger persisting.

    Returns Filter