• A rule to match system or platform information, providing vendor and type information.

    Parameters

    • vendor: null | string

      The device make/vendor to use when there's a match.

    • type: null | string

      The type of device, e.g. 'mobile' or 'tablet'.

    • expr: string

      The token expression to use to determine a match. If there is a match, the matched name will be used as the model unless model is explicit.

    • model: Maybe<string> = undefined

      If defined, will be used as the model string instead of the matched expression name.

    Returns DeviceInfoRule