1.0.10 • Published 5 months ago

@types/react-app v1.0.10

Weekly downloads
193
License
MIT
Repository
github
Last release
5 months ago

Installation

npm install --save @types/react-app

Summary

This package contains type definitions for react-app (https://github.com/kriasoft/react-app#readme).

Details

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

index.d.ts

// Type definitions for react-app 1.0
// Project: https://github.com/kriasoft/react-app#readme
// Definitions by: Prakarsh Pandey <https://github.com/prakarshpandey>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from 'react';

export interface LinkProps {
    to: string;
    onClick?(): void;
    className?: string | undefined;
}

export interface LayoutProps {
    className: string;
}

export interface RouteProps { // takes the form of universal-router routes
    path: string;
    children: ChildProps[];
}

export interface ChildProps {
    path: string;
    action(params: any): any;
}

export interface CreateAppObject {
    routes: RouteProps;
    context: {};
    container: Element | null;
}

// exporting the createApp function
export function createApp(createAppObject: CreateAppObject): JSX.Element;

export class Link extends React.Component<LinkProps> {}
export class Layout extends React.Component<LayoutProps> {}
export class Header extends React.Component {}
export class Navigation extends React.Component {}

Additional Details

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

Credits

These definitions were written by Prakarsh Pandey.

1.0.10

5 months ago

1.0.9

6 months ago

1.0.8

7 months ago

1.0.7

8 months ago

1.0.6

3 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago