MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / isValidWaveObj

Function isValidWaveObj

frontend/app/store/wos.ts:41–49  ·  view source on GitHub ↗
(val: WaveObj)

Source from the content-addressed store, hash-verified

39}
40
41function isValidWaveObj(val: WaveObj): boolean {
42 if (val == null) {
43 return false;
44 }
45 if (isBlank(val.otype) || isBlank(val.oid) || isBlankNum(val.version)) {
46 return false;
47 }
48 return true;
49}
50
51function makeORef(otype: string, oid: string): string {
52 if (isBlank(otype) || isBlank(oid)) {

Callers 1

updateWaveObjectFunction · 0.85

Calls 2

isBlankNumFunction · 0.85
isBlankFunction · 0.70

Tested by

no test coverage detected