Skip to content

Commit da34341

Browse files
authored
Merge pull request #178832 from tylerbutler/fix-user
Fix some typing bugs in Fluid code samples
2 parents 35c9034 + fd325a3 commit da34341

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

articles/azure-fluid-relay/how-tos/connect-fluid-azure-service.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ To connect to an Azure Fluid Relay instance you first need to create an `AzureCl
3434
```javascript
3535
const config = {
3636
tenantId: "myTenantId",
37-
tokenProvider: new InsecureTokenProvider("myTenantKey", {
38-
id: "userId",
39-
name: "Test User",
40-
}),
37+
tokenProvider: new InsecureTokenProvider("myTenantKey", { id: "userId" }),
4138
orderer: "https://myOrdererUrl",
4239
storage: "https://myStorageUrl",
4340
};
@@ -78,7 +75,7 @@ const client = new AzureClient(clientProps);
7875
The user object can also hold optional additional user details. For example:
7976

8077
```javascript
81-
const userDetails: ICustomUserDetails = {
78+
const userDetails = {
8279
8380
address: "Redmond",
8481
};
@@ -129,7 +126,7 @@ const { container, services } = await azureClient.getContainer(
129126
);
130127
```
131128

132-
For the further information on how to start recording logs being emitted by Fluid, see [Logging and telemetry](https://fluidframework.com/docs/testing/telemetry/) .
129+
For the further information on how to start recording logs being emitted by Fluid, see [Logging and telemetry](https://fluidframework.com/docs/testing/telemetry/).
133130

134131
The container being fetched back will hold the `initialObjects` as defined in the container schema. See [Data modeling](https://fluidframework.com/docs/build/data-modeling/) on fluidframework.com to learn more about how to establish the schema and use the `container` object.
135132

@@ -150,7 +147,7 @@ const audienceDiv = document.createElement("div");
150147
const onAudienceChanged = () => {
151148
const members = audience.getMembers();
152149
const self = audience.getMyself();
153-
const memberStrings: string[] = [];
150+
const memberStrings = [];
154151
const useAzure = process.env.FLUID_CLIENT === "azure";
155152

156153
members.forEach((member) => {

0 commit comments

Comments
 (0)