Document Solutions Image Viewer
    Preparing search index...

    Type Alias GlobalCursorType

    GlobalCursorType:
        | "pointer"
        | "default"
        | "text"
        | "move"
        | "not-allowed"
        | "n-resize"
        | "e-resize"
        | "s-resize"
        | "w-resize"
        | "ne-resize"
        | "nw-resize"
        | "se-resize"
        | "sw-resize"
        | "ew-resize"
        | "ns-resize"
        | "nesw-resize"
        | "nwse-resize"
        | "rotate"
        | "grab"
        | "grabbing"
        | "zoom-in"
        | "zoom-out"
        | "wait"
        | "crosshair"

    Union type representing all possible cursor styles for the application. Includes standard CSS cursor values and custom application-specific cursors.

    // Type-safe cursor assignment
    const resizeCursor: GlobalCursorType = 'nwse-resize';
    // Function parameter typing
    function setCursor(cursor: GlobalCursorType) {
    document.body.style.cursor = cursor;
    }