0.4.5 • Published 6 months ago

@types/input-moment v0.4.5

Weekly downloads
122
License
MIT
Repository
github
Last release
6 months ago

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

Credits

These definitions were written by Tim Ittermann.

0.4.5

6 months ago

0.4.4

7 months ago

0.4.3

8 months ago

0.4.2

3 years ago

0.4.1

4 years ago

0.4.0

5 years ago