Skip to content

Commit 7f5ac0c

Browse files
committed
chore: update index
1 parent f77d878 commit 7f5ac0c

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

README.ja.md

+1-1
Large diffs are not rendered by default.

README.ko.md

+1-1
Large diffs are not rendered by default.

README.md

+1-1
Large diffs are not rendered by default.

README.zh-CN.md

+1-1
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
<!--info-header-start--><h1>Public Type <img src="https://img.shields.io/badge/-medium-d9901a" alt="medium"/> <img src="https://img.shields.io/badge/-%23object--keys-999" alt="#object-keys"/></h1><blockquote><p>by KaiKai <a href="https://github.com/kaikaibenkai" target="_blank">@kaikaibenkai</a></p></blockquote><p><a href="https://tsch.js.org/28333/play" target="_blank"><img src="https://img.shields.io/badge/-Take%20the%20Challenge-3178c6?logo=typescript&logoColor=white" alt="Take the Challenge"/></a> </p><!--info-header-end-->
2+
13
Remove the key starting with `_` from given type `T`.
4+
5+
6+
<!--info-footer-start--><br><a href="../../README.md" target="_blank"><img src="https://img.shields.io/badge/-Back-grey" alt="Back"/></a> <a href="https://tsch.js.org/28333/answer" target="_blank"><img src="https://img.shields.io/badge/-Share%20your%20Solutions-teal" alt="Share your Solutions"/></a> <a href="https://tsch.js.org/28333/solutions" target="_blank"><img src="https://img.shields.io/badge/-Check%20out%20Solutions-de5a77?logo=awesome-lists&logoColor=white" alt="Check out Solutions"/></a> <!--info-footer-end-->

questions/28333-medium-public-type/test-cases.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ type cases = [
44
Expect<Equal<PublicType<{ a: number }>, { a: number }>>,
55
Expect<Equal<PublicType<{ _b: string | bigint }>, {}>>,
66
Expect<Equal<PublicType<{ readonly c?: number }>, { readonly c?: number }>>,
7-
Expect<Equal<PublicType<{ d: string, _e: string }>, { d: string }>>,
7+
Expect<Equal<PublicType<{ d: string; _e: string }>, { d: string }>>,
88
Expect<Equal<PublicType<{ _f: () => bigint[] }>, {}>>,
9-
Expect<Equal<PublicType<{ g: `_g` }>, { g: `_g` }>>,
10-
Expect<Equal<PublicType<{ __h: number, i: unknown }>, { i: unknown }>>
9+
Expect<Equal<PublicType<{ g: '_g' }>, { g: '_g' }>>,
10+
Expect<Equal<PublicType<{ __h: number; i: unknown }>, { i: unknown }>>,
1111
]

0 commit comments

Comments
 (0)