@dndbuilder.com/react
Version:
Drag and drop builder for React
41 lines (40 loc) • 1.74 kB
TypeScript
import { DroppableBlock, MoveableBlock } from '../types/block';
import { ResponsiveValue } from '../types/responsive';
import { SpacingValue, UnitValue, WithPseudoClass } from '../types/style';
/**
* Type guard to check if an object is a DroppableBlock
* @param block - The object to check
* @returns True if the object is a DroppableBlock, false otherwise
*/
export declare const isDropableBlock: (block: unknown) => block is DroppableBlock;
/**
* Type guard to check if an object is a MoveableBlock
* @param block - The object to check
* @returns True if the object is a MoveableBlock, false otherwise
*/
export declare const isMoveableBlock: (block: unknown) => block is MoveableBlock;
/**
* Type guard to check if an object is a UnitValue
* @param value - The object to check
* @returns True if the object is a UnitValue, false otherwise
*/
export declare const isUnitValue: (value: unknown) => value is UnitValue;
/**
* Type guard to check if an object is a SpacingValue
* @param value - The object to check
* @returns True if the object is a SpacingValue, false otherwise
*/
export declare const isSpacingValue: (value: unknown) => value is SpacingValue;
/**
* Type guard to check if an object is a ResponsiveValue
* @param value - The object to check
* @returns True if the object is a ResponsiveValue, false otherwise
*/
export declare const isResponsiveValue: (value: unknown) => value is ResponsiveValue;
/**
* Type guard to check if an object has pseudo-class properties
* @param value - The object to check
* @returns True if the object has pseudo-class properties, false otherwise
*/
export declare const isWithPseudoClass: (value: unknown) => value is WithPseudoClass;
//# sourceMappingURL=guard.d.ts.map