# All files / src/rotate rotate.tsx

100% Statements 7/7
100% Branches 0/0
100% Functions 0/0
100% Lines 7/7

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    1x
    1x

    1x
    1x

    1x

    1x

    1x

     import * as React from "react";
    import BaseRotate from "./rotate.base";
    import {
        Orientation,
        RotateHandledProps as BaseRotateHandledProps,
        RotateManagedClasses,
        RotateProps as BaseRotateProps,
        RotateUnhandledProps,
    } from "./rotate.props";
    import { RotateClassNameContract } from "./rotate.class-name-contract";
    import manageJss, { ManagedJSSProps } from "@microsoft/fast-jss-manager-react";
    import RotateStyles from "./rotate.style";
    import { Subtract } from "utility-types";

    /*
     * The type returned by manageJss type is very complicated so we'll let the
     * compiler infer the type instead of re-declaring just for the package export
     */
    /* tslint:disable-next-line:typedef */
    const Rotate = manageJss(RotateStyles)(BaseRotate);
    type Rotate = InstanceType<typeof Rotate>;

    interface RotateHandledProps
        extends Subtract<BaseRotateHandledProps, RotateManagedClasses> {}
    type RotateProps = ManagedJSSProps<BaseRotateProps, RotateClassNameContract, {}>;

    export default Rotate;
    export {
        Orientation,
        RotateProps,
        RotateClassNameContract,
        RotateHandledProps,
        RotateUnhandledProps,
    };