This website requires JavaScript.
Explore
Help
Register
Sign In
rou
/
front-end-example
Watch
1
Star
0
Fork
0
You've already forked front-end-example
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
acb14455758bdd48f901c9d564e8741acc4b9913
front-end-example
/
06-typescript
/
04-interface-object-shape
History
rou
d5ff59ac76
update
2026-03-23 16:33:09 +08:00
..
answer.ts
feat: add TypeScript lessons and learning panel
2026-03-19 10:06:11 +08:00
README.md
feat: add TypeScript lessons and learning panel
2026-03-19 10:06:11 +08:00
starter.ts
update
2026-03-23 16:33:09 +08:00
README.md
Unescape
Escape
练习 4
:
interface 描述对象结构
目标
学会用
interface
给对象建立结构约束。
你要练什么
interface
对象结构
类型约束
任务
写一个
User
接口
用它约束一个学习者对象
输出对象中的关键信息
文件
starter.ts
answer.ts