MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / isNonEmptyString

Function isNonEmptyString

src/workspaces/protocol.ts:113–115  ·  view source on GitHub ↗
(x: unknown)

Source from the content-addressed store, hash-verified

111}
112
113function isNonEmptyString(x: unknown): x is string {
114 return typeof x === 'string' && x.length > 0;
115}
116
117function isPositiveInt(x: unknown): x is number {
118 return typeof x === 'number' && Number.isFinite(x) && x > 0;

Callers 1

isClientControlMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected