1.7.6 • Published 1 year ago

@types/react-dynamic-number v1.7.6

Weekly downloads
16
License
MIT
Repository
github
Last release
1 year ago

Installation

npm install --save @types/react-dynamic-number

Summary

This package contains type definitions for react-dynamic-number (https://github.com/uhlryk/react-dynamic-number).

Details

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

index.d.ts

// Type definitions for react-dynamic-number 1.7
// Project: https://github.com/uhlryk/react-dynamic-number
// Definitions by: Eugene Rodin <https://github.com/eugrdn>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from 'react';

export type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never, [x: number]: never })[keyof T]>;

export type BaseInputProps = Partial<
  Omit<
    React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,
    'ref' | 'value' | 'onChange' | 'placeholder'
  >
>;

export interface DynamicNumberProps extends BaseInputProps {
  value?: number | '' | undefined;
  separator?: '.' | ',' | undefined;
  thousand?: boolean | ' ' | undefined;
  integer?: number | undefined;
  fraction?: number | undefined;
  positive?: boolean | undefined;
  negative?: boolean | undefined;
  placeholder?: string | undefined;
  onChange?: ((event: React.ChangeEvent<HTMLInputElement>, modelValue: number, viewValue: string) => void) | undefined;
}

export default class DynamicNumber extends React.Component<DynamicNumberProps> {}

Additional Details

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

Credits

These definitions were written by Eugene Rodin.

1.7.6

1 year ago

1.7.5

1 year ago

1.7.4

1 year ago

1.7.3

3 years ago

1.7.2

6 years ago

1.7.1

7 years ago

1.7.0

7 years ago