1.1.4 • Published 6 months ago

@types/pretty-proptypes v1.1.4

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

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

// Type definitions for pretty-proptypes 1.1
// Project: https://github.com/atlassian/extract-react-types#readme
// Definitions by: Nathan Bierema <https://github.com/Methuselah96>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 08 Jul 2021 20:19:49 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Nathan Bierema.

1.1.4

6 months ago

1.1.3

7 months ago

1.1.2

8 months ago

1.1.1

3 years ago

1.1.0

3 years ago