MCPcopy Create free account
hub / github.com/experdot/pointer / isPage

Function isPage

src/renderer/src/types/type.ts:162–164  ·  view source on GitHub ↗
(item: Page<T> | PageFolder)

Source from the content-addressed store, hash-verified

160
161// 页面类型守卫(通过 type 属性区分 Page 和 PageFolder)
162export function isPage<T>(item: Page<T> | PageFolder): item is Page<T> {
163 return item.type === 'item'
164}
165
166export interface Settings {
167 fontSize: 'small' | 'medium' | 'large'

Callers 1

ExplorerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected