From 165f58c490f1b56fb5f70b6352d79c8ff83d0cbe Mon Sep 17 00:00:00 2001 From: Steve Gill Date: Mon, 30 Mar 2020 10:49:45 -0700 Subject: [PATCH 1/2] set minimum version of TypeScript to 3.7.0 --- docs/_tutorials/migration_v2.md | 4 ++++ docs/_tutorials/using-typescript.md | 18 ++++++++++++++++++ package.json | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 docs/_tutorials/using-typescript.md diff --git a/docs/_tutorials/migration_v2.md b/docs/_tutorials/migration_v2.md index d1484923d..8303c2ccb 100644 --- a/docs/_tutorials/migration_v2.md +++ b/docs/_tutorials/migration_v2.md @@ -126,3 +126,7 @@ async function noBotMessages({ message, next }) { ### @slack/bolt@1.x support schedule `@slack/bolt@1.x` will be deprecated on **June 30th, 2020**. We plan on continuing to implement bug fixes and will also consider back-porting new features on a case by case basis up until then. Once `@slack/bolt@1.x` has been deprecated, we will only implement **critical bug fixes** until the official end of life date and close non critical issues and pull requests. End of life is slated for **April 30th, 2021**. At this time, development will fully stop for `@slack/bolt@1.x` and all remaining open issues and pull requests will be closed. + +### Minimum TypeScript Version + +As outlined in our [using TypeScript guide](https://slack.dev/bolt/tutorial/using-typescript), `@slack/bolt@2.x` requires a minimum TypeScript version of 3.7.0. \ No newline at end of file diff --git a/docs/_tutorials/using-typescript.md b/docs/_tutorials/using-typescript.md new file mode 100644 index 000000000..d657e2305 --- /dev/null +++ b/docs/_tutorials/using-typescript.md @@ -0,0 +1,18 @@ +--- +title: Using TypeScript +order: 3 +slug: using-typescript +lang: en +layout: tutorial +permalink: /tutorial/using-typescript +--- +# Using TypeScript + +This project is written and built using [TypeScript](https://www.typescriptlang.org/), which means many of the APIs have type information metadata 🎉. If you’re using a code editor like VSCode, Atom, or many others that know how to read that metadata, or if you’re using TypeScript in your own project, you’ll benefit from improved documentation as your write code, early detection of errors, easier refactoring, and more. + +This page helps describe how to use this package from a project that also uses TypeScript. + +### Minimum version + +The latest major version of `@slack/bolt` is supported to build against a minimum TypeScript version of v3.7.0. + diff --git a/package.json b/package.json index 2beceed9a..c1ae6a237 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,6 @@ "ts-node": "^8.1.0", "tslint": "^5.15.0", "tslint-config-airbnb": "^5.11.1", - "typescript": "^3.4.3" + "typescript": "^3.7.0" } } From 55ad66058bfb039b83a41b2a5a1cf9cd84c21cc6 Mon Sep 17 00:00:00 2001 From: Steve Gill Date: Mon, 30 Mar 2020 11:21:27 -0700 Subject: [PATCH 2/2] Apply suggestions from code review Co-Authored-By: Ankur Oberoi --- docs/_tutorials/migration_v2.md | 2 +- docs/_tutorials/using-typescript.md | 3 +-- package.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/_tutorials/migration_v2.md b/docs/_tutorials/migration_v2.md index 8303c2ccb..3a41e7ee6 100644 --- a/docs/_tutorials/migration_v2.md +++ b/docs/_tutorials/migration_v2.md @@ -129,4 +129,4 @@ async function noBotMessages({ message, next }) { ### Minimum TypeScript Version -As outlined in our [using TypeScript guide](https://slack.dev/bolt/tutorial/using-typescript), `@slack/bolt@2.x` requires a minimum TypeScript version of 3.7.0. \ No newline at end of file +As outlined in our [using TypeScript guide](https://slack.dev/bolt/tutorial/using-typescript), `@slack/bolt@2.x` requires a minimum TypeScript version of 3.7. diff --git a/docs/_tutorials/using-typescript.md b/docs/_tutorials/using-typescript.md index d657e2305..35224875d 100644 --- a/docs/_tutorials/using-typescript.md +++ b/docs/_tutorials/using-typescript.md @@ -14,5 +14,4 @@ This page helps describe how to use this package from a project that also uses T ### Minimum version -The latest major version of `@slack/bolt` is supported to build against a minimum TypeScript version of v3.7.0. - +The latest major version of `@slack/bolt` is supported to build against a minimum TypeScript version of v3.7. diff --git a/package.json b/package.json index c1ae6a237..ea42990c5 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,6 @@ "ts-node": "^8.1.0", "tslint": "^5.15.0", "tslint-config-airbnb": "^5.11.1", - "typescript": "^3.7.0" + "typescript": "^3.7.2" } }