0.4.5 • Published 6 months ago
@types/input-moment v0.4.5
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
// Type definitions for input-moment 0.4
// Project: https://github.com/wangzuo/input-moment
// Definitions by: Tim Ittermann <https://github.com/timia2109>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5
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: Thu, 08 Jul 2021 14:23:14 GMT
- Dependencies: @types/react, @types/moment
- Global values: none
Credits
These definitions were written by Tim Ittermann.