Nacho Portion Monitor

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

    1.1.1 • 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

    // 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.

    Keywords

    none

    Install

    npm i @types/pretty-proptypes

    DownloadsWeekly Downloads

    62

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    6.28 kB

    Total Files

    4

    Last publish

    Collaborators

    • types