react-moment 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -7
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import moment from 'moment';
2
- import { Component, ComponentClass, SFC, CSSProperties } from 'react';
2
+ import { Component, ComponentClass, FunctionComponent, CSSProperties } from 'react';
3
3
 
4
- type elementTypes = string | SFC<any> | ComponentClass<any>;
4
+ type elementTypes = string | FunctionComponent<any> | ComponentClass<any>;
5
5
  type subtractOrAddTypes = {
6
6
  years?: number,
7
7
  y?: number,
@@ -22,9 +22,9 @@ type subtractOrAddTypes = {
22
22
  milliseconds?: number,
23
23
  ms?: number
24
24
  };
25
- type dateTypes = string|number|Array<string|number|object>|object;
26
- type calendarTypes = boolean|object;
27
- type trimTypes = boolean|string;
25
+ type dateTypes = string | number | Array<string | number | object> | object;
26
+ type calendarTypes = boolean | object;
27
+ type trimTypes = boolean | string;
28
28
 
29
29
  export interface MomentProps {
30
30
  element?: elementTypes,
@@ -58,11 +58,11 @@ export interface MomentProps {
58
58
  style?: CSSProperties,
59
59
  className?: string,
60
60
  filter?: (date: string) => string,
61
- onChange?: (content:any) => any
61
+ onChange?: (content: any) => any
62
62
  }
63
63
 
64
64
  declare class Moment extends Component<MomentProps, any> {
65
- constructor(props:MomentProps);
65
+ constructor(props: MomentProps);
66
66
  public static globalMoment: Function;
67
67
  public static globalLocale: string;
68
68
  public static globalLocal: boolean;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "react-moment",
3
3
  "description": "React component for the moment date library.",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "author": {
6
6
  "name": "Sean Hickey",
7
- "web": "http://headzoo.io"
7
+ "web": "https://headzoo.io"
8
8
  },
9
9
  "devDependencies": {
10
10
  "@babel/core": "^7.4.3",