vcard4
Version:
An RFC 6350 compliant JavaScript library for generating and parsing version 4.0 vCards. Can also generate RFC 6351 compliant XML vCards and RFC 7095 compliant jCards. TypeScript type declarations are provided.
44 lines (42 loc) • 938 B
TypeScript
import {
TextType,
TextListType,
BooleanType,
DateTimeType,
DateTimeListType,
IntegerType,
IntegerListType,
FloatType,
FloatListType,
LanguageTagType,
URIType,
SexType,
SpecialValueType,
} from "../values/index";
import { BaseParameter } from "./BaseParameter";
/**
* Represents the "VALUE" parameter
* Used to identify the data type of the value of a property
*/
export class ValueParameter extends BaseParameter {
/**
* @param valType - an instance of either one of the value data types. Should
* be the same as the actual value of the property
*/
constructor(
valType:
| TextType
| TextListType
| BooleanType
| DateTimeType
| DateTimeListType
| IntegerType
| IntegerListType
| FloatType
| FloatListType
| LanguageTagType
| URIType
| SexType
| SpecialValueType
);
}