VDL Plugin SDK

PolicyValueType

Import from @varavel/vdl-plugin-sdk/utils/policy.

type PolicyValueType = 
  | {
  kind: "string";
}
  | {
  kind: "int";
}
  | {
  kind: "float";
}
  | {
  kind: "bool";
}
  | {
  kind: "datetime";
}
  | {
  enumName: string;
  kind: "enum";
}
  | {
  element:   | PolicyScalarKind
     | {
     enumName: string;
     kind: "enum";
   };
  kind: "array";
}
  | {
  kind: "object";
  typeName: string;
};

Resolved value type carried by refs and literals for code generation.