On this page

Type Alias StylePropertySpecification

StylePropertySpecification:
    | {
        default?: number;
        expression?: ExpressionSpecificationDefinition;
        "property-type": ExpressionType;
        transition: boolean;
        type: "number";
    }
    | {
        default?: string;
        expression?: ExpressionSpecificationDefinition;
        "property-type": ExpressionType;
        tokens?: boolean;
        transition: boolean;
        type: "string";
    }
    | {
        default?: boolean;
        expression?: ExpressionSpecificationDefinition;
        "property-type": ExpressionType;
        transition: boolean;
        type: "boolean";
    }
    | {
        default?: string;
        expression?: ExpressionSpecificationDefinition;
        "property-type": ExpressionType;
        transition: boolean;
        type: "enum";
        values: { [_: string]: {} };
    }
    | {
        default?: ColorSpecification;
        expression?: ExpressionSpecificationDefinition;
        overridable: boolean;
        "property-type": ExpressionType;
        transition: boolean;
        type: "color";
    }
    | {
        default?: number[];
        expression?: ExpressionSpecificationDefinition;
        length?: number;
        "property-type": ExpressionType;
        transition: boolean;
        type: "array";
        value: "number";
    }
    | {
        default?: string[];
        expression?: ExpressionSpecificationDefinition;
        length?: number;
        "property-type": ExpressionType;
        transition: boolean;
        type: "array";
        value: "string";
    }
    | {
        default?: PaddingSpecification;
        expression?: ExpressionSpecificationDefinition;
        "property-type": ExpressionType;
        transition: boolean;
        type: "padding";
    }
    | {
        default?: NumberArraySpecification;
        expression?: ExpressionSpecificationDefinition;
        "property-type": ExpressionType;
        transition: boolean;
        type: "numberArray";
    }
    | {
        default?: ColorArraySpecification;
        expression?: ExpressionSpecificationDefinition;
        "property-type": ExpressionType;
        transition: boolean;
        type: "colorArray";
    }
    | {
        default?: VariableAnchorOffsetCollectionSpecification;
        expression?: ExpressionSpecificationDefinition;
        "property-type": ExpressionType;
        transition: boolean;
        type: "variableAnchorOffsetCollection";
    }
    | {
        default?: ProjectionDefinitionSpecification;
        expression?: ExpressionSpecificationDefinition;
        "property-type": ExpressionType;
        transition: boolean;
        type: "projectionDefinition";
    }
Was this helpful?
SDK JS
Reference
StylePropertySpecification