mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Make moment dependency use open ranges (#11547)
* Make moment dependency use `>` instead of fixed version * Remove unused file * Use moment.MomentFormatSpecification * Add dependency on moment
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
Vendored
+4
-7
@@ -20,19 +20,16 @@ declare namespace MomentTimezone {
|
||||
parse(timestamp: number): number
|
||||
}
|
||||
|
||||
type MomentFormatSpecification =
|
||||
string | (() => void) | (string | (() => void))[];
|
||||
|
||||
interface MomentTimezone {
|
||||
(): moment.Moment;
|
||||
(timezone: string): moment.Moment;
|
||||
(date: number, timezone: string): moment.Moment;
|
||||
(date: number[], timezone: string): moment.Moment;
|
||||
(date: string, timezone: string): moment.Moment;
|
||||
(date: string, format: MomentFormatSpecification, timezone: string): moment.Moment;
|
||||
(date: string, format: MomentFormatSpecification, strict: boolean, timezone: string): moment.Moment;
|
||||
(date: string, format: MomentFormatSpecification, language: string, timezone: string): moment.Moment;
|
||||
(date: string, format: MomentFormatSpecification, language: string, strict: boolean, timezone: string): moment.Moment;
|
||||
(date: string, format: moment.MomentFormatSpecification, timezone: string): moment.Moment;
|
||||
(date: string, format: moment.MomentFormatSpecification, strict: boolean, timezone: string): moment.Moment;
|
||||
(date: string, format: moment.MomentFormatSpecification, language: string, timezone: string): moment.Moment;
|
||||
(date: string, format: moment.MomentFormatSpecification, language: string, strict: boolean, timezone: string): moment.Moment;
|
||||
(date: Date, timezone: string): moment.Moment;
|
||||
(date: moment.Moment, timezone: string): moment.Moment;
|
||||
(date: Object, timezone: string): moment.Moment;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"scripts": {
|
||||
"postinstall": "cd ../moment-range && npm install"
|
||||
}
|
||||
}
|
||||
"dependencies": {
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,9 @@
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"paths": {
|
||||
"*": ["*", "react-daterange-picker/node_modules/*"]
|
||||
},
|
||||
"types": ["moment-range", "react"],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": "2.14.*"
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user