@deployport/specular-runtime
Version:
Runtime for Specular API clients with support for Node.js and Browser
21 lines (20 loc) • 711 B
TypeScript
import UserDefinedType from "./userDefinedType.js";
export type BuiltinType = "string" | "float64" | "float32" | "bool" | "int32" | "uint32" | "int64" | "uint64" | "time" | "binary";
export declare function isIntegral(builtin: BuiltinType): boolean;
export type TypeBase = {
SubType: "array" | "userDefined" | "builtin";
NonNullable: boolean;
};
export type TypeRefUserDefined = TypeBase & {
SubType: "userDefined";
Type: UserDefinedType;
};
export type TypeRefArray = TypeBase & {
SubType: "array";
Item: TypeRef;
};
export type TypeRefBuiltin = TypeBase & {
SubType: "builtin";
Builtin: BuiltinType;
};
export type TypeRef = TypeRefArray | TypeRefBuiltin | TypeRefUserDefined;