Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SincereCSL/Playgrounds
/ Foo
Interface
Foo
TypeScript/StudyTypeScript/src/type_inference.ts:14–16 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
12
13
// 类型断言
14
interface
Foo {
15
bar: number
16
}
17
// let foo = {} as Foo
18
// 声明的时候指定类型
19
let
foo: Foo = {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected