Files
Kazuaki Matsuo d05423e77d fix(base-driver): apply initial session timeouts (#22983)
* refactor(base-driver): share standard timeout value validation

Refs #22966 (F21).

* fix(base-driver): apply initial session timeouts

Refs #22966 (F21). Initialize local timeout state before driver backend startup.

* test(base-driver): cover initial session timeout state

Refs #22966 (F21). Covers nulls, bounds, invalid inputs, readback, defaults, and backend setter overrides.

* refactor(types): export the existing Timeouts type

* refactor(base-driver): reuse the shared Timeouts type

Use Partial<Timeouts> for initial session timeout state.

Validation: TypeScript build, base-driver type tests, and targeted lint/format checks passed.

* refactor(base-driver): share timeout mapping across initialization loops

* refactor(base-driver): normalize reset options in a loop

* refactor(base-driver): extract session preparation helpers

* fix(base-driver): identify timeout type in validation errors

* fix(base-driver): show invalid timeout values in errors

* refactor(base-driver): simplify timeout update mapping

* refactor(base-driver): centralize timeout metadata in timeout module

Share standard timeout names, local fields, and setters with session initialization. Reuse keyof Timeouts for validation. Refs #22966.

* refactor(base-driver): reuse timeout metadata for initial session state

Remove the duplicate timeout mapping from driver.ts. Preserve direct field initialization before backend startup. Validation: 578 base-driver tests, TypeScript build, type tests, and targeted lint/format checks passed.

* fix(types): allow partial initial timeout capabilities
2026-10-15 09:16:57 +09:00
..
2026-10-09 17:41:46 +00:00
2026-10-09 17:41:46 +00:00
…

@appium/types

A collection of TypeScript type declarations used across various Appium packages.

Warning

This is a work-in-progress; expect breaking changes!

Install

npm install @appium/types -D

Note

  • The sources are .ts files, not .d.ts files. This allows other packages in the root TypeScript "project" to define a dependency upon this one, and enables incremental builds an "watch" mode.
  • If there is a way to switch to .d.ts files and configure this package to work in our "project" context without needing to actually "emit" anything, then we should do that instead. Help accepted!
  • lib/appium-config.ts is generated by this package from @appium/schema, but is under version control to avoid chicken-or-egg build problems.

License

Apache-2.0