Skip to content

Commit 955305b

Browse files
authored
v.3.6.1 #33
2 parents aa0cfea + 85dd5c4 commit 955305b

17 files changed

+2250
-678
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// flow-typed signature: 7814bad223d2abb492841c50a587c50a
2+
// flow-typed version: <<STUB>>/enzyme-adapter-react-16_v^1.1.0/flow_v0.56.0
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* 'enzyme-adapter-react-16'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module 'enzyme-adapter-react-16' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
declare module 'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath' {
26+
declare module.exports: any;
27+
}
28+
29+
declare module 'enzyme-adapter-react-16/build/index' {
30+
declare module.exports: any;
31+
}
32+
33+
declare module 'enzyme-adapter-react-16/build/ReactSixteenAdapter' {
34+
declare module.exports: any;
35+
}
36+
37+
declare module 'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath' {
38+
declare module.exports: any;
39+
}
40+
41+
declare module 'enzyme-adapter-react-16/src/index' {
42+
declare module.exports: any;
43+
}
44+
45+
declare module 'enzyme-adapter-react-16/src/ReactSixteenAdapter' {
46+
declare module.exports: any;
47+
}
48+
49+
// Filename aliases
50+
declare module 'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath.js' {
51+
declare module.exports: $Exports<'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath'>;
52+
}
53+
declare module 'enzyme-adapter-react-16/build/index.js' {
54+
declare module.exports: $Exports<'enzyme-adapter-react-16/build/index'>;
55+
}
56+
declare module 'enzyme-adapter-react-16/build/ReactSixteenAdapter.js' {
57+
declare module.exports: $Exports<'enzyme-adapter-react-16/build/ReactSixteenAdapter'>;
58+
}
59+
declare module 'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath.js' {
60+
declare module.exports: $Exports<'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath'>;
61+
}
62+
declare module 'enzyme-adapter-react-16/src/index.js' {
63+
declare module.exports: $Exports<'enzyme-adapter-react-16/src/index'>;
64+
}
65+
declare module 'enzyme-adapter-react-16/src/ReactSixteenAdapter.js' {
66+
declare module.exports: $Exports<'enzyme-adapter-react-16/src/ReactSixteenAdapter'>;
67+
}

flow-typed/npm/enzyme_v3.x.x.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 687805dabf4b11b8ad99d263c9d3703d
2-
// flow-typed version: f0c7fe5246/enzyme_v3.x.x/flow_>=v0.53.x
1+
// flow-typed signature: 7be2af8800fdadaea6ac0404d256bafc
2+
// flow-typed version: 6ce6a0467c/enzyme_v3.x.x/flow_>=v0.53.x
33

44
import * as React from "react";
55

@@ -20,6 +20,7 @@ declare module "enzyme" {
2020
findWhere(predicate: PredicateFunction<this>): this,
2121
filter(selector: EnzymeSelector): this,
2222
filterWhere(predicate: PredicateFunction<this>): this,
23+
hostNodes(): this,
2324
contains(nodeOrNodes: NodeOrNodes): boolean,
2425
containsMatchingElement(node: React.Node): boolean,
2526
containsAllMatchingElements(nodes: NodeOrNodes): boolean,
@@ -42,7 +43,6 @@ declare module "enzyme" {
4243
text(): string,
4344
html(): string,
4445
get(index: number): React.Node,
45-
getNodes(): Array<React.Node>,
4646
getDOMNode(): HTMLElement | HTMLInputElement,
4747
at(index: number): this,
4848
first(): this,
@@ -58,7 +58,7 @@ declare module "enzyme" {
5858
setContext(context: Object): this,
5959
instance(): React.Component<*, *>,
6060
update(): this,
61-
debug(): string,
61+
debug(options?: Object): string,
6262
type(): string | Function | null,
6363
name(): string,
6464
forEach(fn: (node: this, index: number) => mixed): this,
@@ -92,7 +92,9 @@ declare module "enzyme" {
9292
options?: ?Object
9393
): ShallowWrapper,
9494
equals(node: React.Node): boolean,
95-
shallow(options?: { context?: Object }): ShallowWrapper
95+
shallow(options?: { context?: Object }): ShallowWrapper,
96+
getElement(): React.Node,
97+
getElements(): Array<React.Node>
9698
}
9799

98100
declare function shallow(

flow-typed/npm/jest_v21.x.x.js

+49-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 107cf7068b8835594e97f938e8848244
2-
// flow-typed version: 8b4dd96654/jest_v21.x.x/flow_>=v0.39.x
1+
// flow-typed signature: 483ecb6e4d88147c244d0b4e27951c1e
2+
// flow-typed version: a5bbe16c29/jest_v21.x.x/flow_>=v0.39.x
33

44
type JestMockFn<TArguments: $ReadOnlyArray<*>, TReturn> = {
55
(...args: TArguments): TReturn,
@@ -538,14 +538,60 @@ declare var xit: typeof it;
538538
/** A disabled individual test */
539539
declare var xtest: typeof it;
540540

541+
type JestPrettyFormatColors = {
542+
comment: { close: string, open: string },
543+
content: { close: string, open: string },
544+
prop: { close: string, open: string },
545+
tag: { close: string, open: string },
546+
value: { close: string, open: string },
547+
};
548+
549+
type JestPrettyFormatIndent = string => string;
550+
type JestPrettyFormatRefs = Array<any>;
551+
type JestPrettyFormatPrint = any => string;
552+
type JestPrettyFormatStringOrNull = string | null;
553+
554+
type JestPrettyFormatOptions = {|
555+
callToJSON: boolean,
556+
edgeSpacing: string,
557+
escapeRegex: boolean,
558+
highlight: boolean,
559+
indent: number,
560+
maxDepth: number,
561+
min: boolean,
562+
plugins: JestPrettyFormatPlugins,
563+
printFunctionName: boolean,
564+
spacing: string,
565+
theme: {|
566+
comment: string,
567+
content: string,
568+
prop: string,
569+
tag: string,
570+
value: string,
571+
|},
572+
|};
573+
574+
type JestPrettyFormatPlugin = {
575+
print: (
576+
val: any,
577+
serialize: JestPrettyFormatPrint,
578+
indent: JestPrettyFormatIndent,
579+
opts: JestPrettyFormatOptions,
580+
colors: JestPrettyFormatColors,
581+
) => string,
582+
test: any => boolean,
583+
};
584+
585+
type JestPrettyFormatPlugins = Array<JestPrettyFormatPlugin>;
586+
541587
/** The expect function is used every time you want to test a value */
542588
declare var expect: {
543589
/** The object that you want to make assertions against */
544590
(value: any): JestExpectType & JestPromiseType & EnzymeMatchersType,
545591
/** Add additional Jasmine matchers to Jest's roster */
546592
extend(matchers: { [name: string]: JestMatcher }): void,
547593
/** Add a module that formats application-specific data structures. */
548-
addSnapshotSerializer(serializer: (input: Object) => string): void,
594+
addSnapshotSerializer(pluginModule: JestPrettyFormatPlugin): void,
549595
assertions(expectedAssertions: number): void,
550596
hasAssertions(): void,
551597
any(value: mixed): JestAsymmetricEqualityType,

flow-typed/npm/prettier_v1.x.x.js

+178
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
// flow-typed signature: 4eed8da2dc730dc33e7710b465eaa44b
2+
// flow-typed version: cc7a557b34/prettier_v1.x.x/flow_>=v0.56.x
3+
4+
declare module "prettier" {
5+
declare type AST = Object;
6+
declare type Doc = Object;
7+
declare type FastPath = Object;
8+
9+
declare type PrettierParserName =
10+
| "babylon"
11+
| "flow"
12+
| "typescript"
13+
| "postcss"
14+
| "css"
15+
| "less"
16+
| "scss"
17+
| "json"
18+
| "graphql"
19+
| "markdown"
20+
| "vue";
21+
22+
declare type PrettierParser = {
23+
[name: PrettierParserName]: (text: string, options?: Object) => AST
24+
};
25+
26+
declare type CustomParser = (
27+
text: string,
28+
parsers: PrettierParser,
29+
options: Options
30+
) => AST;
31+
32+
declare type Options = {|
33+
printWidth?: number,
34+
tabWidth?: number,
35+
useTabs?: boolean,
36+
semi?: boolean,
37+
singleQuote?: boolean,
38+
trailingComma?: "none" | "es5" | "all",
39+
bracketSpacing?: boolean,
40+
jsxBracketSameLine?: boolean,
41+
arrowParens?: "avoid" | "always",
42+
rangeStart?: number,
43+
rangeEnd?: number,
44+
parser?: PrettierParserName | CustomParser,
45+
filepath?: string,
46+
requirePragma?: boolean,
47+
insertPragma?: boolean,
48+
proseWrap?: "always" | "never" | "preserve",
49+
plugins?: Array<string | Plugin>
50+
|};
51+
52+
declare type Plugin = {
53+
languages: SupportLanguage,
54+
parsers: { [parserName: string]: Parser },
55+
printers: { [astFormat: string]: Printer }
56+
};
57+
58+
declare type Parser = {
59+
parse: (
60+
text: string,
61+
parsers: { [parserName: string]: Parser },
62+
options: Object
63+
) => AST,
64+
astFormat: string
65+
};
66+
67+
declare type Printer = {
68+
print: (
69+
path: FastPath,
70+
options: Object,
71+
print: (path: FastPath) => Doc
72+
) => Doc,
73+
embed: (
74+
path: FastPath,
75+
print: (path: FastPath) => Doc,
76+
textToDoc: (text: string, options: Object) => Doc,
77+
options: Object
78+
) => ?Doc
79+
};
80+
81+
declare type CursorOptions = {|
82+
cursorOffset: number,
83+
printWidth?: $PropertyType<Options, "printWidth">,
84+
tabWidth?: $PropertyType<Options, "tabWidth">,
85+
useTabs?: $PropertyType<Options, "useTabs">,
86+
semi?: $PropertyType<Options, "semi">,
87+
singleQuote?: $PropertyType<Options, "singleQuote">,
88+
trailingComma?: $PropertyType<Options, "trailingComma">,
89+
bracketSpacing?: $PropertyType<Options, "bracketSpacing">,
90+
jsxBracketSameLine?: $PropertyType<Options, "jsxBracketSameLine">,
91+
arrowParens?: $PropertyType<Options, "arrowParens">,
92+
parser?: $PropertyType<Options, "parser">,
93+
filepath?: $PropertyType<Options, "filepath">,
94+
requirePragma?: $PropertyType<Options, "requirePragma">,
95+
insertPragma?: $PropertyType<Options, "insertPragma">,
96+
proseWrap?: $PropertyType<Options, "proseWrap">,
97+
plugins?: $PropertyType<Options, "plugins">
98+
|};
99+
100+
declare type CursorResult = {|
101+
formatted: string,
102+
cursorOffset: number
103+
|};
104+
105+
declare type ResolveConfigOptions = {|
106+
useCache?: boolean,
107+
config?: string,
108+
editorconfig?: boolean
109+
|};
110+
111+
declare type SupportLanguage = {
112+
name: string,
113+
since: string,
114+
parsers: Array<string>,
115+
group?: string,
116+
tmScope: string,
117+
aceMode: string,
118+
codemirrorMode: string,
119+
codemirrorMimeType: string,
120+
aliases?: Array<string>,
121+
extensions: Array<string>,
122+
filenames?: Array<string>,
123+
linguistLanguageId: number,
124+
vscodeLanguageIds: Array<string>
125+
};
126+
127+
declare type SupportOption = {|
128+
since: string,
129+
type: "int" | "boolean" | "choice" | "path",
130+
deprecated?: string,
131+
redirect?: SupportOptionRedirect,
132+
description: string,
133+
oppositeDescription?: string,
134+
default: SupportOptionValue,
135+
range?: SupportOptionRange,
136+
choices?: SupportOptionChoice
137+
|};
138+
139+
declare type SupportOptionRedirect = {|
140+
options: string,
141+
value: SupportOptionValue
142+
|};
143+
144+
declare type SupportOptionRange = {|
145+
start: number,
146+
end: number,
147+
step: number
148+
|};
149+
150+
declare type SupportOptionChoice = {|
151+
value: boolean | string,
152+
description?: string,
153+
since?: string,
154+
deprecated?: string,
155+
redirect?: SupportOptionValue
156+
|};
157+
158+
declare type SupportOptionValue = number | boolean | string;
159+
160+
declare type SupportInfo = {|
161+
languages: Array<SupportLanguage>,
162+
options: Array<SupportOption>
163+
|};
164+
165+
declare type Prettier = {|
166+
format: (source: string, options?: Options) => string,
167+
check: (source: string, options?: Options) => boolean,
168+
formatWithCursor: (source: string, options: CursorOptions) => CursorResult,
169+
resolveConfig: {
170+
(filePath: string, options?: ResolveConfigOptions): Promise<?Options>,
171+
sync(filePath: string, options?: ResolveConfigOptions): Promise<?Options>
172+
},
173+
clearConfigCache: () => void,
174+
getSupportInfo: (version?: string) => SupportInfo
175+
|};
176+
177+
declare export default Prettier;
178+
}

0 commit comments

Comments
 (0)