Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs to import providers and types from the root package #1234

Merged
merged 1 commit into from
Mar 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions js/predictions.md
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ Update the `src/polyfills.ts` and add to the top of the file `(window as any).gl
```javascript
import { Component } from '@angular/core';
import Predictions from '@aws-amplify/predictions';
import { TextToSpeechOutput } from '@aws-amplify/predictions/lib/types';
import { TextToSpeechOutput } from '@aws-amplify/predictions';

@Component({
selector: 'app-home',
Expand Down Expand Up @@ -1386,4 +1386,3 @@ Analyze text to find key phrases, sentiment (positive, negative, neutral), or th
}).then(result => console.log(JSON.stringify(result, null, 2)))
.catch(err => console.log(JSON.stringify(err, null, 2)))
```

4 changes: 2 additions & 2 deletions js/pubsub.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To use in your app, import `AWSIoTProvider`:

```javascript
import Amplify, { PubSub } from 'aws-amplify';
import { AWSIoTProvider } from '@aws-amplify/pubsub/lib/Providers';
import { AWSIoTProvider } from '@aws-amplify/pubsub';
```

Define your endpoint and region in your configuration:
Expand Down Expand Up @@ -75,7 +75,7 @@ Import PubSub module and related service provider plugin to your app:

```javascript
import { PubSub } from 'aws-amplify';
import { MqttOverWSProvider } from "@aws-amplify/pubsub/lib/Providers";
import { MqttOverWSProvider } from "@aws-amplify/pubsub";
```

To configure your service provider with a service endpoint, add following code:
Expand Down