• Preparing search index...
  • The search index is not available
Documentation - v0.23.3
  • Documentation
  • @mtcute/dispatcher
  • filters
  • not

Function not

  • not<Base, Mod, State extends object>(
        fn: filters.UpdateFilter<Base, Mod, State>,
    ): filters.UpdateFilter<Base, Invert<Base, Mod>, State>
  • Invert a filter by applying a NOT logical operation: not(fn) = NOT fn

    Note: This also inverts type modification, i.e. if the base is { field: string | number | null } and the modification is { field: string }, then the negated filter will have inverted modification { field: number | null }

    Type Parameters

    • Base
    • Mod
    • State extends object

    Parameters

    • fn: filters.UpdateFilter<Base, Mod, State>

      Filter to negate

    Returns filters.UpdateFilter<Base, Invert<Base, Mod>, State>

    • Defined in packages/dispatcher/src/filters/logic.ts:22

Settings

Member Visibility
Documentation - v0.23.3
  • Loading...

Generated using TypeDoc