export function getType()

in packages/sdk/src/Value.ts [104:117]


  export function getType(value: Value): TypeName {
    const jsType = typeof value;
    switch (jsType) {
      case 'boolean':
      case 'number':
      case 'string':
      case 'undefined':
        return jsType;
      case 'object':
        return Array.isArray(value) ? 'List' : 'Struct';
      default: // no-op
    }
    throw new TypeError(`Invalid Value type "${jsType}"`);
  }