Skip to content

Commit

Permalink
docs: update README comments (#331)
Browse files Browse the repository at this point in the history
* docs: πŸ“„ include Pick

* docs: πŸ“„ Result => ^?

* build: πŸ”„ use typescript@4.7.4

* test: πŸ”„ TsVersion

* test: βž• add more cases with StrictExtract

* ci: βž• add 4.6 and 4.7 coverage

* docs: πŸ”„ update HouseAnimalWithStrictExtract example

* docs: πŸ“„ changeset
  • Loading branch information
Beraliv committed Aug 23, 2022
1 parent 187cdcc commit 8abe8a6
Show file tree
Hide file tree
Showing 7 changed files with 164 additions and 149 deletions.
5 changes: 5 additions & 0 deletions .changeset/two-worms-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ts-essentials": patch
---

Fix `StrictExtract` usage for TypeScript@^4.6.0
60 changes: 59 additions & 1 deletion .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,64 @@ jobs:
- run: yarn --no-progress --non-interactive --frozen-lockfile

# TypeScript 4.5
- run: yarn add typescript@4.5.4
- run: yarn add typescript@4.5.5
- run: yarn setTsVersion
- run: yarn test

typecheck4_6:
name: TypeScript 4.6
strategy:
matrix:
node: ['10.x']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Cache YARN dependencies
uses: actions/cache@v2
with:
path: |
node_modules
key: ${{ runner.OS }}-${{ matrix.node }}-yarn-cache-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ runner.OS }}-${{ matrix.node }}-yarn-cache-

- run: yarn --no-progress --non-interactive --frozen-lockfile

# TypeScript 4.6
- run: yarn add typescript@4.6.4
- run: yarn setTsVersion
- run: yarn test

typecheck4_7:
name: TypeScript 4.7
strategy:
matrix:
node: ['10.x']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Cache YARN dependencies
uses: actions/cache@v2
with:
path: |
node_modules
key: ${{ runner.OS }}-${{ matrix.node }}-yarn-cache-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ runner.OS }}-${{ matrix.node }}-yarn-cache-

- run: yarn --no-progress --non-interactive --frozen-lockfile

# TypeScript 4.7
- run: yarn add typescript@4.7.4
- run: yarn setTsVersion
- run: yarn test

0 comments on commit 8abe8a6

Please sign in to comment.