Function getExportsForProps

  • Find an object in a module that has all the given properties. You will usually not need this function.

    Type Parameters

    • T
    • P extends PropertyKey = keyof T

    Parameters

    • m: unknown

      Module to search

    • props: P[]

      Array of prop names

    Returns T | undefined

    Object that contains all the given properties (and any others), or undefined if not found