mirror of
https://github.com/appium/appium.git
synced 2026-10-23 00:59:18 +08:00
d6cca5175c
A thing we know about the `opts` object passed in to a driver constructor is that it does _not_ contain caps. This value is retained in `this.initialOpts`. Upon session creation, it _does_ contain caps. This adds a new type, `InitialOpts`, which is the first parameter to a driver. In the future, it may accept a type argument, as currently any extension-specific options (defined via schema in `package.json`) are not typed. Because `DriverOpts` is a superset of `InitialOpts`, this should not be a breaking change.