MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / isLocationData

Function isLocationData

packages/core/src/designer/location.ts:96–98  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

94}
95
96export const isLocationData = (obj: any): obj is LocationData => {
97 return obj && obj.target && obj.detail
98}
99
100export const isLocationChildrenDetail = (obj: any): obj is LocationChildrenDetail => {
101 return obj && obj.type === LocationDetailType.Children

Callers 1

locateMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected