MCPcopy Create free account
hub / github.com/simstudioai/sim / isResourceType

Function isResourceType

apps/sim/hooks/queries/mothership-chats.ts:77–82  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

75}
76
77function isResourceType(value: unknown): value is MothershipResource['type'] {
78 return (
79 typeof value === 'string' &&
80 Object.values(MothershipResourceType).some((type) => type === value)
81 )
82}
83
84function parseStreamSnapshot(value: unknown): MothershipChatHistory['streamSnapshot'] {
85 if (!isRecordLike(value)) {

Callers 1

parseResourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected