Skip to content

Commit 1dbaee5

Browse files
committed
update jsdoc
1 parent 2bae55d commit 1dbaee5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/mockttp.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,11 @@ export type MockttpHttpsOptions = CAOptions & {
695695
* options will throw an error.
696696
*
697697
* Each element in this list must be an object with a 'hostname' field for the
698-
* hostname that should be matched. In future more options may be supported
698+
* hostname that should be matched. Wildcards are supported (following the
699+
* [URLPattern specification](https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API)),
700+
* eg. `{hostname: '*.example.com'}`.
701+
*
702+
* In future more options may be supported
699703
* here for additional configuration of this behaviour.
700704
*/
701705
tlsPassthrough?: Array<{ hostname: string }>;
@@ -711,7 +715,11 @@ export type MockttpHttpsOptions = CAOptions & {
711715
* options will throw an error.
712716
*
713717
* Each element in this list must be an object with a 'hostname' field for the
714-
* hostname that should be matched. In future more options may be supported
718+
* hostname that should be matched. Wildcards are supported (following the
719+
* [URLPattern specification](https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API)),
720+
* eg. `{hostname: '*.example.com'}`.
721+
*
722+
* In future more options may be supported
715723
* here for additional configuration of this behaviour.
716724
*/
717725
tlsInterceptOnly?: Array<{ hostname: string }>;

0 commit comments

Comments
 (0)