screeps-api
    Preparing search index...

    Interface DecorationInstance<P>

    An instance of a Decoration that is owned by a user

    interface DecorationInstance<P extends string = string> {
        _id: string;
        activatedAt?: string;
        active?: { [key in string]: unknown } | null;
        createdAt: string;
        deactivatedAt?: string;
        decoration: BadgeDecoration | Decoration<P>;
        updatedAt?: string;
        user: string;
    }

    Type Parameters

    • P extends string = string
    Index

    Properties

    _id: string
    activatedAt?: string

    ISO 8601 timestamp

    active?: { [key in string]: unknown } | null

    Selected property values for an active decoration (null if inactive)

    createdAt: string

    ISO 8601 timestamp

    deactivatedAt?: string

    ISO 8601 timestamp

    The underlying decoration

    updatedAt?: string

    ISO 8601 timestamp

    user: string

    The owner's user ID