Skip to content

Commit 47c07cf

Browse files
committed
Auto-generated commit
1 parent cd8a51c commit 47c07cf

File tree

4 files changed

+85
-6
lines changed

4 files changed

+85
-6
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 79 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,91 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2024-07-01)
7+
## Unreleased (2024-07-13)
8+
9+
<section class="features">
10+
11+
### Features
12+
13+
- [`67858b3`](https://github.com/stdlib-js/stdlib/commit/67858b341e920fed871e34ba0d6b6809804916f7) - improve type safety
14+
15+
</section>
16+
17+
<!-- /.features -->
18+
19+
<section class="breaking-changes">
20+
21+
### BREAKING CHANGES
22+
23+
- [`67858b3`](https://github.com/stdlib-js/stdlib/commit/67858b341e920fed871e34ba0d6b6809804916f7): improve type safety
24+
- [`67858b3`](https://github.com/stdlib-js/stdlib/commit/67858b341e920fed871e34ba0d6b6809804916f7): The return types are now more specific. This may break existing code that relies on less strict typing, but should not affect most users. To preserve the prior behavior, you can cast the return value to `string` via a type assertion.
25+
26+
</section>
27+
28+
<!-- /.breaking-changes -->
29+
30+
<section class="commits">
31+
32+
### Commits
33+
34+
<details>
35+
36+
- [`67858b3`](https://github.com/stdlib-js/stdlib/commit/67858b341e920fed871e34ba0d6b6809804916f7) - **feat:** improve type safety _(by Philipp Burckhardt)_
37+
38+
</details>
39+
40+
</section>
41+
42+
<!-- /.commits -->
43+
44+
<section class="contributors">
45+
46+
### Contributors
47+
48+
A total of 1 person contributed to this release. Thank you to this contributor:
49+
50+
- Philipp Burckhardt
51+
52+
</section>
53+
54+
<!-- /.contributors -->
55+
56+
</section>
57+
58+
<!-- /.release -->
59+
60+
<section class="release" id="v0.2.1">
61+
62+
## 0.2.1 (2024-02-22)
63+
64+
<section class="features">
65+
66+
### Features
67+
68+
- [`3573d92`](https://github.com/stdlib-js/stdlib/commit/3573d92955f1150eae58fb534808b7a30532a1c1) - update minimum TypeScript version
69+
70+
</section>
71+
72+
<!-- /.features -->
73+
74+
<section class="breaking-changes">
75+
76+
### BREAKING CHANGES
77+
78+
- [`3573d92`](https://github.com/stdlib-js/stdlib/commit/3573d92955f1150eae58fb534808b7a30532a1c1): update minimum TypeScript version
79+
80+
</section>
81+
82+
<!-- /.breaking-changes -->
883

984
<section class="commits">
1085

1186
### Commits
1287

1388
<details>
1489

15-
- [`a591e05`](https://github.com/stdlib-js/stdlib/commit/a591e052cf1b1515c267781b914c6a482e150425) - **test:** fix test configuration _(by Athan Reines)_
90+
- [`3573d92`](https://github.com/stdlib-js/stdlib/commit/3573d92955f1150eae58fb534808b7a30532a1c1) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_
91+
- [`6c7e770`](https://github.com/stdlib-js/stdlib/commit/6c7e770dab6e03561202af2861ae11c27af8a90c) - **refactor:** use strictEqual checks _(by Philipp Burckhardt)_
1692

1793
</details>
1894

@@ -26,7 +102,7 @@
26102

27103
A total of 1 person contributed to this release. Thank you to this contributor:
28104

29-
- Athan Reines
105+
- Philipp Burckhardt
30106

31107
</section>
32108

docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* var str = uppercase( 'bEEp' );
2929
* // returns 'BEEP'
3030
*/
31-
declare function uppercase( str: string ): string;
31+
declare function uppercase<S extends string>( str: S ): Uppercase<S>;
3232

3333

3434
// EXPORTS //

docs/types/test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ import uppercase = require( './index' );
2323

2424
// The function returns a string...
2525
{
26-
uppercase( 'Last man standing' ); // $ExpectType string
26+
uppercase( 'Last man standing' ); // $ExpectType "LAST MAN STANDING"
27+
uppercase( 'Hello World!' ); // $ExpectType "HELLO WORLD!"
28+
uppercase( 'beep' ); // $ExpectType "BEEP"
29+
uppercase( 'BOOP' ); // $ExpectType "BOOP"
30+
uppercase( 'foo' as string ); // $ExpectType string
2731
}
2832

2933
// The compiler throws an error if the function is provided a value other than a string...

0 commit comments

Comments
 (0)