diff --git a/flow-typed/npm/@commitlint/cli_vx.x.x.js b/flow-typed/npm/@commitlint/cli_vx.x.x.js index 4dbd432..f23ee47 100644 --- a/flow-typed/npm/@commitlint/cli_vx.x.x.js +++ b/flow-typed/npm/@commitlint/cli_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 6b3e411701babc2e6f6520580da2616a -// flow-typed version: <>/@commitlint/cli_v^5.2.5/flow_v0.61.0 +// flow-typed signature: 5f0766f389bd6c2e4cdc471f118fb6a3 +// flow-typed version: <>/@commitlint/cli_v^6.0.2/flow_v0.76.0 /** * This is an autogenerated libdef stub for: @@ -38,6 +38,10 @@ declare module '@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.conf declare module.exports: any; } +declare module '@commitlint/cli/fixtures/issue-prefixes/commitlint.config' { + declare module.exports: any; +} + declare module '@commitlint/cli/fixtures/outer-scope/commitlint.config' { declare module.exports: any; } @@ -95,6 +99,9 @@ declare module '@commitlint/cli/fixtures/inner-scope/commitlint.config.js' { declare module '@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config.js' { declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config'>; } +declare module '@commitlint/cli/fixtures/issue-prefixes/commitlint.config.js' { + declare module.exports: $Exports<'@commitlint/cli/fixtures/issue-prefixes/commitlint.config'>; +} declare module '@commitlint/cli/fixtures/outer-scope/commitlint.config.js' { declare module.exports: $Exports<'@commitlint/cli/fixtures/outer-scope/commitlint.config'>; } diff --git a/flow-typed/npm/@commitlint/config-conventional_vx.x.x.js b/flow-typed/npm/@commitlint/config-conventional_vx.x.x.js index d4f0fe8..83ecdef 100644 --- a/flow-typed/npm/@commitlint/config-conventional_vx.x.x.js +++ b/flow-typed/npm/@commitlint/config-conventional_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 211481ade58a5d1b48d157e08d068cc3 -// flow-typed version: <>/@commitlint/config-conventional_v^5.2.3/flow_v0.61.0 +// flow-typed signature: c3a68026c0b53318c65a252945ad9bd4 +// flow-typed version: <>/@commitlint/config-conventional_v^6.0.2/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/@jedwards1211/commitlint-config_vx.x.x.js b/flow-typed/npm/@jedwards1211/commitlint-config_vx.x.x.js new file mode 100644 index 0000000..268c09d --- /dev/null +++ b/flow-typed/npm/@jedwards1211/commitlint-config_vx.x.x.js @@ -0,0 +1,32 @@ +// flow-typed signature: 012fde4b8c25e76b9e347dc1eb64d6e4 +// flow-typed version: <>/@jedwards1211/commitlint-config_v^1.0.0/flow_v0.76.0 + +/** + * This is an autogenerated libdef stub for: + * + * '@jedwards1211/commitlint-config' + * + * 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 '@jedwards1211/commitlint-config' { + 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 '@jedwards1211/commitlint-config/commitlint.config' { + declare module.exports: any; +} + +// Filename aliases +declare module '@jedwards1211/commitlint-config/commitlint.config.js' { + declare module.exports: $Exports<'@jedwards1211/commitlint-config/commitlint.config'>; +} diff --git a/flow-typed/npm/@jedwards1211/eslint-config-flow_vx.x.x.js b/flow-typed/npm/@jedwards1211/eslint-config-flow_vx.x.x.js index 2b017d4..047a32d 100644 --- a/flow-typed/npm/@jedwards1211/eslint-config-flow_vx.x.x.js +++ b/flow-typed/npm/@jedwards1211/eslint-config-flow_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 7be3f328e60a5bb311c142ba0bf1e16d -// flow-typed version: <>/@jedwards1211/eslint-config-flow_v^1.0.0/flow_v0.61.0 +// flow-typed signature: e94dbbfd8ca6bb3c86bf1e8ee4483e06 +// flow-typed version: <>/@jedwards1211/eslint-config-flow_v^1.0.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/@jedwards1211/eslint-config_vx.x.x.js b/flow-typed/npm/@jedwards1211/eslint-config_vx.x.x.js index c4454db..88f5628 100644 --- a/flow-typed/npm/@jedwards1211/eslint-config_vx.x.x.js +++ b/flow-typed/npm/@jedwards1211/eslint-config_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 6be0a15102c7305fbc30e7744c9e0e60 -// flow-typed version: <>/@jedwards1211/eslint-config_v^1.0.0/flow_v0.61.0 +// flow-typed signature: 1b52e324d113ff62464883e99068356f +// flow-typed version: <>/@jedwards1211/eslint-config_v^2.0.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/apollo-cache-inmemory_vx.x.x.js b/flow-typed/npm/apollo-cache-inmemory_vx.x.x.js new file mode 100644 index 0000000..d917433 --- /dev/null +++ b/flow-typed/npm/apollo-cache-inmemory_vx.x.x.js @@ -0,0 +1,109 @@ +// flow-typed signature: 6c4879fffa15bd87a84e50e44c654266 +// flow-typed version: <>/apollo-cache-inmemory_v^1.2.5/flow_v0.76.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'apollo-cache-inmemory' + * + * 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 'apollo-cache-inmemory' { + 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 'apollo-cache-inmemory/lib/bundle.umd' { + declare module.exports: any; +} + +declare module 'apollo-cache-inmemory/lib/fragmentMatcher' { + declare module.exports: any; +} + +declare module 'apollo-cache-inmemory/lib/fragmentMatcherIntrospectionQuery' { + declare module.exports: any; +} + +declare module 'apollo-cache-inmemory/lib/index' { + declare module.exports: any; +} + +declare module 'apollo-cache-inmemory/lib/inMemoryCache' { + declare module.exports: any; +} + +declare module 'apollo-cache-inmemory/lib/mapCache' { + declare module.exports: any; +} + +declare module 'apollo-cache-inmemory/lib/objectCache' { + declare module.exports: any; +} + +declare module 'apollo-cache-inmemory/lib/readFromStore' { + declare module.exports: any; +} + +declare module 'apollo-cache-inmemory/lib/recordingCache' { + declare module.exports: any; +} + +declare module 'apollo-cache-inmemory/lib/types' { + declare module.exports: any; +} + +declare module 'apollo-cache-inmemory/lib/writeToStore' { + declare module.exports: any; +} + +declare module 'apollo-cache-inmemory/rollup.config' { + declare module.exports: any; +} + +// Filename aliases +declare module 'apollo-cache-inmemory/lib/bundle.umd.js' { + declare module.exports: $Exports<'apollo-cache-inmemory/lib/bundle.umd'>; +} +declare module 'apollo-cache-inmemory/lib/fragmentMatcher.js' { + declare module.exports: $Exports<'apollo-cache-inmemory/lib/fragmentMatcher'>; +} +declare module 'apollo-cache-inmemory/lib/fragmentMatcherIntrospectionQuery.js' { + declare module.exports: $Exports<'apollo-cache-inmemory/lib/fragmentMatcherIntrospectionQuery'>; +} +declare module 'apollo-cache-inmemory/lib/index.js' { + declare module.exports: $Exports<'apollo-cache-inmemory/lib/index'>; +} +declare module 'apollo-cache-inmemory/lib/inMemoryCache.js' { + declare module.exports: $Exports<'apollo-cache-inmemory/lib/inMemoryCache'>; +} +declare module 'apollo-cache-inmemory/lib/mapCache.js' { + declare module.exports: $Exports<'apollo-cache-inmemory/lib/mapCache'>; +} +declare module 'apollo-cache-inmemory/lib/objectCache.js' { + declare module.exports: $Exports<'apollo-cache-inmemory/lib/objectCache'>; +} +declare module 'apollo-cache-inmemory/lib/readFromStore.js' { + declare module.exports: $Exports<'apollo-cache-inmemory/lib/readFromStore'>; +} +declare module 'apollo-cache-inmemory/lib/recordingCache.js' { + declare module.exports: $Exports<'apollo-cache-inmemory/lib/recordingCache'>; +} +declare module 'apollo-cache-inmemory/lib/types.js' { + declare module.exports: $Exports<'apollo-cache-inmemory/lib/types'>; +} +declare module 'apollo-cache-inmemory/lib/writeToStore.js' { + declare module.exports: $Exports<'apollo-cache-inmemory/lib/writeToStore'>; +} +declare module 'apollo-cache-inmemory/rollup.config.js' { + declare module.exports: $Exports<'apollo-cache-inmemory/rollup.config'>; +} diff --git a/flow-typed/npm/apollo-client_v2.x.x.js b/flow-typed/npm/apollo-client_v2.x.x.js new file mode 100644 index 0000000..ee20819 --- /dev/null +++ b/flow-typed/npm/apollo-client_v2.x.x.js @@ -0,0 +1,709 @@ +// flow-typed signature: ae6dd2fff7718a6434052f6830bf129b +// flow-typed version: 2cbae06e0e/apollo-client_v2.x.x/flow_>=v0.57.x + +import type {DocumentNode, ExecutionResult, GraphQLError} from 'graphql'; + +declare module "apollo-client" { + declare type OperationVariables = { [key: string]: any }; + + declare export function print(ast: any): string; + + declare export class ObservableQuery extends Observable< + ApolloQueryResult + > { + options: WatchQueryOptions; + queryId: string; + variables: { [key: string]: any }; + isCurrentlyPolling: boolean; + shouldSubscribe: boolean; + isTornDown: boolean; + scheduler: QueryScheduler; + queryManager: QueryManager; + observers: Observer>[]; + subscriptionHandles: SubscriptionLINK[]; + lastResult: ApolloQueryResult; + lastError: ApolloError; + lastVariables: { [key: string]: any }; + + constructor(data: { + scheduler: QueryScheduler, + options: WatchQueryOptions, + shouldSubscribe?: boolean + }): this; + + result(): Promise>; + currentResult(): ApolloCurrentResult; + getLastResult(): ApolloQueryResult; + getLastError(): ApolloError; + resetLastResults(): void; + refetch(variables?: any): Promise>; + fetchMore( + fetchMoreOptions: FetchMoreQueryOptions & FetchMoreOptions + ): Promise>; + subscribeToMore(options: SubscribeToMoreOptions): () => void; + setOptions( + opts: ModifiableWatchQueryOptions + ): Promise>; + setVariables( + variables: any, + tryFetch?: boolean, + fetchResults?: boolean + ): Promise>; + updateQuery( + mapFn: (previousQueryResult: any, options: UpdateQueryOptions) => any + ): void; + stopPolling(): void; + startPolling(pollInterval: number): void; + } + + declare class QueryManager { + scheduler: QueryScheduler; + link: ApolloLink; + mutationStore: MutationStore; + queryStore: QueryStore; + dataStore: DataStore; + queries: Map}>; + + constructor({ + link: ApolloLink, + queryDeduplication?: boolean, + store: DataStore, + onBroadcast?: () => void, + ssrMode?: boolean + }): this; + + mutate(options: MutationOptions<>): Promise>; + fetchQuery( + queryId: string, + options: WatchQueryOptions, + fetchType?: FetchType, + fetchMoreForQueryId?: string + ): Promise>; + queryListenerForObserver( + queryId: string, + options: WatchQueryOptions, + observer: Observer> + ): QueryListener; + watchQuery( + options: WatchQueryOptions, + shouldSubscribe?: boolean + ): ObservableQuery; + query(options: WatchQueryOptions): Promise>; + generateQueryId(): string; + stopQueryInStore(queryId: string): void; + addQueryListener(queryId: string, listener: QueryListener): void; + updateQueryWatch( + queryId: string, + document: DocumentNode, + options: WatchQueryOptions + ): void; + addFetchQueryPromise( + requestId: number, + promise: Promise>, + resolve: (result: ApolloQueryResult) => void, + reject: (error: Error) => void + ): void; + removeFetchQueryPromise(requestId: number): void; + addObservableQuery( + queryId: string, + observableQuery: ObservableQuery + ): void; + removeObservableQuery(queryId: string): void; + clearStore(): Promise; + resetStore(): Promise[]>; + } + + declare class QueryStore { + getStore(): { [queryId: string]: QueryStoreValue }; + get(queryId: string): QueryStoreValue; + initQuery(query: { + queryId: string, + document: DocumentNode, + storePreviousVariables: boolean, + variables: Object, + isPoll: boolean, + isRefetch: boolean, + metadata: any, + fetchMoreForQueryId: string | void + }): void; + markQueryResult( + queryId: string, + result: ExecutionResult<>, + fetchMoreForQueryId: string | void + ): void; + markQueryError( + queryId: string, + error: Error, + fetchMoreForQueryId: string | void + ): void; + markQueryResultClient(queryId: string, complete: boolean): void; + stopQuery(queryId: string): void; + reset(observableQueryIds: string[]): void; + } + + declare class QueryScheduler { + inFlightQueries: { [queryId: string]: WatchQueryOptions }; + registeredQueries: { [queryId: string]: WatchQueryOptions }; + intervalQueries: { [interval: number]: string[] }; + queryManager: QueryManager; + constructor({ + queryManager: QueryManager, + ssrMode?: boolean + }): this; + checkInFlight(queryId: string): ?boolean; + fetchQuery( + queryId: string, + options: WatchQueryOptions, + fetchType: FetchType + ): Promise>; + startPollingQuery( + options: WatchQueryOptions, + queryId: string, + listener?: QueryListener + ): string; + stopPollingQuery(queryId: string): void; + fetchQueriesOnInterval(interval: number): void; + addQueryOnInterval( + queryId: string, + queryOptions: WatchQueryOptions + ): void; + registerPollingQuery( + queryOptions: WatchQueryOptions + ): ObservableQuery; + markMutationError(mutationId: string, error: Error): void; + reset(): void; + } + + declare class DataStore { + constructor(initialCache: ApolloCache): this; + getCache(): ApolloCache; + markQueryResult( + result: ExecutionResult<>, + document: DocumentNode, + variables: any, + fetchMoreForQueryId: string | void, + ignoreErrors?: boolean + ): void; + markSubscriptionResult( + result: ExecutionResult<>, + document: DocumentNode, + variables: any + ): void; + markMutationInit(mutation: { + mutationId: string, + document: DocumentNode, + variables: any, + updateQueries: { [queryId: string]: QueryWithUpdater }, + update: ((proxy: DataProxy, mutationResult: Object) => void) | void, + optimisticResponse: Object | Function | void + }): void; + markMutationResult(mutation: { + mutationId: string, + result: ExecutionResult<>, + document: DocumentNode, + variables: any, + updateQueries: { [queryId: string]: QueryWithUpdater }, + update: ((proxy: DataProxy, mutationResult: Object) => void) | void + }): void; + markMutationComplete({ + mutationId: string, + optimisticResponse?: any + }): void; + markUpdateQueryResult( + document: DocumentNode, + variables: any, + newResult: any + ): void; + reset(): Promise; + } + + declare type QueryWithUpdater = { + updater: MutationQueryReducer, + query: QueryStoreValue + }; + + declare interface MutationStoreValue { + mutationString: string; + variables: Object; + loading: boolean; + error: Error | null; + } + + declare class MutationStore { + getStore(): { [mutationId: string]: MutationStoreValue }; + get(mutationId: string): MutationStoreValue; + initMutation( + mutationId: string, + mutationString: string, + variables: Object | void + ): void; + } + + declare export interface FetchMoreOptions { + updateQuery: ( + previousQueryResult: TData, + options: { + fetchMoreResult?: TData, + variables: TVariables + } + ) => TData; + } + + declare export interface UpdateQueryOptions { + variables?: Object; + } + + declare export type ApolloCurrentResult = { + data: T | {}, + errors?: Array, + loading: boolean, + networkStatus: NetworkStatus, + error?: ApolloError, + partial?: boolean + }; + + declare interface ModifiableWatchQueryOptions { + variables?: { [key: string]: any }; + pollInterval?: number; + fetchPolicy?: FetchPolicy; + errorPolicy?: ErrorPolicy; + fetchResults?: boolean; + notifyOnNetworkStatusChange?: boolean; + } + + declare export interface WatchQueryOptions + extends ModifiableWatchQueryOptions { + query: DocumentNode; + metadata?: any; + context?: any; + } + + declare type RefetchQueryDescription = Array; + + declare interface MutationBaseOptions { + optimisticResponse?: Object | Function; + updateQueries?: MutationQueryReducersMap; + optimisticResponse?: Object; + refetchQueries?: + | ((result: ExecutionResult<>) => RefetchQueryDescription) + | RefetchQueryDescription; + update?: MutationUpdaterFn; + errorPolicy?: ErrorPolicy; + variables?: any; + } + + declare export type MutationOperation = (options: MutationBaseOptions) => Promise> + + declare export interface MutationOptions + extends MutationBaseOptions { + mutation: DocumentNode; + context?: any; + fetchPolicy?: FetchPolicy; + } + + declare export interface SubscriptionOptions { + query: DocumentNode; + variables?: { [key: string]: any }; + } + + declare export type FetchPolicy = + | "cache-first" + | "cache-and-network" + | "network-only" + | "cache-only" + | "no-cache" + | "standby"; + + declare export type ErrorPolicy = "none" | "ignore" | "all"; + + declare export interface FetchMoreQueryOptions { + variables: $Shape; + } + + declare export type SubscribeToMoreOptions< + TData, + TSubscriptionData, + TSubscriptionVariables = void + > = { + document?: DocumentNode, + variables?: TSubscriptionVariables, + updateQuery?: ( + previousResult: TData, + result: { + subscriptionData: { data?: TSubscriptionData }, + variables: TSubscriptionVariables + } + ) => TData, + onError?: (error: Error) => void + }; + + declare export type MutationUpdaterFn = ( + proxy: DataProxy, + mutationResult: FetchResult + ) => void; + + declare export type NetworkStatus = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; + + declare export type QueryListener = ( + queryStoreValue: QueryStoreValue, + newData?: any + ) => void; + + declare export type QueryStoreValue = { + document: DocumentNode, + variables: Object, + previousVariables: Object | null, + networkStatus: NetworkStatus, + networkError: Error | null, + graphQLErrors: GraphQLError[], + metadata: any + }; + + declare export type PureQueryOptions = { + query: DocumentNode, + variables?: { [key: string]: any } + }; + + declare export type ApolloQueryResult = { + data: T, + errors?: Array, + loading: boolean, + networkStatus: NetworkStatus, + stale: boolean + }; + + declare export type FetchType = 1 | 2 | 3; + + declare export type MutationQueryReducer = ( + previousResult: { [key: string]: any }, + options: { + mutationResult: FetchResult, + queryName: string | void, + queryVariables: { [key: string]: any } + } + ) => { [key: string]: any }; + + declare export type MutationQueryReducersMap = { + [queryName: string]: MutationQueryReducer + }; + + declare export class ApolloError extends Error { + message: string; + graphQLErrors: Array; + networkError: Error | null; + extraInfo: any; + constructor(info: ErrorConstructor): this; + } + + declare interface ErrorConstructor { + graphQLErrors?: Array; + networkError?: Error | null; + errorMessage?: string; + extraInfo?: any; + } + + declare interface DefaultOptions { + +watchQuery?: ModifiableWatchQueryOptions; + +query?: ModifiableWatchQueryOptions; + +mutate?: MutationBaseOptions<>; + } + + declare type ApolloClientOptions = { + link: ApolloLink, + cache: ApolloCache, + ssrMode?: boolean, + ssrForceFetchDelay?: number, + connectToDevTools?: boolean, + queryDeduplication?: boolean, + defaultOptions?: DefaultOptions + }; + + declare export class ApolloClient { + link: ApolloLink; + store: DataStore; + cache: ApolloCache; + queryManager: QueryManager; + disableNetworkFetches: boolean; + version: string; + queryDeduplication: boolean; + defaultOptions: DefaultOptions; + devToolsHookCb: Function; + proxy: ApolloCache | void; + ssrMode: boolean; + resetStoreCallbacks: Array<() => Promise>; + + constructor(options: ApolloClientOptions): this; + watchQuery(options: WatchQueryOptions): ObservableQuery; + query(options: WatchQueryOptions): Promise>; + mutate(options: MutationOptions): Promise>; + subscribe(options: SubscriptionOptions): Observable; + readQuery(options: DataProxyReadQueryOptions): T | null; + readFragment(options: DataProxyReadFragmentOptions): T | null; + writeQuery(options: DataProxyWriteQueryOptions): void; + writeFragment(options: DataProxyWriteFragmentOptions): void; + writeData(options: DataProxyWriteDataOptions): void; + __actionHookForDevTools(cb: () => any): void; + __requestRaw(payload: GraphQLRequest): Observable>; + initQueryManager(): void; + resetStore(): Promise> | null>; + onResetStore(cb: () => Promise): () => void; + reFetchObservableQueries( + includeStandby?: boolean + ): Promise[]> | Promise; + extract(optimistic?: boolean): TCacheShape; + restore(serializedState: TCacheShape): ApolloCache; + } + + declare export default typeof ApolloClient; + + /* apollo-link types */ + declare export class ApolloLink { + constructor(request?: RequestHandler): this; + + static empty(): ApolloLink; + static from(links: Array): ApolloLink; + static split( + test: (op: Operation) => boolean, + left: ApolloLink | RequestHandler, + right: ApolloLink | RequestHandler + ): ApolloLink; + static execute( + link: ApolloLink, + operation: GraphQLRequest + ): Observable>; + + split( + test: (op: Operation) => boolean, + left: ApolloLink | RequestHandler, + right: ApolloLink | RequestHandler + ): ApolloLink; + + concat(next: ApolloLink | RequestHandler): ApolloLink; + + request( + operation: Operation, + forward?: NextLink + ): Observable> | null; + } + + declare interface GraphQLRequest { + query: DocumentNode; + variables?: { [key: string]: any }; + operationName?: string; + context?: { [key: string]: any }; + extensions?: { [key: string]: any }; + } + + declare interface Operation { + query: DocumentNode; + variables: { [key: string]: any }; + operationName: string; + extensions: { [key: string]: any }; + setContext: (context: { [key: string]: any }) => { [key: string]: any }; + getContext: () => { [key: string]: any }; + toKey: () => string; + } + + declare type FetchResult< + C = { [key: string]: any }, + E = { [key: string]: any } + > = ExecutionResult & { extension?: E, context?: C }; + + declare type NextLink = (operation: Operation) => Observable>; + + declare type RequestHandler = ( + operation: Operation, + forward?: NextLink + ) => Observable> | null; + + declare class Observable { + subscribe( + observerOrNext: ((value: T) => void) | ZenObservableObserver, + error?: (error: any) => void, + complete?: () => void + ): ZenObservableSubscription; + + forEach(fn: (value: T) => void): Promise; + + map(fn: (value: T) => R): Observable; + + filter(fn: (value: T) => boolean): Observable; + + reduce( + fn: (previousValue: R | T, currentValue: T) => R | T, + initialValue?: R | T + ): Observable; + + flatMap(fn: (value: T) => ZenObservableObservableLike): Observable; + + from( + observable: Observable | ZenObservableObservableLike | Array + ): Observable; + + of(...args: Array): Observable; + } + + declare interface Observer { + start?: (subscription: SubscriptionLINK) => any; + next?: (value: T) => void; + error?: (errorValue: any) => void; + complete?: () => void; + } + + declare interface SubscriptionLINK { + closed: boolean; + unsubscribe(): void; + } + + declare interface ZenObservableSubscriptionObserver { + closed: boolean; + next(value: T): void; + error(errorValue: any): void; + complete(): void; + } + + declare interface ZenObservableSubscription { + closed: boolean; + unsubscribe(): void; + } + + declare interface ZenObservableObserver { + start?: (subscription: ZenObservableSubscription) => any; + next?: (value: T) => void; + error?: (errorValue: any) => void; + complete?: () => void; + } + + declare type ZenObservableSubscriber = ( + observer: ZenObservableSubscriptionObserver + ) => void | (() => void) | SubscriptionLINK; + + declare interface ZenObservableObservableLike { + subscribe?: ZenObservableSubscriber; + } + /* apollo-link types */ + + /* apollo-cache types */ + declare export class ApolloCache { + read(query: CacheReadOptions): T | null; + write(write: CacheWriteOptions): void; + diff(query: CacheDiffOptions): CacheDiffResult; + watch(watch: CacheWatchOptions): () => void; + evict(query: CacheEvictOptions): CacheEvictionResult; + reset(): Promise; + + restore(serializedState: TSerialized): ApolloCache; + extract(optimistic?: boolean): TSerialized; + + removeOptimistic(id: string): void; + + performTransaction(transaction: Transaction): void; + recordOptimisticTransaction( + transaction: Transaction, + id: string + ): void; + + transformDocument(document: DocumentNode): DocumentNode; + transformForLink(document: DocumentNode): DocumentNode; + + readQuery( + options: DataProxyReadQueryOptions, + optimistic?: boolean + ): QueryType | null; + readFragment( + options: DataProxyReadFragmentOptions, + optimistic?: boolean + ): FragmentType | null; + writeQuery(options: CacheWriteQueryOptions): void; + writeFragment(options: CacheWriteFragmentOptions): void; + writeData(options: CacheWriteDataOptions): void; + } + + declare type Transaction = (c: ApolloCache) => void; + + declare type CacheWatchCallback = (newData: any) => void; + + declare interface CacheEvictionResult { + success: boolean; + } + + declare interface CacheReadOptions extends DataProxyReadQueryOptions { + rootId?: string; + previousResult?: any; + optimistic: boolean; + } + + declare interface CacheWriteOptions extends DataProxyReadQueryOptions { + dataId: string; + result: any; + } + + declare interface CacheDiffOptions extends CacheReadOptions { + returnPartialData?: boolean; + } + + declare interface CacheWatchOptions extends CacheReadOptions { + callback: CacheWatchCallback; + } + + declare interface CacheEvictOptions extends DataProxyReadQueryOptions { + rootId?: string; + } + + declare type CacheDiffResult = DataProxyDiffResult; + declare type CacheWriteQueryOptions = DataProxyWriteQueryOptions; + declare type CacheWriteFragmentOptions = DataProxyWriteFragmentOptions; + declare type CacheWriteDataOptions = DataProxyWriteDataOptions; + declare type CacheReadFragmentOptions = DataProxyReadFragmentOptions; + + declare interface DataProxyReadQueryOptions { + query: DocumentNode; + variables?: any; + } + + declare interface DataProxyReadFragmentOptions { + id: string; + fragment: DocumentNode; + fragmentName?: string; + variables?: any; + } + + declare interface DataProxyWriteQueryOptions { + data: any; + query: DocumentNode; + variables?: any; + } + + declare interface DataProxyWriteFragmentOptions { + data: any; + id: string; + fragment: DocumentNode; + fragmentName?: string; + variables?: any; + } + + declare interface DataProxyWriteDataOptions { + data: any; + id?: string; + } + + declare type DataProxyDiffResult = { + result?: T, + complete?: boolean + }; + + declare interface DataProxy { + readQuery( + options: DataProxyReadQueryOptions, + optimistic?: boolean + ): QueryType | null; + readFragment( + options: DataProxyReadFragmentOptions, + optimistic?: boolean + ): FragmentType | null; + writeQuery(options: DataProxyWriteQueryOptions): void; + writeFragment(options: DataProxyWriteFragmentOptions): void; + writeData(options: DataProxyWriteDataOptions): void; + } + /* End apollo-cache types */ +} diff --git a/flow-typed/npm/apollo-link-schema_vx.x.x.js b/flow-typed/npm/apollo-link-schema_vx.x.x.js new file mode 100644 index 0000000..3110b06 --- /dev/null +++ b/flow-typed/npm/apollo-link-schema_vx.x.x.js @@ -0,0 +1,53 @@ +// flow-typed signature: 61d0b3241effb938c5029efba8ea0968 +// flow-typed version: <>/apollo-link-schema_v^1.1.0/flow_v0.76.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'apollo-link-schema' + * + * 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 'apollo-link-schema' { + 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 'apollo-link-schema/lib/bundle.umd' { + declare module.exports: any; +} + +declare module 'apollo-link-schema/lib/index' { + declare module.exports: any; +} + +declare module 'apollo-link-schema/lib/schemaLink' { + declare module.exports: any; +} + +declare module 'apollo-link-schema/rollup.config' { + declare module.exports: any; +} + +// Filename aliases +declare module 'apollo-link-schema/lib/bundle.umd.js' { + declare module.exports: $Exports<'apollo-link-schema/lib/bundle.umd'>; +} +declare module 'apollo-link-schema/lib/index.js' { + declare module.exports: $Exports<'apollo-link-schema/lib/index'>; +} +declare module 'apollo-link-schema/lib/schemaLink.js' { + declare module.exports: $Exports<'apollo-link-schema/lib/schemaLink'>; +} +declare module 'apollo-link-schema/rollup.config.js' { + declare module.exports: $Exports<'apollo-link-schema/rollup.config'>; +} diff --git a/flow-typed/npm/babel-cli_vx.x.x.js b/flow-typed/npm/babel-cli_vx.x.x.js index 06f7d01..1264113 100644 --- a/flow-typed/npm/babel-cli_vx.x.x.js +++ b/flow-typed/npm/babel-cli_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: debed58282ea443d028bc66577ab76de -// flow-typed version: <>/babel-cli_v^6.23.0/flow_v0.61.0 +// flow-typed signature: e230324b64fc30a79b77f0ecaff52caf +// flow-typed version: <>/babel-cli_v^6.23.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-core_vx.x.x.js b/flow-typed/npm/babel-core_vx.x.x.js index a11e9d3..df050c4 100644 --- a/flow-typed/npm/babel-core_vx.x.x.js +++ b/flow-typed/npm/babel-core_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 669de618145bac35eba54f80d782f867 -// flow-typed version: <>/babel-core_v^6.23.1/flow_v0.61.0 +// flow-typed signature: 84663a5b988036af23600dfa2759cbdd +// flow-typed version: <>/babel-core_v^6.23.1/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-eslint_vx.x.x.js b/flow-typed/npm/babel-eslint_vx.x.x.js index 17f8351..9df3217 100644 --- a/flow-typed/npm/babel-eslint_vx.x.x.js +++ b/flow-typed/npm/babel-eslint_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 6b5138b496b1c155bc0d934dce2ec44f -// flow-typed version: <>/babel-eslint_v^7.1.1/flow_v0.61.0 +// flow-typed signature: fe6cf224e29111d6b8ec2426d88be7f5 +// flow-typed version: <>/babel-eslint_v^7.1.1/flow_v0.76.0 /** * This is an autogenerated libdef stub for: @@ -26,6 +26,10 @@ declare module 'babel-eslint/babylon-to-espree/attachComments' { declare module.exports: any; } +declare module 'babel-eslint/babylon-to-espree/convertComments' { + declare module.exports: any; +} + declare module 'babel-eslint/babylon-to-espree/convertTemplateType' { declare module.exports: any; } @@ -50,6 +54,9 @@ declare module 'babel-eslint/babylon-to-espree/toTokens' { declare module 'babel-eslint/babylon-to-espree/attachComments.js' { declare module.exports: $Exports<'babel-eslint/babylon-to-espree/attachComments'>; } +declare module 'babel-eslint/babylon-to-espree/convertComments.js' { + declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertComments'>; +} declare module 'babel-eslint/babylon-to-espree/convertTemplateType.js' { declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertTemplateType'>; } diff --git a/flow-typed/npm/babel-plugin-istanbul_vx.x.x.js b/flow-typed/npm/babel-plugin-istanbul_vx.x.x.js index d4598a6..93707f0 100644 --- a/flow-typed/npm/babel-plugin-istanbul_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-istanbul_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: c4168d117917dbd4a5fabebea5285444 -// flow-typed version: <>/babel-plugin-istanbul_v^4.0.0/flow_v0.61.0 +// flow-typed signature: 017910737b8e43acdefc38a395d6e944 +// flow-typed version: <>/babel-plugin-istanbul_v^4.0.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-syntax-dynamic-import_vx.x.x.js b/flow-typed/npm/babel-plugin-syntax-dynamic-import_vx.x.x.js new file mode 100644 index 0000000..ed923e6 --- /dev/null +++ b/flow-typed/npm/babel-plugin-syntax-dynamic-import_vx.x.x.js @@ -0,0 +1,32 @@ +// flow-typed signature: d250d8205eb3ca26437b09892d3bcddb +// flow-typed version: <>/babel-plugin-syntax-dynamic-import_v^6.18.0/flow_v0.76.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'babel-plugin-syntax-dynamic-import' + * + * 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 'babel-plugin-syntax-dynamic-import' { + 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 'babel-plugin-syntax-dynamic-import/lib/index' { + declare module.exports: any; +} + +// Filename aliases +declare module 'babel-plugin-syntax-dynamic-import/lib/index.js' { + declare module.exports: $Exports<'babel-plugin-syntax-dynamic-import/lib/index'>; +} diff --git a/flow-typed/npm/babel-plugin-transform-class-properties_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-class-properties_vx.x.x.js new file mode 100644 index 0000000..7ecf3f2 --- /dev/null +++ b/flow-typed/npm/babel-plugin-transform-class-properties_vx.x.x.js @@ -0,0 +1,32 @@ +// flow-typed signature: eebd75aac9101b8de7b9d665f7d1cbc0 +// flow-typed version: <>/babel-plugin-transform-class-properties_v^6.24.1/flow_v0.76.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'babel-plugin-transform-class-properties' + * + * 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 'babel-plugin-transform-class-properties' { + 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 'babel-plugin-transform-class-properties/lib/index' { + declare module.exports: any; +} + +// Filename aliases +declare module 'babel-plugin-transform-class-properties/lib/index.js' { + declare module.exports: $Exports<'babel-plugin-transform-class-properties/lib/index'>; +} diff --git a/flow-typed/npm/babel-plugin-transform-export-extensions_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-export-extensions_vx.x.x.js new file mode 100644 index 0000000..da3f513 --- /dev/null +++ b/flow-typed/npm/babel-plugin-transform-export-extensions_vx.x.x.js @@ -0,0 +1,32 @@ +// flow-typed signature: 5b731086cc5b2486f6829d7cf20b3d62 +// flow-typed version: <>/babel-plugin-transform-export-extensions_v^6.22.0/flow_v0.76.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'babel-plugin-transform-export-extensions' + * + * 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 'babel-plugin-transform-export-extensions' { + 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 'babel-plugin-transform-export-extensions/lib/index' { + declare module.exports: any; +} + +// Filename aliases +declare module 'babel-plugin-transform-export-extensions/lib/index.js' { + declare module.exports: $Exports<'babel-plugin-transform-export-extensions/lib/index'>; +} diff --git a/flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js new file mode 100644 index 0000000..2e8a650 --- /dev/null +++ b/flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js @@ -0,0 +1,32 @@ +// flow-typed signature: 7e69a48cd48beeefe11bbc4016d6f041 +// flow-typed version: <>/babel-plugin-transform-object-rest-spread_v^6.26.0/flow_v0.76.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'babel-plugin-transform-object-rest-spread' + * + * 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 'babel-plugin-transform-object-rest-spread' { + 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 'babel-plugin-transform-object-rest-spread/lib/index' { + declare module.exports: any; +} + +// Filename aliases +declare module 'babel-plugin-transform-object-rest-spread/lib/index.js' { + declare module.exports: $Exports<'babel-plugin-transform-object-rest-spread/lib/index'>; +} diff --git a/flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js index 84e6ddb..8d57b18 100644 --- a/flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: d199216ac1aba5e51f670d9be94d52ac -// flow-typed version: <>/babel-plugin-transform-runtime_v^6.23.0/flow_v0.61.0 +// flow-typed signature: 40c36e02c35c1af81d97565d84ab4f4a +// flow-typed version: <>/babel-plugin-transform-runtime_v^6.23.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-preset-env_vx.x.x.js b/flow-typed/npm/babel-preset-env_vx.x.x.js new file mode 100644 index 0000000..0663850 --- /dev/null +++ b/flow-typed/npm/babel-preset-env_vx.x.x.js @@ -0,0 +1,88 @@ +// flow-typed signature: 8771aedbbbbaebd92bf5dd5d2b88e200 +// flow-typed version: <>/babel-preset-env_v^1.7.0/flow_v0.76.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'babel-preset-env' + * + * 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 'babel-preset-env' { + 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 'babel-preset-env/data/built-in-features' { + declare module.exports: any; +} + +declare module 'babel-preset-env/data/plugin-features' { + declare module.exports: any; +} + +declare module 'babel-preset-env/lib/default-includes' { + declare module.exports: any; +} + +declare module 'babel-preset-env/lib/index' { + declare module.exports: any; +} + +declare module 'babel-preset-env/lib/module-transformations' { + declare module.exports: any; +} + +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'>; +} +declare module 'babel-preset-env/data/plugin-features.js' { + declare module.exports: $Exports<'babel-preset-env/data/plugin-features'>; +} +declare module 'babel-preset-env/lib/default-includes.js' { + declare module.exports: $Exports<'babel-preset-env/lib/default-includes'>; +} +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 '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 'babel-preset-env/lib/utils.js' { + declare module.exports: $Exports<'babel-preset-env/lib/utils'>; +} diff --git a/flow-typed/npm/babel-preset-flow_vx.x.x.js b/flow-typed/npm/babel-preset-flow_vx.x.x.js index 8216bcc..7ee4d86 100644 --- a/flow-typed/npm/babel-preset-flow_vx.x.x.js +++ b/flow-typed/npm/babel-preset-flow_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: d0d6bbe626f5acb16d685f9a6786460e -// flow-typed version: <>/babel-preset-flow_v^6.23.0/flow_v0.61.0 +// flow-typed signature: b3edf84f2525a3d8c1a6b7229308b75d +// flow-typed version: <>/babel-preset-flow_v^6.23.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-preset-stage-1_vx.x.x.js b/flow-typed/npm/babel-preset-stage-1_vx.x.x.js index 5c28ce3..c3a9d46 100644 --- a/flow-typed/npm/babel-preset-stage-1_vx.x.x.js +++ b/flow-typed/npm/babel-preset-stage-1_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 749a97ef8c8f17b42c82ab34697f53c9 -// flow-typed version: <>/babel-preset-stage-1_v^6.22.0/flow_v0.61.0 +// flow-typed signature: 97dc97ba021327827a8c527446603c50 +// flow-typed version: <>/babel-preset-stage-1_v^6.24.1/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-register_vx.x.x.js b/flow-typed/npm/babel-register_vx.x.x.js index 22badb7..b7a285e 100644 --- a/flow-typed/npm/babel-register_vx.x.x.js +++ b/flow-typed/npm/babel-register_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1807e4a15c56d41378a573e2bf0f7283 -// flow-typed version: <>/babel-register_v^6.23.0/flow_v0.61.0 +// flow-typed signature: 4a18bceed9907169d02f7ab628513663 +// flow-typed version: <>/babel-register_v^6.23.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-runtime_vx.x.x.js b/flow-typed/npm/babel-runtime_vx.x.x.js index b8e2f0e..ec0b600 100644 --- a/flow-typed/npm/babel-runtime_vx.x.x.js +++ b/flow-typed/npm/babel-runtime_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 9a2c0fd2f13cf3628642fa81ab65a1bc -// flow-typed version: <>/babel-runtime_v^6.23.0/flow_v0.61.0 +// flow-typed signature: b84fc3d1d0833c5c455ba25fe5164606 +// flow-typed version: <>/babel-runtime_v^6.23.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/chai_v3.5.x.js b/flow-typed/npm/chai_v4.x.x.js similarity index 63% rename from flow-typed/npm/chai_v3.5.x.js rename to flow-typed/npm/chai_v4.x.x.js index e0c6b2c..a88887b 100644 --- a/flow-typed/npm/chai_v3.5.x.js +++ b/flow-typed/npm/chai_v4.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: f80f981d039947b3f29f0f437061852a -// flow-typed version: da30fe6876/chai_v3.5.x/flow_>=v0.25.0 +// flow-typed signature: 0a4f337896b3e3d42509a6795859f441 +// flow-typed version: ae29f8b328/chai_v4.x.x/flow_>=v0.25.0 declare module "chai" { declare type ExpectChain = { @@ -22,35 +22,42 @@ declare module "chai" { any: ExpectChain, all: ExpectChain, - a: ExpectChain & ((type: string) => ExpectChain), - an: ExpectChain & ((type: string) => ExpectChain), - - include: ExpectChain & ((value: mixed) => ExpectChain), - includes: ExpectChain & ((value: mixed) => ExpectChain), - contain: ExpectChain & ((value: mixed) => ExpectChain), - contains: ExpectChain & ((value: mixed) => ExpectChain), - - eql: (value: T) => ExpectChain, - equal: (value: T) => ExpectChain, - equals: (value: T) => ExpectChain, - - above: (value: T & number) => ExpectChain, - least: (value: T & number) => ExpectChain, - below: (value: T & number) => ExpectChain, - most: (value: T & number) => ExpectChain, - within: (start: T & number, finish: T & number) => ExpectChain, - - instanceof: (constructor: mixed) => ExpectChain, + a: ExpectChain & ((type: string, message?: string) => ExpectChain), + an: ExpectChain & ((type: string, message?: string) => ExpectChain), + + include: ExpectChain & ((value: mixed, message?: string) => ExpectChain), + includes: ExpectChain & ((value: mixed, message?: string) => ExpectChain), + contain: ExpectChain & ((value: mixed, message?: string) => ExpectChain), + contains: ExpectChain & ((value: mixed, message?: string) => ExpectChain), + + eq: (value: T, message?: string) => ExpectChain, + eql: (value: T, message?: string) => ExpectChain, + equal: (value: T, message?: string) => ExpectChain, + equals: (value: T, message?: string) => ExpectChain, + + above: (value: T & number, message?: string) => ExpectChain, + gt: (value: T & number, message?: string) => ExpectChain, + greaterThan: (value: T & number, message?: string) => ExpectChain, + least: (value: T & number, message?: string) => ExpectChain, + below: (value: T & number, message?: string) => ExpectChain, + lessThan: (value: T & number, message?: string) => ExpectChain, + lt: (value: T & number, message?: string) => ExpectChain, + most: (value: T & number, message?: string) => ExpectChain, + within: (start: T & number, finish: T & number, message?: string) => ExpectChain, + + instanceof: (constructor: mixed, message?: string) => ExpectChain, + nested: ExpectChain, property:

( name: string, - value?: P + value?: P, + message?: string ) => ExpectChain

& ((name: string) => ExpectChain), - length: (value: number) => ExpectChain | ExpectChain, - lengthOf: (value: number) => ExpectChain, + length: (value: number, message?: string) => ExpectChain | ExpectChain, + lengthOf: (value: number, message?: string) => ExpectChain, - match: (regex: RegExp) => ExpectChain, - string: (string: string) => ExpectChain, + match: (regex: RegExp, message?: string) => ExpectChain, + string: (string: string, message?: string) => ExpectChain, key: (key: string) => ExpectChain, keys: ( @@ -64,19 +71,21 @@ declare module "chai" { msg?: string ) => ExpectChain, - respondTo: (method: string) => ExpectChain, + respondTo: (method: string, message?: string) => ExpectChain, itself: ExpectChain, - satisfy: (method: (value: T) => boolean) => ExpectChain, + satisfy: (method: (value: T) => boolean, message?: string) => ExpectChain, - closeTo: (expected: T & number, delta: number) => ExpectChain, + closeTo: (expected: T & number, delta: number, message?: string) => ExpectChain, - members: (set: mixed) => ExpectChain, - oneOf: (list: Array) => ExpectChain, + members: (set: mixed, message?: string) => ExpectChain, + oneOf: (list: Array, message?: string) => ExpectChain, - change: (obj: mixed, key: string) => ExpectChain, - increase: (obj: mixed, key: string) => ExpectChain, - decrease: (obj: mixed, key: string) => ExpectChain, + change: (obj: mixed, key: string, message?: string) => ExpectChain, + increase: (obj: mixed, key: string, message?: string) => ExpectChain, + decrease: (obj: mixed, key: string, message?: string) => ExpectChain, + + by: (delta: number, message?: string) => ExpectChain, // dirty-chai ok: () => ExpectChain, @@ -90,6 +99,7 @@ declare module "chai" { extensible: () => ExpectChain, sealed: () => ExpectChain, frozen: () => ExpectChain, + NaN: () => ExpectChain, // chai-immutable size: (n: number) => ExpectChain, @@ -113,6 +123,7 @@ declare module "chai" { rejectedWith: (value: mixed) => Promise & ExpectChain, rejected: () => Promise & ExpectChain, notify: (callback: () => mixed) => ExpectChain, + fulfilled: () => Promise & ExpectChain, // chai-subset containSubset: (obj: Object | Object[]) => ExpectChain, @@ -121,10 +132,22 @@ declare module "chai" { dispatchedActions: ( actions: Array any)> ) => ExpectChain, - dispatchedTypes: (actions: Array) => ExpectChain + dispatchedTypes: (actions: Array) => ExpectChain, + + // chai-enzyme + attr: (key: string, val?: any) => ExpectChain, + data: (key: string, val?: any) => ExpectChain, + prop: (key: string, val?: any) => ExpectChain, + state: (key: string, val?: any) => ExpectChain, + value: (val: string) => ExpectChain, + className: (val: string) => ExpectChain, + text: (val: string) => ExpectChain, + + // chai-karma-snapshot + matchSnapshot: (lang?: any, update?: boolean, msg?: any) => ExpectChain }; - declare function expect(actual: T): ExpectChain; + declare function expect(actual: T, message?: string): ExpectChain; declare function use(plugin: (chai: Object, utils: Object) => void): void; @@ -140,6 +163,11 @@ declare module "chai" { static isOk(object: mixed, message?: string): void; static isNotOk(object: mixed, message?: string): void; + static empty(object: mixed, message?: string): void; + static isEmpty(object: mixed, message?: string): void; + static notEmpty(object: mixed, message?: string): void; + static isNotEmpty(object: mixed, message?: string): void; + static equal(actual: mixed, expected: mixed, message?: string): void; static notEqual(actual: mixed, expected: mixed, message?: string): void; @@ -248,6 +276,22 @@ declare module "chai" { errorMsgMatcher?: string | RegExp, msg?: string ): void; + + static closeTo( + actual: number, + expected: number, + delta: number, + msg?: string + ): void; + static approximately( + actual: number, + expected: number, + delta: number, + msg?: string + ): void; + + // chai-immutable + static sizeOf(val: mixed, length: number): void; } declare var config: { diff --git a/flow-typed/npm/codecov_vx.x.x.js b/flow-typed/npm/codecov_vx.x.x.js index 458b148..212b84b 100644 --- a/flow-typed/npm/codecov_vx.x.x.js +++ b/flow-typed/npm/codecov_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 6ee388cfbccc938a828317fddf412231 -// flow-typed version: <>/codecov_v^2.3.0/flow_v0.61.0 +// flow-typed signature: 67174306eab4fb5820beeb7f953eddac +// flow-typed version: <>/codecov_v^3.0.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/copy_vx.x.x.js b/flow-typed/npm/copy_vx.x.x.js index 871306b..9201a50 100644 --- a/flow-typed/npm/copy_vx.x.x.js +++ b/flow-typed/npm/copy_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 7c572c7e83342c90888230a4980a0384 -// flow-typed version: <>/copy_v^0.3.0/flow_v0.61.0 +// flow-typed signature: 4d183f3b3a8c095123c080971b0f40a5 +// flow-typed version: <>/copy_v^0.3.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js b/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js index daab4c7..fb16163 100644 --- a/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b4d17668cfc4beba6f07dacf7c865bce -// flow-typed version: <>/eslint-plugin-flowtype_v^2.30.0/flow_v0.61.0 +// flow-typed signature: 0ac467fe66844eb5e28bac7c566e9b20 +// flow-typed version: <>/eslint-plugin-flowtype_v^2.30.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: @@ -50,10 +50,26 @@ declare module 'eslint-plugin-flowtype/dist/rules/noDupeKeys' { declare module.exports: any; } +declare module 'eslint-plugin-flowtype/dist/rules/noFlowFixMeComments' { + declare module.exports: any; +} + +declare module 'eslint-plugin-flowtype/dist/rules/noMutableArray' { + declare module.exports: any; +} + declare module 'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes' { declare module.exports: any; } +declare module 'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation' { + declare module.exports: any; +} + +declare module 'eslint-plugin-flowtype/dist/rules/noUnusedExpressions' { + declare module.exports: any; +} + declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes' { declare module.exports: any; } @@ -212,9 +228,21 @@ declare module 'eslint-plugin-flowtype/dist/rules/genericSpacing.js' { declare module 'eslint-plugin-flowtype/dist/rules/noDupeKeys.js' { declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noDupeKeys'>; } +declare module 'eslint-plugin-flowtype/dist/rules/noFlowFixMeComments.js' { + declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noFlowFixMeComments'>; +} +declare module 'eslint-plugin-flowtype/dist/rules/noMutableArray.js' { + declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noMutableArray'>; +} declare module 'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes.js' { declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes'>; } +declare module 'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation.js' { + declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation'>; +} +declare module 'eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js' { + declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noUnusedExpressions'>; +} declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes.js' { declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noWeakTypes'>; } diff --git a/flow-typed/npm/eslint-watch_vx.x.x.js b/flow-typed/npm/eslint-watch_vx.x.x.js index 744b07c..d735267 100644 --- a/flow-typed/npm/eslint-watch_vx.x.x.js +++ b/flow-typed/npm/eslint-watch_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: f7c83d7748eb79b9a18976965434f5ed -// flow-typed version: <>/eslint-watch_v^3.0.0/flow_v0.61.0 +// flow-typed signature: 23a430e2c6bbfbd4dac755f826ddc6ba +// flow-typed version: <>/eslint-watch_v^3.0.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: @@ -42,6 +42,10 @@ declare module 'eslint-watch/build/formatters/helpers/characters' { declare module.exports: any; } +declare module 'eslint-watch/build/formatters/helpers/clear-terminal' { + declare module.exports: any; +} + declare module 'eslint-watch/build/formatters/helpers/error-warning' { declare module.exports: any; } @@ -98,6 +102,9 @@ declare module 'eslint-watch/build/executor.js' { declare module 'eslint-watch/build/formatters/helpers/characters.js' { declare module.exports: $Exports<'eslint-watch/build/formatters/helpers/characters'>; } +declare module 'eslint-watch/build/formatters/helpers/clear-terminal.js' { + declare module.exports: $Exports<'eslint-watch/build/formatters/helpers/clear-terminal'>; +} declare module 'eslint-watch/build/formatters/helpers/error-warning.js' { declare module.exports: $Exports<'eslint-watch/build/formatters/helpers/error-warning'>; } diff --git a/flow-typed/npm/eslint_vx.x.x.js b/flow-typed/npm/eslint_vx.x.x.js index 9eb866f..bf550e4 100644 --- a/flow-typed/npm/eslint_vx.x.x.js +++ b/flow-typed/npm/eslint_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 917cabc34257df3ba21a884d4a20fc68 -// flow-typed version: <>/eslint_v^3.15.0/flow_v0.61.0 +// flow-typed signature: f17e075d093e39fd7ec75b481e5f8dc5 +// flow-typed version: <>/eslint_v^3.15.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/flow-copy-source_vx.x.x.js b/flow-typed/npm/flow-copy-source_vx.x.x.js index 1146feb..ccf43ba 100644 --- a/flow-typed/npm/flow-copy-source_vx.x.x.js +++ b/flow-typed/npm/flow-copy-source_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 421a31dd96dcec2172aa259147ed2155 -// flow-typed version: <>/flow-copy-source_v^1.2.1/flow_v0.61.0 +// flow-typed signature: 2fd53052619148305dac2d1dc0d08485 +// flow-typed version: <>/flow-copy-source_v^1.2.1/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/flow-watch_vx.x.x.js b/flow-typed/npm/flow-watch_vx.x.x.js index a44da72..53b57d5 100644 --- a/flow-typed/npm/flow-watch_vx.x.x.js +++ b/flow-typed/npm/flow-watch_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: f4d1dc0266acf1724f3d7531def5437f -// flow-typed version: <>/flow-watch_v^1.1.0/flow_v0.61.0 +// flow-typed signature: e64d1191cfba62cf834e8f6e74643db2 +// flow-typed version: <>/flow-watch_v^1.1.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/graphql-tools_vx.x.x.js b/flow-typed/npm/graphql-tools_vx.x.x.js new file mode 100644 index 0000000..1f54962 --- /dev/null +++ b/flow-typed/npm/graphql-tools_vx.x.x.js @@ -0,0 +1,410 @@ +// flow-typed signature: 35828ed82d5b55ba888c8c5f2298897e +// flow-typed version: <>/graphql-tools_v^3.0.5/flow_v0.76.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'graphql-tools' + * + * 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 'graphql-tools' { + 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 'graphql-tools/dist/generate/addResolveFunctionsToSchema' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/addSchemaLevelResolveFunction' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/assertResolveFunctionsPresent' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/attachConnectorsToContext' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/attachDirectiveResolvers' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/buildSchemaFromTypeDefinitions' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/chainResolvers' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/checkForResolveTypeResolver' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/concatenateTypeDefs' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/decorateWithLogger' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/extendResolversFromInterfaces' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/extractExtensionDefinitions' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/forEachField' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/index' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/generate/SchemaError' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/implementsAbstractType' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/index' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/Interfaces' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/isEmptyObject' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/isSpecifiedScalarType' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/Logger' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/makeExecutableSchema' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/mergeDeep' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/mock' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/schemaVisitor' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/defaultMergedResolver' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/delegateToSchema' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/errors' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/index' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/introspectSchema' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/linkToFetcher' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/makeRemoteExecutableSchema' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/mergeSchemas' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/observableToAsyncIterable' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/resolveFromParentTypename' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/resolvers' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/schemaRecreation' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/stitching/typeFromAST' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/AddArgumentsAsVariables' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/AddTypenameToAbstract' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/CheckResultAndHandleErrors' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/ExpandAbstractTypes' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/ExtractField' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/FilterRootFields' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/FilterToSchema' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/FilterTypes' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/index' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/RenameRootFields' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/RenameTypes' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/ReplaceFieldWithFragment' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/TransformRootFields' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/transforms' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/transformSchema' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/visitSchema' { + declare module.exports: any; +} + +declare module 'graphql-tools/dist/transforms/WrapQuery' { + declare module.exports: any; +} + +// Filename aliases +declare module 'graphql-tools/dist/generate/addResolveFunctionsToSchema.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/addResolveFunctionsToSchema'>; +} +declare module 'graphql-tools/dist/generate/addSchemaLevelResolveFunction.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/addSchemaLevelResolveFunction'>; +} +declare module 'graphql-tools/dist/generate/assertResolveFunctionsPresent.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/assertResolveFunctionsPresent'>; +} +declare module 'graphql-tools/dist/generate/attachConnectorsToContext.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/attachConnectorsToContext'>; +} +declare module 'graphql-tools/dist/generate/attachDirectiveResolvers.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/attachDirectiveResolvers'>; +} +declare module 'graphql-tools/dist/generate/buildSchemaFromTypeDefinitions.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/buildSchemaFromTypeDefinitions'>; +} +declare module 'graphql-tools/dist/generate/chainResolvers.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/chainResolvers'>; +} +declare module 'graphql-tools/dist/generate/checkForResolveTypeResolver.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/checkForResolveTypeResolver'>; +} +declare module 'graphql-tools/dist/generate/concatenateTypeDefs.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/concatenateTypeDefs'>; +} +declare module 'graphql-tools/dist/generate/decorateWithLogger.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/decorateWithLogger'>; +} +declare module 'graphql-tools/dist/generate/extendResolversFromInterfaces.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/extendResolversFromInterfaces'>; +} +declare module 'graphql-tools/dist/generate/extractExtensionDefinitions.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/extractExtensionDefinitions'>; +} +declare module 'graphql-tools/dist/generate/forEachField.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/forEachField'>; +} +declare module 'graphql-tools/dist/generate/index.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/index'>; +} +declare module 'graphql-tools/dist/generate/SchemaError.js' { + declare module.exports: $Exports<'graphql-tools/dist/generate/SchemaError'>; +} +declare module 'graphql-tools/dist/implementsAbstractType.js' { + declare module.exports: $Exports<'graphql-tools/dist/implementsAbstractType'>; +} +declare module 'graphql-tools/dist/index.js' { + declare module.exports: $Exports<'graphql-tools/dist/index'>; +} +declare module 'graphql-tools/dist/Interfaces.js' { + declare module.exports: $Exports<'graphql-tools/dist/Interfaces'>; +} +declare module 'graphql-tools/dist/isEmptyObject.js' { + declare module.exports: $Exports<'graphql-tools/dist/isEmptyObject'>; +} +declare module 'graphql-tools/dist/isSpecifiedScalarType.js' { + declare module.exports: $Exports<'graphql-tools/dist/isSpecifiedScalarType'>; +} +declare module 'graphql-tools/dist/Logger.js' { + declare module.exports: $Exports<'graphql-tools/dist/Logger'>; +} +declare module 'graphql-tools/dist/makeExecutableSchema.js' { + declare module.exports: $Exports<'graphql-tools/dist/makeExecutableSchema'>; +} +declare module 'graphql-tools/dist/mergeDeep.js' { + declare module.exports: $Exports<'graphql-tools/dist/mergeDeep'>; +} +declare module 'graphql-tools/dist/mock.js' { + declare module.exports: $Exports<'graphql-tools/dist/mock'>; +} +declare module 'graphql-tools/dist/schemaVisitor.js' { + declare module.exports: $Exports<'graphql-tools/dist/schemaVisitor'>; +} +declare module 'graphql-tools/dist/stitching/defaultMergedResolver.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/defaultMergedResolver'>; +} +declare module 'graphql-tools/dist/stitching/delegateToSchema.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/delegateToSchema'>; +} +declare module 'graphql-tools/dist/stitching/errors.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/errors'>; +} +declare module 'graphql-tools/dist/stitching/index.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/index'>; +} +declare module 'graphql-tools/dist/stitching/introspectSchema.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/introspectSchema'>; +} +declare module 'graphql-tools/dist/stitching/linkToFetcher.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/linkToFetcher'>; +} +declare module 'graphql-tools/dist/stitching/makeRemoteExecutableSchema.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/makeRemoteExecutableSchema'>; +} +declare module 'graphql-tools/dist/stitching/mergeSchemas.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/mergeSchemas'>; +} +declare module 'graphql-tools/dist/stitching/observableToAsyncIterable.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/observableToAsyncIterable'>; +} +declare module 'graphql-tools/dist/stitching/resolveFromParentTypename.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/resolveFromParentTypename'>; +} +declare module 'graphql-tools/dist/stitching/resolvers.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/resolvers'>; +} +declare module 'graphql-tools/dist/stitching/schemaRecreation.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/schemaRecreation'>; +} +declare module 'graphql-tools/dist/stitching/typeFromAST.js' { + declare module.exports: $Exports<'graphql-tools/dist/stitching/typeFromAST'>; +} +declare module 'graphql-tools/dist/transforms/AddArgumentsAsVariables.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/AddArgumentsAsVariables'>; +} +declare module 'graphql-tools/dist/transforms/AddTypenameToAbstract.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/AddTypenameToAbstract'>; +} +declare module 'graphql-tools/dist/transforms/CheckResultAndHandleErrors.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/CheckResultAndHandleErrors'>; +} +declare module 'graphql-tools/dist/transforms/ExpandAbstractTypes.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/ExpandAbstractTypes'>; +} +declare module 'graphql-tools/dist/transforms/ExtractField.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/ExtractField'>; +} +declare module 'graphql-tools/dist/transforms/FilterRootFields.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/FilterRootFields'>; +} +declare module 'graphql-tools/dist/transforms/FilterToSchema.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/FilterToSchema'>; +} +declare module 'graphql-tools/dist/transforms/FilterTypes.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/FilterTypes'>; +} +declare module 'graphql-tools/dist/transforms/index.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/index'>; +} +declare module 'graphql-tools/dist/transforms/RenameRootFields.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/RenameRootFields'>; +} +declare module 'graphql-tools/dist/transforms/RenameTypes.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/RenameTypes'>; +} +declare module 'graphql-tools/dist/transforms/ReplaceFieldWithFragment.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/ReplaceFieldWithFragment'>; +} +declare module 'graphql-tools/dist/transforms/TransformRootFields.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/TransformRootFields'>; +} +declare module 'graphql-tools/dist/transforms/transforms.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/transforms'>; +} +declare module 'graphql-tools/dist/transforms/transformSchema.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/transformSchema'>; +} +declare module 'graphql-tools/dist/transforms/visitSchema.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/visitSchema'>; +} +declare module 'graphql-tools/dist/transforms/WrapQuery.js' { + declare module.exports: $Exports<'graphql-tools/dist/transforms/WrapQuery'>; +} diff --git a/flow-typed/npm/husky_vx.x.x.js b/flow-typed/npm/husky_vx.x.x.js index f72fa36..0fd1da6 100644 --- a/flow-typed/npm/husky_vx.x.x.js +++ b/flow-typed/npm/husky_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 639e1c376fbb2ebac698c24f663aebdc -// flow-typed version: <>/husky_v^0.13.1/flow_v0.61.0 +// flow-typed signature: a6d243a190d5c6f6083b50398069cae2 +// flow-typed version: <>/husky_v^0.14.3/flow_v0.76.0 /** * This is an autogenerated libdef stub for: @@ -22,6 +22,10 @@ declare module 'husky' { * require those files directly. Feel free to delete any files that aren't * needed. */ +declare module 'husky/__tests__/index' { + declare module.exports: any; +} + declare module 'husky/bin/install' { declare module.exports: any; } @@ -30,24 +34,55 @@ declare module 'husky/bin/uninstall' { declare module.exports: any; } -declare module 'husky/src/index' { +declare module 'husky/src/install' { + declare module.exports: any; +} + +declare module 'husky/src/uninstall' { + declare module.exports: any; +} + +declare module 'husky/src/utils/find-hooks-dir' { + declare module.exports: any; +} + +declare module 'husky/src/utils/find-parent' { + declare module.exports: any; +} + +declare module 'husky/src/utils/get-hook-script' { declare module.exports: any; } -declare module 'husky/test/index' { +declare module 'husky/src/utils/is-husky' { declare module.exports: any; } // Filename aliases +declare module 'husky/__tests__/index.js' { + declare module.exports: $Exports<'husky/__tests__/index'>; +} declare module 'husky/bin/install.js' { declare module.exports: $Exports<'husky/bin/install'>; } declare module 'husky/bin/uninstall.js' { declare module.exports: $Exports<'husky/bin/uninstall'>; } -declare module 'husky/src/index.js' { - declare module.exports: $Exports<'husky/src/index'>; +declare module 'husky/src/install.js' { + declare module.exports: $Exports<'husky/src/install'>; +} +declare module 'husky/src/uninstall.js' { + declare module.exports: $Exports<'husky/src/uninstall'>; +} +declare module 'husky/src/utils/find-hooks-dir.js' { + declare module.exports: $Exports<'husky/src/utils/find-hooks-dir'>; +} +declare module 'husky/src/utils/find-parent.js' { + declare module.exports: $Exports<'husky/src/utils/find-parent'>; +} +declare module 'husky/src/utils/get-hook-script.js' { + declare module.exports: $Exports<'husky/src/utils/get-hook-script'>; } -declare module 'husky/test/index.js' { - declare module.exports: $Exports<'husky/test/index'>; +declare module 'husky/src/utils/is-husky.js' { + declare module.exports: $Exports<'husky/src/utils/is-husky'>; } diff --git a/flow-typed/npm/istanbul_vx.x.x.js b/flow-typed/npm/istanbul_vx.x.x.js index e2f86c9..e5b62d0 100644 --- a/flow-typed/npm/istanbul_vx.x.x.js +++ b/flow-typed/npm/istanbul_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 7d8d59b45a3eeecbd59062fc8e20dab9 -// flow-typed version: <>/istanbul_v^0.4.5/flow_v0.61.0 +// flow-typed signature: d49f4afb0982435dce495db8f5e8752f +// flow-typed version: <>/istanbul_v^0.4.5/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/mocha_v3.1.x.js b/flow-typed/npm/mocha_v4.x.x.js similarity index 98% rename from flow-typed/npm/mocha_v3.1.x.js rename to flow-typed/npm/mocha_v4.x.x.js index 1a35f6e..8131665 100644 --- a/flow-typed/npm/mocha_v3.1.x.js +++ b/flow-typed/npm/mocha_v4.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 58fb316c623a4f7918b0e2529256be8c -// flow-typed version: 0ef6a9a08b/mocha_v3.1.x/flow_>=v0.28.x +// flow-typed signature: e8d50d58f9d96065d29f810f297eaeb2 +// flow-typed version: 883196e42b/mocha_v4.x.x/flow_>=v0.28.x declare interface $npm$mocha$SetupOptions { slow?: number; diff --git a/flow-typed/npm/nyc_vx.x.x.js b/flow-typed/npm/nyc_vx.x.x.js index d8de9b7..4522f1a 100644 --- a/flow-typed/npm/nyc_vx.x.x.js +++ b/flow-typed/npm/nyc_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 09ba57637f077d9c4e535797fb7c2726 -// flow-typed version: <>/nyc_v^10.1.2/flow_v0.61.0 +// flow-typed signature: e2411714ed0bf9f5cdbd16b5036a1a10 +// flow-typed version: <>/nyc_v^11.4.1/flow_v0.76.0 /** * This is an autogenerated libdef stub for: @@ -30,14 +30,26 @@ declare module 'nyc/bin/wrap' { declare module.exports: any; } +declare module 'nyc/lib/commands/check-coverage' { + declare module.exports: any; +} + declare module 'nyc/lib/commands/instrument' { declare module.exports: any; } +declare module 'nyc/lib/commands/report' { + declare module.exports: any; +} + declare module 'nyc/lib/config-util' { declare module.exports: any; } +declare module 'nyc/lib/hash' { + declare module.exports: any; +} + declare module 'nyc/lib/instrumenters/istanbul' { declare module.exports: any; } @@ -58,6 +70,10 @@ declare module 'nyc/lib/self-coverage-helper' { declare module.exports: any; } +declare module 'nyc/lib/source-maps' { + declare module.exports: any; +} + // Filename aliases declare module 'nyc/bin/nyc.js' { declare module.exports: $Exports<'nyc/bin/nyc'>; @@ -71,12 +87,21 @@ declare module 'nyc/index' { declare module 'nyc/index.js' { declare module.exports: $Exports<'nyc'>; } +declare module 'nyc/lib/commands/check-coverage.js' { + declare module.exports: $Exports<'nyc/lib/commands/check-coverage'>; +} declare module 'nyc/lib/commands/instrument.js' { declare module.exports: $Exports<'nyc/lib/commands/instrument'>; } +declare module 'nyc/lib/commands/report.js' { + declare module.exports: $Exports<'nyc/lib/commands/report'>; +} declare module 'nyc/lib/config-util.js' { declare module.exports: $Exports<'nyc/lib/config-util'>; } +declare module 'nyc/lib/hash.js' { + declare module.exports: $Exports<'nyc/lib/hash'>; +} declare module 'nyc/lib/instrumenters/istanbul.js' { declare module.exports: $Exports<'nyc/lib/instrumenters/istanbul'>; } @@ -92,3 +117,6 @@ declare module 'nyc/lib/process.js' { declare module 'nyc/lib/self-coverage-helper.js' { declare module.exports: $Exports<'nyc/lib/self-coverage-helper'>; } +declare module 'nyc/lib/source-maps.js' { + declare module.exports: $Exports<'nyc/lib/source-maps'>; +} diff --git a/flow-typed/npm/semantic-release_vx.x.x.js b/flow-typed/npm/semantic-release_vx.x.x.js index 5f7943b..e21f61b 100644 --- a/flow-typed/npm/semantic-release_vx.x.x.js +++ b/flow-typed/npm/semantic-release_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: d699e7decb696ebb951a382c1661d76c -// flow-typed version: <>/semantic-release_v^12.2.2/flow_v0.61.0 +// flow-typed signature: 029fd5b5ae8ecdc19b61230d5a03ae8e +// flow-typed version: <>/semantic-release_v^15.8.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: @@ -30,7 +30,15 @@ declare module 'semantic-release/cli' { declare module.exports: any; } -declare module 'semantic-release/lib/debug' { +declare module 'semantic-release/lib/definitions/constants' { + declare module.exports: any; +} + +declare module 'semantic-release/lib/definitions/errors' { + declare module.exports: any; +} + +declare module 'semantic-release/lib/definitions/plugins' { declare module.exports: any; } @@ -42,6 +50,18 @@ declare module 'semantic-release/lib/get-config' { declare module.exports: any; } +declare module 'semantic-release/lib/get-error' { + declare module.exports: any; +} + +declare module 'semantic-release/lib/get-git-auth-url' { + declare module.exports: any; +} + +declare module 'semantic-release/lib/get-last-release' { + declare module.exports: any; +} + declare module 'semantic-release/lib/get-next-version' { declare module.exports: any; } @@ -50,11 +70,11 @@ declare module 'semantic-release/lib/git' { declare module.exports: any; } -declare module 'semantic-release/lib/logger' { +declare module 'semantic-release/lib/hide-sensitive' { declare module.exports: any; } -declare module 'semantic-release/lib/plugins/definitions' { +declare module 'semantic-release/lib/logger' { declare module.exports: any; } @@ -70,6 +90,14 @@ declare module 'semantic-release/lib/plugins/pipeline' { declare module.exports: any; } +declare module 'semantic-release/lib/utils' { + declare module.exports: any; +} + +declare module 'semantic-release/lib/verify' { + declare module.exports: any; +} + // Filename aliases declare module 'semantic-release/bin/semantic-release.js' { declare module.exports: $Exports<'semantic-release/bin/semantic-release'>; @@ -83,8 +111,14 @@ declare module 'semantic-release/index' { declare module 'semantic-release/index.js' { declare module.exports: $Exports<'semantic-release'>; } -declare module 'semantic-release/lib/debug.js' { - declare module.exports: $Exports<'semantic-release/lib/debug'>; +declare module 'semantic-release/lib/definitions/constants.js' { + declare module.exports: $Exports<'semantic-release/lib/definitions/constants'>; +} +declare module 'semantic-release/lib/definitions/errors.js' { + declare module.exports: $Exports<'semantic-release/lib/definitions/errors'>; +} +declare module 'semantic-release/lib/definitions/plugins.js' { + declare module.exports: $Exports<'semantic-release/lib/definitions/plugins'>; } declare module 'semantic-release/lib/get-commits.js' { declare module.exports: $Exports<'semantic-release/lib/get-commits'>; @@ -92,18 +126,27 @@ declare module 'semantic-release/lib/get-commits.js' { declare module 'semantic-release/lib/get-config.js' { declare module.exports: $Exports<'semantic-release/lib/get-config'>; } +declare module 'semantic-release/lib/get-error.js' { + declare module.exports: $Exports<'semantic-release/lib/get-error'>; +} +declare module 'semantic-release/lib/get-git-auth-url.js' { + declare module.exports: $Exports<'semantic-release/lib/get-git-auth-url'>; +} +declare module 'semantic-release/lib/get-last-release.js' { + declare module.exports: $Exports<'semantic-release/lib/get-last-release'>; +} declare module 'semantic-release/lib/get-next-version.js' { declare module.exports: $Exports<'semantic-release/lib/get-next-version'>; } declare module 'semantic-release/lib/git.js' { declare module.exports: $Exports<'semantic-release/lib/git'>; } +declare module 'semantic-release/lib/hide-sensitive.js' { + declare module.exports: $Exports<'semantic-release/lib/hide-sensitive'>; +} declare module 'semantic-release/lib/logger.js' { declare module.exports: $Exports<'semantic-release/lib/logger'>; } -declare module 'semantic-release/lib/plugins/definitions.js' { - declare module.exports: $Exports<'semantic-release/lib/plugins/definitions'>; -} declare module 'semantic-release/lib/plugins/index.js' { declare module.exports: $Exports<'semantic-release/lib/plugins/index'>; } @@ -113,3 +156,9 @@ declare module 'semantic-release/lib/plugins/normalize.js' { declare module 'semantic-release/lib/plugins/pipeline.js' { declare module.exports: $Exports<'semantic-release/lib/plugins/pipeline'>; } +declare module 'semantic-release/lib/utils.js' { + declare module.exports: $Exports<'semantic-release/lib/utils'>; +} +declare module 'semantic-release/lib/verify.js' { + declare module.exports: $Exports<'semantic-release/lib/verify'>; +} diff --git a/flow-typed/npm/travis-deploy-once_vx.x.x.js b/flow-typed/npm/travis-deploy-once_vx.x.x.js index 629c87c..5cb98ad 100644 --- a/flow-typed/npm/travis-deploy-once_vx.x.x.js +++ b/flow-typed/npm/travis-deploy-once_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: e5527cd8879805c3cc55c34ea6fa7bcb -// flow-typed version: <>/travis-deploy-once_v^4.3.1/flow_v0.61.0 +// flow-typed signature: 7d97f93bdf03f5fbe048894e508a70db +// flow-typed version: <>/travis-deploy-once_v^5.0.1/flow_v0.76.0 /** * This is an autogenerated libdef stub for: diff --git a/src/getSchemaTypes.js b/src/getSchemaTypes.js index 0f9256c..8519797 100644 --- a/src/getSchemaTypes.js +++ b/src/getSchemaTypes.js @@ -89,12 +89,12 @@ export function linkTypes(rawTypes: Array): Types { return types } -async function getSchemaTypes(client: ApolloClient): Promise { +async function getSchemaTypes(client: ApolloClient): Promise { const {data: {__schema: {types}}} = await client.query({query: typesQuery}) return linkTypes(types) } -export default function getSchemaTypesOnce(client: ApolloClient): Promise { +export default function getSchemaTypesOnce(client: ApolloClient): Promise { if (!promise) promise = getSchemaTypes(client) return promise } diff --git a/src/index.js b/src/index.js index f49422f..b27027b 100644 --- a/src/index.js +++ b/src/index.js @@ -21,7 +21,7 @@ function every(array: $ReadOnlyArray, predicate: (elem: T) => boolean): bo } export default async function refetch( - client: ApolloClient, + client: ApolloClient, typenameOrTerms: string | $ReadOnlyArray, ids?: ?any, idField?: string diff --git a/test/integration.js b/test/integration.js index a7424f8..2248c33 100644 --- a/test/integration.js +++ b/test/integration.js @@ -136,7 +136,7 @@ describe(`integration test`, function () { const observableQuery = client.watchQuery({query}) observableQuery.subscribe({}) await observableQuery.refetch() - const {data: {orgs}} = await observableQuery.currentResult() + const {data: {orgs}} = (observableQuery.currentResult(): any) expect(orgs.map(({id}) => id)).to.deep.equal([...Organizations.keys()]) Users.delete(2) @@ -146,7 +146,7 @@ describe(`integration test`, function () { await refetch(client, 'User', [2]) - const {data: {orgs: finalOrgs}} = await observableQuery.currentResult() + const {data: {orgs: finalOrgs}} = (observableQuery.currentResult(): any) expect(finalOrgs.map(({Users}) => Users.map(({id}) => id))).to.deep.equal([ [1], @@ -180,7 +180,7 @@ describe(`integration test`, function () { observableUsersQuery.subscribe({}) await observableUsersQuery.refetch() - const {data: {orgs}} = await observableQuery.currentResult() + const {data: {orgs}} = (observableQuery.currentResult(): any) expect(orgs.map(({id}) => id)).to.deep.equal([...Organizations.keys()]); (Users.get(2): any).organizationIds = [1]; @@ -191,7 +191,7 @@ describe(`integration test`, function () { ['Organization', 2], ]) - const {data: {orgs: finalOrgs}} = await observableQuery.currentResult() + const {data: {orgs: finalOrgs}} = (observableQuery.currentResult(): any) expect(finalOrgs.map(({Users}) => Users.map(({id}) => id))).to.deep.equal([ [1, 2], @@ -225,7 +225,7 @@ describe(`integration test`, function () { observableUsersQuery.subscribe({}) await observableUsersQuery.refetch() - const {data: {orgs}} = await observableQuery.currentResult() + const {data: {orgs}} = (observableQuery.currentResult(): any) expect(orgs.map(({id}) => id)).to.deep.equal([...Organizations.keys()]); (Users.get(4): any).organizationIds.push(2); @@ -236,7 +236,7 @@ describe(`integration test`, function () { ['Organization', new Set([2])], ]) - const {data: {orgs: finalOrgs}} = await observableQuery.currentResult() + const {data: {orgs: finalOrgs}} = (observableQuery.currentResult(): any) expect(finalOrgs.map(({Users}) => Users.map(({id}) => id))).to.deep.equal([ [1, 2],