OpenRTB Typings is a type definition package for the OpenRTB (Real-Time Bidding) specification. By using TypeScript, it ensures type safety during development and helps with early bug detection.
- Type definitions for OpenRTB v2.5
- Type definitions for OpenRTB v2.6
- Enum definitions for IAB Categories
You can install type definitions for each version separately:
v2.5:
npm install @openrtb-typings/v2.5
v2.6:
npm install @openrtb-typings/v2.6
IAB Category:
npm install @openrtb-typings/iab-category
For bundle size optimization, v2.5 and v2.6 packages are designed to work with the IAB Category package using the 'as const' pattern. To utilize full functionality, it is recommended to install related packages together as follows:
v2.5:
npm install @openrtb-typings/v2.5 @openrtb-typings/iab-category
v2.6:
npm install @openrtb-typings/v2.6 @openrtb-typings/iab-category
For detailed usage specifications of each package, please refer to the following documentation: