@w11k/rx-ninja
    Preparing search index...

    Function skipPathNil

    • Skips values which contains null or undefined for the given property path. Narrows the type of each property in the path from T | null | undefined to T.

      Example:

      const x: Observable<{ a: { b: number | null | undefined} }>;

      const z: Observable<{ a: { b: number } }> = x.pipe(
      skipPathNil('a', 'b')
      );

      value { a: { b: 1 } } will pass through

      value { a: null } will be skipped

      value { a: { b: undefined } } will be skipped

      With a path of just one property it does the same as skipPropertyNil.

      Overloaded with up to 5 properties building the path to check.

      Type Parameters

      • O extends object
      • P1 extends string | number | symbol

      Parameters

      Returns (obs: Observable<O>) => Observable<PathNotNil_1<O, P1>>

    • Skips values which contains null or undefined for the given property path. Narrows the type of each property in the path from T | null | undefined to T.

      Example:

      const x: Observable<{ a: { b: number | null | undefined} }>;

      const z: Observable<{ a: { b: number } }> = x.pipe(
      skipPathNil('a', 'b')
      );

      value { a: { b: 1 } } will pass through

      value { a: null } will be skipped

      value { a: { b: undefined } } will be skipped

      With a path of just one property it does the same as skipPropertyNil.

      Overloaded with up to 5 properties building the path to check.

      Type Parameters

      • O extends object
      • P1 extends string | number | symbol
      • P2 extends string | number | symbol

      Parameters

      Returns (obs: Observable<O>) => Observable<PathNotNil_2<O, P1, P2>>

    • Skips values which contains null or undefined for the given property path. Narrows the type of each property in the path from T | null | undefined to T.

      Example:

      const x: Observable<{ a: { b: number | null | undefined} }>;

      const z: Observable<{ a: { b: number } }> = x.pipe(
      skipPathNil('a', 'b')
      );

      value { a: { b: 1 } } will pass through

      value { a: null } will be skipped

      value { a: { b: undefined } } will be skipped

      With a path of just one property it does the same as skipPropertyNil.

      Overloaded with up to 5 properties building the path to check.

      Type Parameters

      • O extends object
      • P1 extends string | number | symbol
      • P2 extends string | number | symbol
      • P3 extends string | number | symbol

      Parameters

      Returns (obs: Observable<O>) => Observable<PathNotNil_3<O, P1, P2, P3>>

    • Skips values which contains null or undefined for the given property path. Narrows the type of each property in the path from T | null | undefined to T.

      Example:

      const x: Observable<{ a: { b: number | null | undefined} }>;

      const z: Observable<{ a: { b: number } }> = x.pipe(
      skipPathNil('a', 'b')
      );

      value { a: { b: 1 } } will pass through

      value { a: null } will be skipped

      value { a: { b: undefined } } will be skipped

      With a path of just one property it does the same as skipPropertyNil.

      Overloaded with up to 5 properties building the path to check.

      Type Parameters

      • O extends object
      • P1 extends string | number | symbol
      • P2 extends string | number | symbol
      • P3 extends string | number | symbol
      • P4 extends string | number | symbol

      Parameters

      Returns (obs: Observable<O>) => Observable<PathNotNil_4<O, P1, P2, P3, P4>>

    • Skips values which contains null or undefined for the given property path. Narrows the type of each property in the path from T | null | undefined to T.

      Example:

      const x: Observable<{ a: { b: number | null | undefined} }>;

      const z: Observable<{ a: { b: number } }> = x.pipe(
      skipPathNil('a', 'b')
      );

      value { a: { b: 1 } } will pass through

      value { a: null } will be skipped

      value { a: { b: undefined } } will be skipped

      With a path of just one property it does the same as skipPropertyNil.

      Overloaded with up to 5 properties building the path to check.

      Type Parameters

      • O extends object
      • P1 extends string | number | symbol
      • P2 extends string | number | symbol
      • P3 extends string | number | symbol
      • P4 extends string | number | symbol
      • P5 extends string | number | symbol

      Parameters

      Returns (obs: Observable<O>) => Observable<PathNotNil_5<O, P1, P2, P3, P4, P5>>