Skip to content

Commit f679c17

Browse files
authored
Optional request timeout (#41)
* configurable request timeout * generated docs * appease prettier * tweak warning wording * check in made with version 16.20
1 parent 2b95c27 commit f679c17

20 files changed

+102
-75
lines changed

.husky/pre-commit

100644100755
File mode changed.

docs/js-client-sdk.eppojsclient.getassignment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## EppoJSClient.getAssignment() method
66

7-
<b>Signature:</b>
7+
**Signature:**
88

99
```typescript
1010
getAssignment(subjectKey: string, flagKey: string, subjectAttributes?: Record<string, any>, assignmentHooks?: IAssignmentHooks): string | null;
@@ -16,10 +16,10 @@ getAssignment(subjectKey: string, flagKey: string, subjectAttributes?: Record<st
1616
| --- | --- | --- |
1717
| subjectKey | string | |
1818
| flagKey | string | |
19-
| subjectAttributes | Record&lt;string, any&gt; | <i>(Optional)</i> |
20-
| assignmentHooks | IAssignmentHooks | <i>(Optional)</i> |
19+
| subjectAttributes | Record&lt;string, any&gt; | _(Optional)_ |
20+
| assignmentHooks | IAssignmentHooks | _(Optional)_ |
2121

22-
<b>Returns:</b>
22+
**Returns:**
2323

2424
string \| null
2525

docs/js-client-sdk.eppojsclient.getboolassignment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## EppoJSClient.getBoolAssignment() method
66

7-
<b>Signature:</b>
7+
**Signature:**
88

99
```typescript
1010
getBoolAssignment(subjectKey: string, flagKey: string, subjectAttributes?: Record<string, any>, assignmentHooks?: IAssignmentHooks): boolean | null;
@@ -16,10 +16,10 @@ getBoolAssignment(subjectKey: string, flagKey: string, subjectAttributes?: Recor
1616
| --- | --- | --- |
1717
| subjectKey | string | |
1818
| flagKey | string | |
19-
| subjectAttributes | Record&lt;string, any&gt; | <i>(Optional)</i> |
20-
| assignmentHooks | IAssignmentHooks | <i>(Optional)</i> |
19+
| subjectAttributes | Record&lt;string, any&gt; | _(Optional)_ |
20+
| assignmentHooks | IAssignmentHooks | _(Optional)_ |
2121

22-
<b>Returns:</b>
22+
**Returns:**
2323

2424
boolean \| null
2525

docs/js-client-sdk.eppojsclient.getjsonstringassignment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## EppoJSClient.getJSONStringAssignment() method
66

7-
<b>Signature:</b>
7+
**Signature:**
88

99
```typescript
1010
getJSONStringAssignment(subjectKey: string, flagKey: string, subjectAttributes?: Record<string, any>, assignmentHooks?: IAssignmentHooks): string | null;
@@ -16,10 +16,10 @@ getJSONStringAssignment(subjectKey: string, flagKey: string, subjectAttributes?:
1616
| --- | --- | --- |
1717
| subjectKey | string | |
1818
| flagKey | string | |
19-
| subjectAttributes | Record&lt;string, any&gt; | <i>(Optional)</i> |
20-
| assignmentHooks | IAssignmentHooks | <i>(Optional)</i> |
19+
| subjectAttributes | Record&lt;string, any&gt; | _(Optional)_ |
20+
| assignmentHooks | IAssignmentHooks | _(Optional)_ |
2121

22-
<b>Returns:</b>
22+
**Returns:**
2323

2424
string \| null
2525

docs/js-client-sdk.eppojsclient.getnumericassignment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## EppoJSClient.getNumericAssignment() method
66

7-
<b>Signature:</b>
7+
**Signature:**
88

99
```typescript
1010
getNumericAssignment(subjectKey: string, flagKey: string, subjectAttributes?: Record<string, any>, assignmentHooks?: IAssignmentHooks): number | null;
@@ -16,10 +16,10 @@ getNumericAssignment(subjectKey: string, flagKey: string, subjectAttributes?: Re
1616
| --- | --- | --- |
1717
| subjectKey | string | |
1818
| flagKey | string | |
19-
| subjectAttributes | Record&lt;string, any&gt; | <i>(Optional)</i> |
20-
| assignmentHooks | IAssignmentHooks | <i>(Optional)</i> |
19+
| subjectAttributes | Record&lt;string, any&gt; | _(Optional)_ |
20+
| assignmentHooks | IAssignmentHooks | _(Optional)_ |
2121

22-
<b>Returns:</b>
22+
**Returns:**
2323

2424
number \| null
2525

docs/js-client-sdk.eppojsclient.getparsedjsonassignment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## EppoJSClient.getParsedJSONAssignment() method
66

7-
<b>Signature:</b>
7+
**Signature:**
88

99
```typescript
1010
getParsedJSONAssignment(subjectKey: string, flagKey: string, subjectAttributes?: Record<string, any>, assignmentHooks?: IAssignmentHooks): object | null;
@@ -16,10 +16,10 @@ getParsedJSONAssignment(subjectKey: string, flagKey: string, subjectAttributes?:
1616
| --- | --- | --- |
1717
| subjectKey | string | |
1818
| flagKey | string | |
19-
| subjectAttributes | Record&lt;string, any&gt; | <i>(Optional)</i> |
20-
| assignmentHooks | IAssignmentHooks | <i>(Optional)</i> |
19+
| subjectAttributes | Record&lt;string, any&gt; | _(Optional)_ |
20+
| assignmentHooks | IAssignmentHooks | _(Optional)_ |
2121

22-
<b>Returns:</b>
22+
**Returns:**
2323

2424
object \| null
2525

docs/js-client-sdk.eppojsclient.getstringassignment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## EppoJSClient.getStringAssignment() method
66

7-
<b>Signature:</b>
7+
**Signature:**
88

99
```typescript
1010
getStringAssignment(subjectKey: string, flagKey: string, subjectAttributes?: Record<string, any>, assignmentHooks?: IAssignmentHooks): string | null;
@@ -16,10 +16,10 @@ getStringAssignment(subjectKey: string, flagKey: string, subjectAttributes?: Rec
1616
| --- | --- | --- |
1717
| subjectKey | string | |
1818
| flagKey | string | |
19-
| subjectAttributes | Record&lt;string, any&gt; | <i>(Optional)</i> |
20-
| assignmentHooks | IAssignmentHooks | <i>(Optional)</i> |
19+
| subjectAttributes | Record&lt;string, any&gt; | _(Optional)_ |
20+
| assignmentHooks | IAssignmentHooks | _(Optional)_ |
2121

22-
<b>Returns:</b>
22+
**Returns:**
2323

2424
string \| null
2525

docs/js-client-sdk.eppojsclient.instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## EppoJSClient.instance property
66

7-
<b>Signature:</b>
7+
**Signature:**
88

99
```typescript
1010
static instance: EppoJSClient;

docs/js-client-sdk.eppojsclient.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
Client for assigning experiment variations.
88

9-
<b>Signature:</b>
9+
**Signature:**
1010

1111
```typescript
1212
export declare class EppoJSClient extends EppoClient
1313
```
14-
<b>Extends:</b> EppoClient
14+
**Extends:** EppoClient
1515
1616
## Properties
1717

docs/js-client-sdk.getinstance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
Used to access a singleton SDK client instance. Use the method after calling init() to initialize the client.
88

9-
<b>Signature:</b>
9+
**Signature:**
1010

1111
```typescript
1212
export declare function getInstance(): IEppoClient;
1313
```
14-
<b>Returns:</b>
14+
**Returns:**
1515

1616
IEppoClient
1717

0 commit comments

Comments
 (0)