config: update flow-typed, ignore node_modules

This commit is contained in:
alxshelepenok 2020-07-21 12:05:40 +03:00
parent 51d9ec3942
commit 0bf7876241
9 changed files with 9082 additions and 0 deletions

View File

@ -1,3 +1,7 @@
[ignore]
.*/node_modules/*
.*/public/*
[libs] [libs]
flow-typed flow-typed

23
flow-typed/npm/classnames_v2.x.x.js vendored Normal file
View File

@ -0,0 +1,23 @@
// flow-typed signature: a00cf41b09af4862583460529d5cfcb9
// flow-typed version: c6154227d1/classnames_v2.x.x/flow_>=v0.104.x
type $npm$classnames$Classes =
| string
| { [className: string]: *, ... }
| false
| void
| null;
declare module "classnames" {
declare module.exports: (
...classes: Array<$npm$classnames$Classes | $npm$classnames$Classes[]>
) => string;
}
declare module "classnames/bind" {
declare module.exports: $Exports<"classnames">;
}
declare module "classnames/dedupe" {
declare module.exports: $Exports<"classnames">;
}

2276
flow-typed/npm/gatsby_vx.x.x.js vendored Normal file

File diff suppressed because it is too large Load Diff

6113
flow-typed/npm/lodash_v4.x.x.js vendored Normal file

File diff suppressed because it is too large Load Diff

401
flow-typed/npm/moment_v2.x.x.js vendored Normal file
View File

@ -0,0 +1,401 @@
// flow-typed signature: 9f5d01a796646c50e75afd71bd0a2941
// flow-typed version: e7ad2464da/moment_v2.x.x/flow_>=v0.104.x
type moment$MomentOptions = {
y?: number | string,
year?: number | string,
years?: number | string,
M?: number | string,
month?: number | string,
months?: number | string,
d?: number | string,
day?: number | string,
days?: number | string,
date?: number | string,
h?: number | string,
hour?: number | string,
hours?: number | string,
m?: number | string,
minute?: number | string,
minutes?: number | string,
s?: number | string,
second?: number | string,
seconds?: number | string,
ms?: number | string,
millisecond?: number | string,
milliseconds?: number | string,
...
};
type moment$MomentObject = {
years: number,
months: number,
date: number,
hours: number,
minutes: number,
seconds: number,
milliseconds: number,
...
};
type moment$MomentCreationData = {
input: string,
format: string,
locale: {...},
isUTC: boolean,
strict: boolean,
...
};
type moment$CalendarFormat = string | ((moment: moment$Moment) => string);
type moment$CalendarFormats = {
sameDay?: moment$CalendarFormat,
nextDay?: moment$CalendarFormat,
nextWeek?: moment$CalendarFormat,
lastDay?: moment$CalendarFormat,
lastWeek?: moment$CalendarFormat,
sameElse?: moment$CalendarFormat,
...
};
type moment$Inclusivity = "()" | "[)" | "()" | "(]" | "[]";
declare class moment$LocaleData {
months(moment: moment$Moment): string;
monthsShort(moment: moment$Moment): string;
monthsParse(month: string): number;
weekdays(moment: moment$Moment): string;
weekdaysShort(moment: moment$Moment): string;
weekdaysMin(moment: moment$Moment): string;
weekdaysParse(weekDay: string): number;
longDateFormat(dateFormat: string): string;
isPM(date: string): boolean;
meridiem(hours: number, minutes: number, isLower: boolean): string;
calendar(
key:
| "sameDay"
| "nextDay"
| "lastDay"
| "nextWeek"
| "prevWeek"
| "sameElse",
moment: moment$Moment
): string;
relativeTime(
number: number,
withoutSuffix: boolean,
key: "s" | "m" | "mm" | "h" | "hh" | "d" | "dd" | "M" | "MM" | "y" | "yy",
isFuture: boolean
): string;
pastFuture(diff: any, relTime: string): string;
ordinal(number: number): string;
preparse(str: string): any;
postformat(str: string): any;
week(moment: moment$Moment): string;
invalidDate(): string;
firstDayOfWeek(): number;
firstDayOfYear(): number;
}
declare class moment$MomentDuration {
humanize(suffix?: boolean): string;
milliseconds(): number;
asMilliseconds(): number;
seconds(): number;
asSeconds(): number;
minutes(): number;
asMinutes(): number;
hours(): number;
asHours(): number;
days(): number;
asDays(): number;
months(): number;
asWeeks(): number;
weeks(): number;
asMonths(): number;
years(): number;
asYears(): number;
add(value: number | moment$MomentDuration | {...}, unit?: string): this;
subtract(value: number | moment$MomentDuration | {...}, unit?: string): this;
as(unit: string): number;
get(unit: string): number;
toJSON(): string;
toISOString(): string;
isValid(): boolean;
}
declare class moment$Moment {
static ISO_8601: string;
static (string?: ?string): moment$Moment;
static (
initDate:
| moment$MomentOptions
| number
| Date
| Array<number>
| moment$Moment
| string
| null
| void
| []
| {...}
): moment$Moment;
static (array: []): moment$Moment;
static (object: {...}): moment$Moment;
static (string: ?string, format: string | Array<string>): moment$Moment;
static (
string: ?string,
// Support for strict string parsing without format works since moment v2.25.0
// https://github.com/moment/moment/issues/2469
strict: boolean
): moment$Moment;
static (
string: ?string,
format: string | Array<string>,
strict: boolean
): moment$Moment;
static (
string: ?string,
format: string | Array<string>,
locale: string
): moment$Moment;
static (
string: ?string,
format: string | Array<string>,
locale: string,
strict: boolean
): moment$Moment;
static unix(seconds: number): moment$Moment;
static utc(): moment$Moment;
static utc(
initDate:
| moment$MomentOptions
| number
| Date
| Array<number>
| moment$Moment
| string
| null
| void
): moment$Moment;
static utc(string: string, format: string | Array<string>): moment$Moment;
static utc(
string: string,
// Support for strict string parsing without format works since moment v2.25.0
// https://github.com/moment/moment/issues/2469
strict: boolean
): moment$Moment;
static utc(
string: string,
format: string | Array<string>,
strict: boolean
): moment$Moment;
static utc(
string: string,
format: string | Array<string>,
locale: string
): moment$Moment;
static utc(
string: string,
format: string | Array<string>,
locale: string,
strict: boolean
): moment$Moment;
static parseZone(): moment$Moment;
static parseZone(rawDate: string | null | void): moment$Moment;
static parseZone(
rawDate: string,
format: string | Array<string>
): moment$Moment;
static parseZone(
rawDate: string,
format: string | Array<string>,
strict: boolean
): moment$Moment;
static parseZone(
rawDate: string,
format: string | Array<string>,
locale: string
): moment$Moment;
static parseZone(
rawDate: string,
format: string | Array<string>,
locale: string,
strict: boolean
): moment$Moment;
isValid(): boolean;
invalidAt(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
creationData(): moment$MomentCreationData;
millisecond(number: number): this;
milliseconds(number: number): this;
millisecond(): number;
milliseconds(): number;
second(number: number): this;
seconds(number: number): this;
second(): number;
seconds(): number;
minute(number: number): this;
minutes(number: number): this;
minute(): number;
minutes(): number;
hour(number: number): this;
hours(number: number): this;
hour(): number;
hours(): number;
date(number: number): this;
dates(number: number): this;
date(): number;
dates(): number;
day(day: number | string): this;
days(day: number | string): this;
day(): number;
days(): number;
weekday(number: number): this;
weekday(): number;
isoWeekday(day: number | string): this;
isoWeekday(): number;
dayOfYear(day: number): this;
dayOfYear(): number;
week(number: number): this;
weeks(number: number): this;
week(): number;
weeks(): number;
isoWeek(number: number): this;
isoWeeks(number: number): this;
isoWeek(): number;
isoWeeks(): number;
month(number: number): this;
months(number: number): this;
month(): number;
months(): number;
quarter(number: number): this;
quarter(): number;
year(number: number): this;
years(number: number): this;
year(): number;
years(): number;
weekYear(number: number): this;
weekYear(): number;
isoWeekYear(number: number): this;
isoWeekYear(): number;
weeksInYear(): number;
isoWeeksInYear(): number;
get(string: string): number;
set(unit: string, value: number): this;
set(options: { [unit: string]: number, ... }): this;
static max(...dates: Array<moment$Moment>): moment$Moment;
static max(dates: Array<moment$Moment>): moment$Moment;
static min(...dates: Array<moment$Moment>): moment$Moment;
static min(dates: Array<moment$Moment>): moment$Moment;
add(
value: number | moment$MomentDuration | moment$Moment | {...},
unit?: string
): this;
subtract(
value: number | moment$MomentDuration | moment$Moment | string | {...},
unit?: string
): this;
startOf(unit: string): this;
endOf(unit: string): this;
local(): this;
utc(): this;
utcOffset(
offset: number | string,
keepLocalTime?: boolean,
keepMinutes?: boolean
): this;
utcOffset(): number;
format(format?: string): string;
fromNow(removeSuffix?: boolean): string;
from(
value: moment$Moment | string | number | Date | Array<number>,
removePrefix?: boolean
): string;
toNow(removePrefix?: boolean): string;
to(
value: moment$Moment | string | number | Date | Array<number>,
removePrefix?: boolean
): string;
calendar(refTime?: any, formats?: moment$CalendarFormats): string;
diff(
date: moment$Moment | string | number | Date | Array<number>,
format?: string,
floating?: boolean
): number;
valueOf(): number;
unix(): number;
daysInMonth(): number;
toDate(): Date;
toArray(): Array<number>;
toJSON(): string;
toISOString(keepOffset?: boolean): string;
toObject(): moment$MomentObject;
isBefore(
date?: moment$Moment | string | number | Date | Array<number>,
units?: ?string
): boolean;
isSame(
date?: moment$Moment | string | number | Date | Array<number>,
units?: ?string
): boolean;
isAfter(
date?: moment$Moment | string | number | Date | Array<number>,
units?: ?string
): boolean;
isSameOrBefore(
date?: moment$Moment | string | number | Date | Array<number>,
units?: ?string
): boolean;
isSameOrAfter(
date?: moment$Moment | string | number | Date | Array<number>,
units?: ?string
): boolean;
isBetween(
from: moment$Moment | string | number | Date | Array<number>,
to: moment$Moment | string | number | Date | Array<number>,
units?: string,
inclusivity?: moment$Inclusivity
): boolean;
isDST(): boolean;
isDSTShifted(): boolean;
isLeapYear(): boolean;
clone(): moment$Moment;
static isMoment(obj: any): boolean;
static isDate(obj: any): boolean;
static updateLocale(locale: string, localeData?: ?{...}): void;
static defineLocale(locale: string, localeData?: ?{...}): void;
static locale(locale?: string, localeData?: {...}): string;
static locale(locales: Array<string>): string;
locale(locale: string, customization?: {...} | null): moment$Moment;
locale(): string;
static months(): Array<string>;
static monthsShort(): Array<string>;
static now(): number;
static weekdays(): Array<string>;
static weekdaysShort(): Array<string>;
static weekdaysMin(): Array<string>;
static months(): string;
static monthsShort(): string;
static weekdays(): string;
static weekdaysShort(): string;
static weekdaysMin(): string;
static localeData(key?: string): moment$LocaleData;
localeData(): moment$LocaleData;
static duration(
value: number | {...} | string,
unit?: string
): moment$MomentDuration;
static isDuration(obj: any): boolean;
static normalizeUnits(unit: string): string;
static invalid(object: any): moment$Moment;
static relativeTimeRounding(): (value: number) => number;
static relativeTimeRounding(fn: (value: number) => number): void;
static relativeTimeThreshold(unit: "ss" | "s" | "m" | "h" | "d" | "M"): number;
static relativeTimeThreshold(
unit: "ss" | "s" | "m" | "h" | "d" | "M",
limit: number,
): void;
}
declare module "moment" {
declare module.exports: Class<moment$Moment>;
}

View File

@ -0,0 +1,80 @@
// flow-typed signature: f7a01ad2bfbdcbd9940769b886f4bb48
// flow-typed version: <<STUB>>/netlify-cms-app_v2.12.18/flow_v0.129.0
/**
* This is an autogenerated libdef stub for:
*
* 'netlify-cms-app'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'netlify-cms-app' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'netlify-cms-app/dist/esm/extensions' {
declare module.exports: any;
}
declare module 'netlify-cms-app/dist/esm' {
declare module.exports: any;
}
declare module 'netlify-cms-app/dist/esm/locales' {
declare module.exports: any;
}
declare module 'netlify-cms-app/dist/netlify-cms-app' {
declare module.exports: any;
}
declare module 'netlify-cms-app/src/extensions' {
declare module.exports: any;
}
declare module 'netlify-cms-app/src' {
declare module.exports: any;
}
declare module 'netlify-cms-app/src/locales' {
declare module.exports: any;
}
// Filename aliases
declare module 'netlify-cms-app/dist/esm/extensions.js' {
declare module.exports: $Exports<'netlify-cms-app/dist/esm/extensions'>;
}
declare module 'netlify-cms-app/dist/esm/index' {
declare module.exports: $Exports<'netlify-cms-app/dist/esm'>;
}
declare module 'netlify-cms-app/dist/esm/index.js' {
declare module.exports: $Exports<'netlify-cms-app/dist/esm'>;
}
declare module 'netlify-cms-app/dist/esm/locales.js' {
declare module.exports: $Exports<'netlify-cms-app/dist/esm/locales'>;
}
declare module 'netlify-cms-app/dist/netlify-cms-app.js' {
declare module.exports: $Exports<'netlify-cms-app/dist/netlify-cms-app'>;
}
declare module 'netlify-cms-app/src/extensions.js' {
declare module.exports: $Exports<'netlify-cms-app/src/extensions'>;
}
declare module 'netlify-cms-app/src/index' {
declare module.exports: $Exports<'netlify-cms-app/src'>;
}
declare module 'netlify-cms-app/src/index.js' {
declare module.exports: $Exports<'netlify-cms-app/src'>;
}
declare module 'netlify-cms-app/src/locales.js' {
declare module.exports: $Exports<'netlify-cms-app/src/locales'>;
}

View File

@ -0,0 +1,67 @@
// flow-typed signature: fe55856ebce3b66ab6c0a8a6de309111
// flow-typed version: <<STUB>>/react-disqus-comments_v1.4.0/flow_v0.129.0
/**
* This is an autogenerated libdef stub for:
*
* 'react-disqus-comments'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'react-disqus-comments' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'react-disqus-comments/build/components/DisqusThread' {
declare module.exports: any;
}
declare module 'react-disqus-comments/build/main' {
declare module.exports: any;
}
declare module 'react-disqus-comments/dist/react-disqus-thread' {
declare module.exports: any;
}
declare module 'react-disqus-comments/dist/react-disqus-thread.min' {
declare module.exports: any;
}
declare module 'react-disqus-comments/lib/components/DisqusThread' {
declare module.exports: any;
}
declare module 'react-disqus-comments/lib/main' {
declare module.exports: any;
}
// Filename aliases
declare module 'react-disqus-comments/build/components/DisqusThread.js' {
declare module.exports: $Exports<'react-disqus-comments/build/components/DisqusThread'>;
}
declare module 'react-disqus-comments/build/main.js' {
declare module.exports: $Exports<'react-disqus-comments/build/main'>;
}
declare module 'react-disqus-comments/dist/react-disqus-thread.js' {
declare module.exports: $Exports<'react-disqus-comments/dist/react-disqus-thread'>;
}
declare module 'react-disqus-comments/dist/react-disqus-thread.min.js' {
declare module.exports: $Exports<'react-disqus-comments/dist/react-disqus-thread.min'>;
}
declare module 'react-disqus-comments/lib/components/DisqusThread.js' {
declare module.exports: $Exports<'react-disqus-comments/lib/components/DisqusThread'>;
}
declare module 'react-disqus-comments/lib/main.js' {
declare module.exports: $Exports<'react-disqus-comments/lib/main'>;
}

39
flow-typed/npm/react-helmet_vx.x.x.js vendored Normal file
View File

@ -0,0 +1,39 @@
// flow-typed signature: 6f9a156495d9cbd0d3987c641280e19f
// flow-typed version: <<STUB>>/react-helmet_v6.1.0/flow_v0.129.0
/**
* This is an autogenerated libdef stub for:
*
* 'react-helmet'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'react-helmet' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'react-helmet/es/Helmet' {
declare module.exports: any;
}
declare module 'react-helmet/lib/Helmet' {
declare module.exports: any;
}
// Filename aliases
declare module 'react-helmet/es/Helmet.js' {
declare module.exports: $Exports<'react-helmet/es/Helmet'>;
}
declare module 'react-helmet/lib/Helmet.js' {
declare module.exports: $Exports<'react-helmet/lib/Helmet'>;
}

View File

@ -0,0 +1,79 @@
// flow-typed signature: 7bac6c05f7415881918d3d510109e739
// flow-typed version: fce74493f0/react-test-renderer_v16.x.x/flow_>=v0.104.x
// Type definitions for react-test-renderer 16.x.x
// Ported from: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-test-renderer
type ReactComponentInstance = React$Component<any>;
type ReactTestRendererJSON = {
type: string,
props: { [propName: string]: any, ... },
children: null | ReactTestRendererJSON[],
...
};
type ReactTestRendererTree = ReactTestRendererJSON & {
nodeType: "component" | "host",
instance: ?ReactComponentInstance,
rendered: null | ReactTestRendererTree,
...
};
type ReactTestInstance = {
instance: ?ReactComponentInstance,
type: string,
props: { [propName: string]: any, ... },
parent: null | ReactTestInstance,
children: Array<ReactTestInstance | string>,
find(predicate: (node: ReactTestInstance) => boolean): ReactTestInstance,
findByType(type: React$ElementType): ReactTestInstance,
findByProps(props: { [propName: string]: any, ... }): ReactTestInstance,
findAll(
predicate: (node: ReactTestInstance) => boolean,
options?: { deep: boolean, ... }
): ReactTestInstance[],
findAllByType(
type: React$ElementType,
options?: { deep: boolean, ... }
): ReactTestInstance[],
findAllByProps(
props: { [propName: string]: any, ... },
options?: { deep: boolean, ... }
): ReactTestInstance[],
...
};
type TestRendererOptions = { createNodeMock(element: React$Element<any>): any, ... };
declare module "react-test-renderer" {
declare export type ReactTestRenderer = {
toJSON(): null | ReactTestRendererJSON,
toTree(): null | ReactTestRendererTree,
unmount(nextElement?: React$Element<any>): void,
update(nextElement: React$Element<any>): void,
getInstance(): ?ReactComponentInstance,
root: ReactTestInstance,
...
};
declare type Thenable = { then(resolve: () => mixed, reject?: () => mixed): mixed, ... };
declare function create(
nextElement: React$Element<any>,
options?: TestRendererOptions
): ReactTestRenderer;
declare function act(callback: () => void | Promise<void>): Thenable;
}
declare module "react-test-renderer/shallow" {
declare export default class ShallowRenderer {
static createRenderer(): ShallowRenderer;
getMountedInstance(): ReactTestInstance;
getRenderOutput<E: React$Element<any>>(): E;
getRenderOutput(): React$Element<any>;
render(element: React$Element<any>, context?: any): void;
unmount(): void;
}
}