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

0.4.5 • Public • Published

Installation

npm install --save @types/input-moment

Summary

This package contains type definitions for input-moment (https://github.com/wangzuo/input-moment).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/input-moment.

index.d.ts

import React = require("react");
import moment = require("moment");

export type OnChangeListener = (m: moment.Moment) => void;
export type OnSaveListener = () => void;

export interface InputMomentProps {
    moment: moment.Moment;
    onChange?: OnChangeListener | undefined;
    onSave?: OnSaveListener | undefined;
    minStep?: number | undefined;
    hourStep?: number | undefined;
    prevMonthIcon?: string | undefined;
    nextMonthIcon?: string | undefined;
}

export default class InputMoment extends React.Component<InputMomentProps> {
    constructor(props: Readonly<InputMomentProps>);
}

Additional Details

Credits

These definitions were written by Tim Ittermann.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/input-moment

Weekly Downloads

770

Version

0.4.5

License

MIT

Unpacked Size

3.92 kB

Total Files

5

Last publish

Collaborators

  • types