replugged

    Function getExportsForProps

    • Retrieves the first export from a module that contains all the specified properties.

      Type Parameters

      • T

        The expected type of the export that matches the specified properties.

      • P extends PropertyKey = keyof T

        The type of the property keys to look for.

      Parameters

      • m: unknown

        The module to search through.

      • props: P[]

        An array of property keys to look for in the exports.

      • OptionalbyPrototype: boolean

        Whether to search only in the prototype of the exports. Defaults to false.

      Returns T | undefined

      The first export that contains all the specified properties, or undefined if none is found.

    MMNEPVFCICPMFPCPTTAAATR