Vinyl
    Preparing search index...

    Interface MappedAttributeRule

    interface MappedAttributeRule {
        default: any;
        localPart: string;
        namespaceUri: null | string;
        parse: (value: string) => any;
        property: string | number | symbol;
        required: boolean;
        stringify: (value: any) => string;
    }
    Index

    Properties

    default: any

    If the current element has no matching attribute, default will be used.

    localPart: string

    The local part of the QName.

    namespaceUri: null | string

    The namespace uri that must match.

    parse: (value: string) => any

    Parses the attribute value.

    property: string | number | symbol

    The property name.

    required: boolean

    If true, a parsing error will be thrown if the value is undefined.

    stringify: (value: any) => string

    Converts the attribute value to a string.