0.1.3 • Published 6 months ago

@types/react-compass v0.1.3

Weekly downloads
24
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-compass

Summary

This package contains type definitions for react-compass (https://github.com/virtyaluk/react-compass).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-compass.

index.d.ts

// Type definitions for react-compass 0.1
// Project: https://github.com/virtyaluk/react-compass
// Definitions by: Rick Wilson <https://github.com/rwilson504>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as React from "react";

export interface ReactCompassProps {
    direction: number;
    directionNames?: string[] | undefined;
}

export function directionName(dir: number): string;
export function normalizeAngle(direction: number): number;

export class ReactCompass extends React.Component<ReactCompassProps, any> {}
export default ReactCompass;

Additional Details

  • Last updated: Thu, 08 Jul 2021 20:20:32 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Rick Wilson.