MCPcopy Create free account
hub / github.com/ceramicnetwork/rust-ceramic / isStreamIDString

Function isStreamIDString

sdk/packages/identifiers/src/codecs.ts:9–16  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

7 * @internal
8 */
9export function isStreamIDString(input: string): input is string {
10 try {
11 StreamID.fromString(input)
12 return true
13 } catch (err) {
14 return false
15 }
16}
17
18/**
19 * codeco codec for StreamID string.

Callers 1

codecs.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected