npm.io
0.4.5 • Published 2 years ago

@types/input-moment

Licence
MIT
Version
0.4.5
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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.