Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Schema support #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions flow-typed/npm/babel-preset-env_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: adbecc6086da14b2aee993ba427ca523
// flow-typed version: <<STUB>>/babel-preset-env_v^1.4.0/flow_v0.45.0
// flow-typed signature: b9655deff9baf244da6400c13e4b45ed
// flow-typed version: <<STUB>>/babel-preset-env_v^1.7.0/flow_v0.45.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -46,10 +46,18 @@ declare module 'babel-preset-env/lib/normalize-options' {
declare module.exports: any;
}

declare module 'babel-preset-env/lib/targets-parser' {
declare module.exports: any;
}

declare module 'babel-preset-env/lib/transform-polyfill-require-plugin' {
declare module.exports: any;
}

declare module 'babel-preset-env/lib/utils' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-preset-env/data/built-in-features.js' {
declare module.exports: $Exports<'babel-preset-env/data/built-in-features'>;
Expand All @@ -64,11 +72,21 @@ declare module 'babel-preset-env/lib/index.js' {
declare module.exports: $Exports<'babel-preset-env/lib/index'>;
}
declare module 'babel-preset-env/lib/module-transformations.js' {
declare module.exports: $Exports<'babel-preset-env/lib/module-transformations'>;
declare module.exports: $Exports<
'babel-preset-env/lib/module-transformations'
>;
}
declare module 'babel-preset-env/lib/normalize-options.js' {
declare module.exports: $Exports<'babel-preset-env/lib/normalize-options'>;
}
declare module 'babel-preset-env/lib/targets-parser.js' {
declare module.exports: $Exports<'babel-preset-env/lib/targets-parser'>;
}
declare module 'babel-preset-env/lib/transform-polyfill-require-plugin.js' {
declare module.exports: $Exports<'babel-preset-env/lib/transform-polyfill-require-plugin'>;
declare module.exports: $Exports<
'babel-preset-env/lib/transform-polyfill-require-plugin'
>;
}
declare module 'babel-preset-env/lib/utils.js' {
declare module.exports: $Exports<'babel-preset-env/lib/utils'>;
}
43 changes: 25 additions & 18 deletions flow-typed/npm/jest_v19.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 07da7976dee381abd05d21b890d521b9
// flow-typed version: fcaf13fb04/jest_v19.x.x/flow_>=v0.33.x
// flow-typed signature: 43bde837ea6d94234e6305f4018fcd49
// flow-typed version: da30fe6876/jest_v19.x.x/flow_>=v0.25.x

type JestMockFn = {
(...args: Array<any>): any,
Expand Down Expand Up @@ -55,14 +55,14 @@ type JestMockFn = {
* Sugar for only returning a value once inside your mock
*/
mockReturnValueOnce(value: any): JestMockFn,
}
};

type JestAsymmetricEqualityType = {
/**
* A custom Jasmine equality tester
*/
asymmetricMatch(value: mixed): boolean,
}
};

type JestCallsType = {
allArgs(): mixed,
Expand All @@ -72,19 +72,19 @@ type JestCallsType = {
first(): mixed,
mostRecent(): mixed,
reset(): void,
}
};

type JestClockType = {
install(): void,
mockDate(date: Date): void,
tick(milliseconds?:number): void,
tick(milliseconds?: number): void,
uninstall(): void,
}
};

type JestMatcherResult = {
message?: string | ()=>string,
message?: string | (() => string),
pass: boolean,
}
};

type JestMatcher = (actual: any, expected: any) => JestMatcherResult;

Expand Down Expand Up @@ -230,7 +230,7 @@ type JestExpectType = {
* matching the most recent snapshot when it is called.
*/
toThrowErrorMatchingSnapshot(): void,
}
};

type JestObjectType = {
/**
Expand Down Expand Up @@ -299,7 +299,11 @@ type JestObjectType = {
* The third argument can be used to create virtual mocks -- mocks of modules
* that don't exist anywhere in the system.
*/
mock(moduleName: string, moduleFactory?: any, options?: Object): JestObjectType,
mock(
moduleName: string,
moduleFactory?: any,
options?: Object
): JestObjectType,
/**
* Resets the module registry - the cache of all required modules. This is
* useful to isolate modules where local state might conflict between tests.
Expand Down Expand Up @@ -357,11 +361,11 @@ type JestObjectType = {
* object[methodName].
*/
spyOn(object: Object, methodName: string): JestMockFn,
}
};

type JestSpyType = {
calls: JestCallsType,
}
};

/** Runs this function after every test inside this context */
declare function afterEach(fn: Function): void;
Expand Down Expand Up @@ -422,7 +426,7 @@ declare var expect: {
/** The object that you want to make assertions against */
(value: any): JestExpectType,
/** Add additional Jasmine matchers to Jest's roster */
extend(matchers: {[name:string]: JestMatcher}): void,
extend(matchers: { [name: string]: JestMatcher }): void,
/** Add a module that formats application-specific data structures. */
addSnapshotSerializer(serializer: (input: Object) => string): void,
assertions(expectedAssertions: number): void,
Expand All @@ -440,10 +444,10 @@ declare var expect: {
declare function spyOn(value: mixed, method: string): Object;

/** Holds all functions related to manipulating test runner */
declare var jest: JestObjectType
declare var jest: JestObjectType;

/**
* The global Jamine object, this is generally not exposed as the public API,
* The global Jasmine object, this is generally not exposed as the public API,
* using features inside here could break in later versions of Jest.
*/
declare var jasmine: {
Expand All @@ -453,7 +457,10 @@ declare var jasmine: {
arrayContaining(value: Array<mixed>): void,
clock(): JestClockType,
createSpy(name: string): JestSpyType,
createSpyObj(baseName: string, methodNames: Array<string>): {[methodName: string]: JestSpyType},
createSpyObj(
baseName: string,
methodNames: Array<string>
): { [methodName: string]: JestSpyType },
objectContaining(value: Object): void,
stringMatching(value: string): void,
}
};
117 changes: 41 additions & 76 deletions flow-typed/npm/prettier_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 3a5c161028e32110257fb8c6fa78426c
// flow-typed version: <<STUB>>/prettier_v^1.3.1/flow_v0.45.0
// flow-typed signature: 82b3605b071bc6d69bb60a65f24b485e
// flow-typed version: <<STUB>>/prettier_v^1.14.3/flow_v0.45.0

/**
* This is an autogenerated libdef stub for:
Expand All @@ -22,136 +22,101 @@ declare module 'prettier' {
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'prettier/bin/prettier' {
declare module 'prettier/bin-prettier' {
declare module.exports: any;
}

declare module 'prettier/docs/prettier.min' {
declare module 'prettier/parser-babylon' {
declare module.exports: any;
}

declare module 'prettier/docs/rollup.config' {
declare module 'prettier/parser-flow' {
declare module.exports: any;
}

declare module 'prettier/scripts/sync-flow-tests' {
declare module 'prettier/parser-glimmer' {
declare module.exports: any;
}

declare module 'prettier/src/ast-types' {
declare module 'prettier/parser-graphql' {
declare module.exports: any;
}

declare module 'prettier/src/comments' {
declare module 'prettier/parser-markdown' {
declare module.exports: any;
}

declare module 'prettier/src/deprecated' {
declare module 'prettier/parser-parse5' {
declare module.exports: any;
}

declare module 'prettier/src/doc-builders' {
declare module 'prettier/parser-postcss' {
declare module.exports: any;
}

declare module 'prettier/src/doc-debug' {
declare module 'prettier/parser-typescript' {
declare module.exports: any;
}

declare module 'prettier/src/doc-printer' {
declare module 'prettier/parser-vue' {
declare module.exports: any;
}

declare module 'prettier/src/doc-utils' {
declare module 'prettier/parser-yaml' {
declare module.exports: any;
}

declare module 'prettier/src/fast-path' {
declare module 'prettier/standalone' {
declare module.exports: any;
}

declare module 'prettier/src/options' {
declare module.exports: any;
}

declare module 'prettier/src/parser' {
declare module.exports: any;
}

declare module 'prettier/src/printer' {
declare module.exports: any;
}

declare module 'prettier/src/typescript-ast-nodes' {
declare module.exports: any;
}

declare module 'prettier/src/util' {
declare module.exports: any;
}

declare module 'prettier/test' {
declare module 'prettier/third-party' {
declare module.exports: any;
}

// Filename aliases
declare module 'prettier/bin/prettier.js' {
declare module.exports: $Exports<'prettier/bin/prettier'>;
}
declare module 'prettier/docs/prettier.min.js' {
declare module.exports: $Exports<'prettier/docs/prettier.min'>;
}
declare module 'prettier/docs/rollup.config.js' {
declare module.exports: $Exports<'prettier/docs/rollup.config'>;
declare module 'prettier/bin-prettier.js' {
declare module.exports: $Exports<'prettier/bin-prettier'>;
}
declare module 'prettier/index' {
declare module.exports: $Exports<'prettier'>;
}
declare module 'prettier/index.js' {
declare module.exports: $Exports<'prettier'>;
}
declare module 'prettier/scripts/sync-flow-tests.js' {
declare module.exports: $Exports<'prettier/scripts/sync-flow-tests'>;
}
declare module 'prettier/src/ast-types.js' {
declare module.exports: $Exports<'prettier/src/ast-types'>;
}
declare module 'prettier/src/comments.js' {
declare module.exports: $Exports<'prettier/src/comments'>;
}
declare module 'prettier/src/deprecated.js' {
declare module.exports: $Exports<'prettier/src/deprecated'>;
declare module 'prettier/parser-babylon.js' {
declare module.exports: $Exports<'prettier/parser-babylon'>;
}
declare module 'prettier/src/doc-builders.js' {
declare module.exports: $Exports<'prettier/src/doc-builders'>;
declare module 'prettier/parser-flow.js' {
declare module.exports: $Exports<'prettier/parser-flow'>;
}
declare module 'prettier/src/doc-debug.js' {
declare module.exports: $Exports<'prettier/src/doc-debug'>;
declare module 'prettier/parser-glimmer.js' {
declare module.exports: $Exports<'prettier/parser-glimmer'>;
}
declare module 'prettier/src/doc-printer.js' {
declare module.exports: $Exports<'prettier/src/doc-printer'>;
declare module 'prettier/parser-graphql.js' {
declare module.exports: $Exports<'prettier/parser-graphql'>;
}
declare module 'prettier/src/doc-utils.js' {
declare module.exports: $Exports<'prettier/src/doc-utils'>;
declare module 'prettier/parser-markdown.js' {
declare module.exports: $Exports<'prettier/parser-markdown'>;
}
declare module 'prettier/src/fast-path.js' {
declare module.exports: $Exports<'prettier/src/fast-path'>;
declare module 'prettier/parser-parse5.js' {
declare module.exports: $Exports<'prettier/parser-parse5'>;
}
declare module 'prettier/src/options.js' {
declare module.exports: $Exports<'prettier/src/options'>;
declare module 'prettier/parser-postcss.js' {
declare module.exports: $Exports<'prettier/parser-postcss'>;
}
declare module 'prettier/src/parser.js' {
declare module.exports: $Exports<'prettier/src/parser'>;
declare module 'prettier/parser-typescript.js' {
declare module.exports: $Exports<'prettier/parser-typescript'>;
}
declare module 'prettier/src/printer.js' {
declare module.exports: $Exports<'prettier/src/printer'>;
declare module 'prettier/parser-vue.js' {
declare module.exports: $Exports<'prettier/parser-vue'>;
}
declare module 'prettier/src/typescript-ast-nodes.js' {
declare module.exports: $Exports<'prettier/src/typescript-ast-nodes'>;
declare module 'prettier/parser-yaml.js' {
declare module.exports: $Exports<'prettier/parser-yaml'>;
}
declare module 'prettier/src/util.js' {
declare module.exports: $Exports<'prettier/src/util'>;
declare module 'prettier/standalone.js' {
declare module.exports: $Exports<'prettier/standalone'>;
}
declare module 'prettier/test.js' {
declare module.exports: $Exports<'prettier/test'>;
declare module 'prettier/third-party.js' {
declare module.exports: $Exports<'prettier/third-party'>;
}
18 changes: 18 additions & 0 deletions flow-typed/npm/rimraf_v2.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// flow-typed signature: 1dff23447d5e18f5ac2b05aaec7cfb74
// flow-typed version: a453e98ea2/rimraf_v2.x.x/flow_>=v0.25.0

declare module 'rimraf' {
declare type Options = {
maxBusyTries?: number,
emfileWait?: number,
glob?: boolean,
disableGlob?: boolean,
};

declare type Callback = (err: ?Error, path: ?string) => void;

declare module.exports: {
(f: string, opts?: Options | Callback, callback?: Callback): void,
sync(path: string, opts?: Options): void,
};
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@
"dependencies": {
"deep-for-each": "^1.0.6",
"is-function": "^1.0.1"
},
"peerDependencies": {
"graphql": "^0.11"
}
}
Loading