Skip to content

Commit

Permalink
fix: fixed one type definition and some doc issues (#583)
Browse files Browse the repository at this point in the history
* fix: Add express-adapter in tsconfig file, fix return type of reducer function defined in arrayToObjectHeader function.

* fix: link all usages to developer portal
  • Loading branch information
ShenChen93 committed Sep 19, 2019
1 parent e62421c commit 5cc2576
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ask-sdk-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm install --save ask-sdk-model

## Usage and Getting Started

You can find a getting started guide [here](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/wiki).
You can find a getting started guide [here](https://developer.amazon.com/docs/alexa-skills-kit-sdk-for-nodejs/overview.html).

## Usage with TypeScript
The Core SDK package for Node.js bundles TypeScript definition files for use in TypeScript projects and to support tools that can read .d.ts files. Our goal is to keep these TypeScript definition files updated with each release for any public api.
Expand Down
2 changes: 1 addition & 1 deletion ask-sdk-core/lib/service/DefaultApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class DefaultApiClient implements ApiClient {
*/
function arrayToObjectHeader(header : Array<{key : string, value : string}>) : {[key : string] : string[]} {
const reducer = (obj : {[key : string] : string[]}, item : {key : string, value : string})
: {[key : string] : string | string[]} => {
: {[key : string] : string[]} => {
if (obj[item.key]) {
obj[item.key].push(item.value);
} else {
Expand Down
2 changes: 1 addition & 1 deletion ask-sdk-dynamodb-persistence-adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm install --save ask-sdk-dynamodb-persistence-adapter

## Usage and Getting Started

You can find a getting started guide [here](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/wiki).
You can find a getting started guide [here](https://developer.amazon.com/docs/alexa-skills-kit-sdk-for-nodejs/manage-attributes.html#dynamodbpersistenceadapter).

## Usage with TypeScript
The ASK SDK DynamoDB Persistence Adapter package for Node.js bundles TypeScript definition files for use in TypeScript projects and to support tools that can read .d.ts files. Our goal is to keep these TypeScript definition files updated with each release for any public api.
Expand Down
2 changes: 1 addition & 1 deletion ask-sdk-express-adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ npm install --save ask-sdk-express-adapter

## Usage and Getting Started

You can find a getting started guide [here](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/wiki).
You can find a getting started guide [here](https://developer.amazon.com/docs/alexa-skills-kit-sdk-for-nodejs/host-web-service.html).

## Usage with TypeScript
The ASK SDK Express Adapter package for Node.js bundles TypeScript definition files for use in TypeScript projects and to support tools that can read .d.ts files. Our goal is to keep these TypeScript definition files updated with each release for any public api.
Expand Down
2 changes: 1 addition & 1 deletion ask-sdk-runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ npm install --save ask-sdk-runtime

## Usage and Getting Started

You can find a getting started guide [here](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/wiki).
You can find a getting started guide [here](https://developer.amazon.com/docs/alexa-skills-kit-sdk-for-nodejs/overview.html).

## Usage with TypeScript
The SDK runtime package for Node.js bundles TypeScript definition files for use in TypeScript projects and to support tools that can read .d.ts files. Our goal is to keep these TypeScript definition files updated with each release for any public api.
Expand Down
2 changes: 1 addition & 1 deletion ask-sdk-s3-persistence-adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ npm install --save ask-sdk-s3-persistence-adapter

## Usage and Getting Started

You can find a getting started guide [here](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/wiki).
You can find a getting started guide [here](https://developer.amazon.com/docs/alexa-skills-kit-sdk-for-nodejs/manage-attributes.html#s3persistenceadapter).

## Usage with TypeScript
The ASK SDK S3 Persistence Adapter package for Node.js bundles TypeScript definition files for use in TypeScript projects and to support tools that can read .d.ts files. Our goal is to keep these TypeScript definition files updated with each release for any public api.
Expand Down
2 changes: 1 addition & 1 deletion ask-sdk-v1adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm install --save ask-sdk-v1adapter

## Usage and Getting Started

You can find a getting started guide [here](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/wiki).
You can find a getting started guide [here](https://developer.amazon.com/docs/alexa-skills-kit-sdk-for-nodejs/migration-guide.html#migration-steps).

## Usage with TypeScript
The ASK SDK v1 Adapter package for Node.js bundles TypeScript definition files for use in TypeScript projects and to support tools that can read .d.ts files. Our goal is to keep these TypeScript definition files updated with each release for any public api.
Expand Down
2 changes: 1 addition & 1 deletion ask-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ npm install --save ask-sdk

## Usage and Getting Started

You can find a getting started guide [here](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/wiki).
You can find a getting started guide [here](https://developer.amazon.com/docs/alexa-skills-kit-sdk-for-nodejs/overview.html).

## Usage with TypeScript
The ASK SDK package for Node.js bundles TypeScript definition files for use in TypeScript projects and to support tools that can read .d.ts files. Our goal is to keep these TypeScript definition files updated with each release for any public api.
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"ask-sdk-dynamodb-persistence-adapter/lib",
"ask-sdk-runtime/lib",
"ask-sdk-s3-persistence-adapter/lib",
"ask-sdk-v1adapter/lib"
"ask-sdk-v1adapter/lib",
"ask-sdk-express-adapter/lib"
],
"exclude" : [
"node_modules"
Expand Down

0 comments on commit 5cc2576

Please sign in to comment.