@types/pretty-proptypes
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

Installation

npm install --save @types/pretty-proptypes

Summary

This package contains type definitions for pretty-proptypes (https://github.com/atlassian/extract-react-types#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pretty-proptypes.

index.d.ts

import * as React from "react";

export interface Components {
    Indent: React.ComponentType<any>;
    Outline: React.ComponentType<any>;
    Required: React.ComponentType<any>;
    Type: React.ComponentType<any>;
    StringType: React.ComponentType<any>;
    TypeMeta: React.ComponentType<any>;
    Description: React.ComponentType<any>;
    Button: React.ComponentType<any>;
    FunctionType: React.ComponentType<any>;
}

export const components: Components;

export type Kind = any;

export interface CommonProps {
    defaultValue?: string | undefined;
    description?: string | undefined;
    required: boolean;
    name: string;
    typeValue: Kind;
    type: string;
    shouldCollapse?: boolean | undefined;
    components: Components;
}

export interface PropProps extends CommonProps {
    shapeComponent: React.ComponentType<CommonProps>;
}

export class Prop extends React.Component<PropProps> {}

export interface Obj {
    kind: "object";
    members: any[];
}

export interface Gen {
    kind: "generic";
    value: any;
}

export interface Inter {
    kind: "intersection";
    types: Array<Obj | Gen>;
}

export interface DynamicPropsProps {
    components?: Partial<Components> | undefined;
    heading?: string | undefined;
    shouldCollapseProps?: boolean | undefined;
    overrides?: {
        [key: string]: React.ComponentType<CommonProps>;
    } | undefined;
    props: {
        component?: Obj | Inter | undefined;
    };
}

export default class Props extends React.Component<DynamicPropsProps> {}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Nathan Bierema.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.4
    7
  • 1.1.3
    0
  • 1.1.2
    0
  • 1.1.1
    0
  • 1.1.0
    32

Package Sidebar

Install

npm i @types/pretty-proptypes

Weekly Downloads

39

Version

1.1.4

License

MIT

Unpacked Size

5.76 kB

Total Files

5

Last publish

Collaborators

  • types