-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(types): improve type implementations and tests
- dropped EnsureString, Keys, MergeDefaults, OmitNative, Omit, PickNative, Pick - MergeDefaults functionality was merged into Merge - TupleLength -> Length - TupleToUnion -> ArrayToUnion - Omit and Pick were improved, but still under review - added several new types Signed-off-by: Lexus Drumgold <[email protected]>
- Loading branch information
1 parent
b159afe
commit ed37d71
Showing
295 changed files
with
12,653 additions
and
2,485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"color": true, | ||
"emoji": true, | ||
"format": "ascii", | ||
"ignoreRules": [], | ||
"summary": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -352,6 +352,10 @@ jobs: | |
- gitguardian | ||
- preflight | ||
runs-on: ubuntu-latest | ||
env: | ||
TARFILE: | | ||
(startsWith(github.ref_name, 'release/') && ${{ format('@{0}-{1}-{2}.tgz', github.repository_owner, github.event.repository.name, needs.preflight.outputs.version) }}) | ||
|| ${{ format('@{0}-{1}-{2}+{3}.tgz', github.repository_owner, github.event.repository.name, needs.preflight.outputs.version, github.event.pull_request.head.sha || github.sha) }} | ||
steps: | ||
- id: checkout | ||
name: Checkout ${{ env.REF_NAME }} | ||
|
@@ -372,19 +376,24 @@ jobs: | |
with: | ||
key: ${{ runner.os }}-${{ github.run_id }} | ||
path: ${{ env.CACHE_PATH }} | ||
- id: local-binaries | ||
name: Add local binaries to $PATH | ||
run: echo "$GITHUB_WORKSPACE/$CACHE_PATH/.bin" >> $GITHUB_PATH | ||
- id: pack | ||
name: Pack project | ||
run: yarn pack -o %s-%v.tgz | ||
run: yarn pack -o ${{ env.TARFILE }} | ||
- id: typecheck | ||
name: Run typecheck | ||
run: yarn check:types:build | ||
- id: attw | ||
name: Analyze types distribution | ||
run: attw ${{ env.TARFILE }} | ||
- id: pkg-size-report | ||
name: Package size report | ||
run: yarn pkg-size | ||
- id: archive | ||
name: Archive production artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: | | ||
${{ format('@{0}-{1}-{2}', github.repository_owner, github.event.repository.name, needs.preflight.outputs.version) }} | ||
path: '*.tgz' | ||
name: ${{ env.TARFILE }} | ||
path: ${{ env.TARFILE }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* @file Test Fixtures - Vehicle | ||
* @module tests/fixtures/Vehicle | ||
*/ | ||
|
||
/** | ||
* Object representing a vehicle. | ||
*/ | ||
type Vehicle = { | ||
/** | ||
* Vehicle brand. | ||
*/ | ||
make: string | ||
|
||
/** | ||
* Vehicle model. | ||
*/ | ||
model: string | ||
|
||
/** | ||
* Vehicle identification number. | ||
*/ | ||
vin: string | ||
|
||
/** | ||
* Vehicle model year. | ||
*/ | ||
year: number | ||
} | ||
|
||
export type { Vehicle as default } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.