···273273274274## Config API
275275276276-You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/types/config.ts) interface.
276276+You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/types/config.d.ts) interface.
277277278278<!--@include: ../examples.md-->
279279<!--@include: ../sponsors.md-->
···163163 */
164164 plugins?: ReadonlyArray<UserPlugins['name'] | UserPlugins>;
165165 /**
166166- * Regenerate the client when the input file changes?
166166+ * Regenerate the client when the input file changes? You can alternatively
167167+ * pass a numeric value for the interval in ms.
167168 *
168169 * @default false
169170 */
···178179 */
179180 enabled?: boolean;
180181 /**
181181- * How often should we attempt to detect the input file change?
182182+ * How often should we attempt to detect the input file change? (in ms)
182183 *
183184 * @default 1000
184185 */
185186 interval?: number;
187187+ /**
188188+ * How long will we wait before the request times out?
189189+ *
190190+ * @default 60_000
191191+ */
192192+ timeout?: number;
186193 };
187194 /**
188195 * @deprecated
···258265 ExtractArrayOfObjects<ReadonlyArray<ClientPlugins>, { name: string }>,
259266 'name'
260267 >;
261261- watch: Extract<UserConfig['watch'], object>;
268268+ watch: Extract<Required<UserConfig['watch']>, object>;
262269 };
+18
packages/openapi-ts/src/types/types.d.ts
···33export namespace LegacyIR {
44 export type LegacyOperation = Operation;
55}
66+77+export interface WatchValues {
88+ /**
99+ * Headers to be sent with each HEAD and/or GET request. This effectively
1010+ * serves as a mechanism resolver because setting certain headers will opt
1111+ * into comparing the specifications using that method.
1212+ */
1313+ headers: Headers;
1414+ /**
1515+ * Can we send a HEAD request instead of fetching the whole specification?
1616+ * This value will be set after the first successful fetch.
1717+ */
1818+ isHeadMethodSupported?: boolean;
1919+ /**
2020+ * String content of the last successfully fetched specification.
2121+ */
2222+ lastValue?: string;
2323+}