UNPKG

@brusalk/react-wow-addon

Version:

React-style UI Framework for World of Warcraft AddOns

10 lines (9 loc) 651 B
declare type Props = Record<string, any>; export declare function createFrame(jsxType: string, parentFrame: WoWAPI.Region, props: Props): WoWAPI.Region; export declare function cleanupFrame(frame: WoWAPI.Region): void; export declare function updateFrameProperties(frame: WoWAPI.Region, prevProps: Props, nextProps: Props): void; /** Create a point declaration */ export declare function P(point: WoWAPI.Point, x?: number, y?: number, relativePoint?: WoWAPI.Point, relativeFrame?: WoWAPI.Region): JSX.PointDefinition; export declare function sentenceCase(str: string): string; export declare function pascalCase(kebabCase: string): string; export {};