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
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/react, moment
Credits
These definitions were written by Tim Ittermann.