summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-07-24 23:23:07 +0200
committerVictor Chabbert <chabbertvi@eisti.eu>2017-07-24 23:23:07 +0200
commit5181af8ae32ef48625bb4ae8d6ea374288deee08 (patch)
tree9c8ca3446faa0f8182ca92cac6a752df79cab311 /frontend
parentRemove flow-typed postinstall (diff)
downloadseven-wonders-5181af8ae32ef48625bb4ae8d6ea374288deee08.tar.gz
seven-wonders-5181af8ae32ef48625bb4ae8d6ea374288deee08.tar.bz2
seven-wonders-5181af8ae32ef48625bb4ae8d6ea374288deee08.zip
Add webstomp client type def and remove unused ones
Diffstat (limited to 'frontend')
-rw-r--r--frontend/flow-typed/npm/prettier_vx.x.x.js157
-rw-r--r--frontend/flow-typed/npm/redux-seamless-immutable_vx.x.x.js81
-rw-r--r--frontend/flow-typed/npm/seamless-immutable_vx.x.x.js53
-rw-r--r--frontend/flow-typed/npm/webstomp-client_vx.x.x.js197
4 files changed, 140 insertions, 348 deletions
diff --git a/frontend/flow-typed/npm/prettier_vx.x.x.js b/frontend/flow-typed/npm/prettier_vx.x.x.js
deleted file mode 100644
index e774eb92..00000000
--- a/frontend/flow-typed/npm/prettier_vx.x.x.js
+++ /dev/null
@@ -1,157 +0,0 @@
-// flow-typed signature: 84628f0cf0bfca399fcd1d50c371e23f
-// flow-typed version: <<STUB>>/prettier_v^1.3.1/flow_v0.46.0
-
-/**
- * This is an autogenerated libdef stub for:
- *
- * 'prettier'
- *
- * 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 'prettier' {
- 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 'prettier/bin/prettier' {
- declare module.exports: any;
-}
-
-declare module 'prettier/docs/prettier.min' {
- declare module.exports: any;
-}
-
-declare module 'prettier/docs/rollup.config' {
- declare module.exports: any;
-}
-
-declare module 'prettier/scripts/sync-flow-tests' {
- declare module.exports: any;
-}
-
-declare module 'prettier/src/ast-types' {
- declare module.exports: any;
-}
-
-declare module 'prettier/src/comments' {
- declare module.exports: any;
-}
-
-declare module 'prettier/src/deprecated' {
- declare module.exports: any;
-}
-
-declare module 'prettier/src/doc-builders' {
- declare module.exports: any;
-}
-
-declare module 'prettier/src/doc-debug' {
- declare module.exports: any;
-}
-
-declare module 'prettier/src/doc-printer' {
- declare module.exports: any;
-}
-
-declare module 'prettier/src/doc-utils' {
- declare module.exports: any;
-}
-
-declare module 'prettier/src/fast-path' {
- 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.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/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/src/doc-builders.js' {
- declare module.exports: $Exports<'prettier/src/doc-builders'>;
-}
-declare module 'prettier/src/doc-debug.js' {
- declare module.exports: $Exports<'prettier/src/doc-debug'>;
-}
-declare module 'prettier/src/doc-printer.js' {
- declare module.exports: $Exports<'prettier/src/doc-printer'>;
-}
-declare module 'prettier/src/doc-utils.js' {
- declare module.exports: $Exports<'prettier/src/doc-utils'>;
-}
-declare module 'prettier/src/fast-path.js' {
- declare module.exports: $Exports<'prettier/src/fast-path'>;
-}
-declare module 'prettier/src/options.js' {
- declare module.exports: $Exports<'prettier/src/options'>;
-}
-declare module 'prettier/src/parser.js' {
- declare module.exports: $Exports<'prettier/src/parser'>;
-}
-declare module 'prettier/src/printer.js' {
- declare module.exports: $Exports<'prettier/src/printer'>;
-}
-declare module 'prettier/src/typescript-ast-nodes.js' {
- declare module.exports: $Exports<'prettier/src/typescript-ast-nodes'>;
-}
-declare module 'prettier/src/util.js' {
- declare module.exports: $Exports<'prettier/src/util'>;
-}
-declare module 'prettier/test.js' {
- declare module.exports: $Exports<'prettier/test'>;
-}
diff --git a/frontend/flow-typed/npm/redux-seamless-immutable_vx.x.x.js b/frontend/flow-typed/npm/redux-seamless-immutable_vx.x.x.js
deleted file mode 100644
index 0a94e2ac..00000000
--- a/frontend/flow-typed/npm/redux-seamless-immutable_vx.x.x.js
+++ /dev/null
@@ -1,81 +0,0 @@
-// flow-typed signature: c4c370b7c1049cffa6a4151f9585668c
-// flow-typed version: <<STUB>>/redux-seamless-immutable_v^0.3.0/flow_v0.46.0
-
-/**
- * This is an autogenerated libdef stub for:
- *
- * 'redux-seamless-immutable'
- *
- * 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 'redux-seamless-immutable' {
- 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 'redux-seamless-immutable/lib/combineReducers' {
- declare module.exports: any;
-}
-
-declare module 'redux-seamless-immutable/lib/index' {
- declare module.exports: any;
-}
-
-declare module 'redux-seamless-immutable/lib/routerReducer' {
- declare module.exports: any;
-}
-
-declare module 'redux-seamless-immutable/lib/stateTransformer' {
- declare module.exports: any;
-}
-
-declare module 'redux-seamless-immutable/src/combineReducers' {
- declare module.exports: any;
-}
-
-declare module 'redux-seamless-immutable/src/index' {
- declare module.exports: any;
-}
-
-declare module 'redux-seamless-immutable/src/routerReducer' {
- declare module.exports: any;
-}
-
-declare module 'redux-seamless-immutable/src/stateTransformer' {
- declare module.exports: any;
-}
-
-// Filename aliases
-declare module 'redux-seamless-immutable/lib/combineReducers.js' {
- declare module.exports: $Exports<'redux-seamless-immutable/lib/combineReducers'>;
-}
-declare module 'redux-seamless-immutable/lib/index.js' {
- declare module.exports: $Exports<'redux-seamless-immutable/lib/index'>;
-}
-declare module 'redux-seamless-immutable/lib/routerReducer.js' {
- declare module.exports: $Exports<'redux-seamless-immutable/lib/routerReducer'>;
-}
-declare module 'redux-seamless-immutable/lib/stateTransformer.js' {
- declare module.exports: $Exports<'redux-seamless-immutable/lib/stateTransformer'>;
-}
-declare module 'redux-seamless-immutable/src/combineReducers.js' {
- declare module.exports: $Exports<'redux-seamless-immutable/src/combineReducers'>;
-}
-declare module 'redux-seamless-immutable/src/index.js' {
- declare module.exports: $Exports<'redux-seamless-immutable/src/index'>;
-}
-declare module 'redux-seamless-immutable/src/routerReducer.js' {
- declare module.exports: $Exports<'redux-seamless-immutable/src/routerReducer'>;
-}
-declare module 'redux-seamless-immutable/src/stateTransformer.js' {
- declare module.exports: $Exports<'redux-seamless-immutable/src/stateTransformer'>;
-}
diff --git a/frontend/flow-typed/npm/seamless-immutable_vx.x.x.js b/frontend/flow-typed/npm/seamless-immutable_vx.x.x.js
deleted file mode 100644
index bc01b711..00000000
--- a/frontend/flow-typed/npm/seamless-immutable_vx.x.x.js
+++ /dev/null
@@ -1,53 +0,0 @@
-// flow-typed signature: 70f8099c896120a6e0625971ac1532e7
-// flow-typed version: <<STUB>>/seamless-immutable_v^7.1.2/flow_v0.46.0
-
-/**
- * This is an autogenerated libdef stub for:
- *
- * 'seamless-immutable'
- *
- * 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 'seamless-immutable' {
- 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 'seamless-immutable/seamless-immutable.development' {
- declare module.exports: any;
-}
-
-declare module 'seamless-immutable/seamless-immutable.development.min' {
- declare module.exports: any;
-}
-
-declare module 'seamless-immutable/seamless-immutable.production.min' {
- declare module.exports: any;
-}
-
-declare module 'seamless-immutable/src/seamless-immutable' {
- declare module.exports: any;
-}
-
-// Filename aliases
-declare module 'seamless-immutable/seamless-immutable.development.js' {
- declare module.exports: $Exports<'seamless-immutable/seamless-immutable.development'>;
-}
-declare module 'seamless-immutable/seamless-immutable.development.min.js' {
- declare module.exports: $Exports<'seamless-immutable/seamless-immutable.development.min'>;
-}
-declare module 'seamless-immutable/seamless-immutable.production.min.js' {
- declare module.exports: $Exports<'seamless-immutable/seamless-immutable.production.min'>;
-}
-declare module 'seamless-immutable/src/seamless-immutable.js' {
- declare module.exports: $Exports<'seamless-immutable/src/seamless-immutable'>;
-}
diff --git a/frontend/flow-typed/npm/webstomp-client_vx.x.x.js b/frontend/flow-typed/npm/webstomp-client_vx.x.x.js
index 68f2e35e..cd9a7906 100644
--- a/frontend/flow-typed/npm/webstomp-client_vx.x.x.js
+++ b/frontend/flow-typed/npm/webstomp-client_vx.x.x.js
@@ -1,67 +1,150 @@
-// flow-typed signature: d776c429ba6acfd6ff5187bd78efb074
-// flow-typed version: <<STUB>>/webstomp-client_v^1.0.6/flow_v0.46.0
-
-/**
- * This is an autogenerated libdef stub for:
- *
- * 'webstomp-client'
- *
- * 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
- */
+/* eslint-disable */
+// Type definitions for webstomp-client v1.0.x
+// Project: https://github.com/JSteunou/webstomp-client
+// Definitions by: Jimi Charalampidis <https://github.com/JimiC>
declare module 'webstomp-client' {
- declare module.exports: any;
-}
+ declare export class Frame {
+ constructor(command: string, headers?: {}, body?: string): Frame,
-/**
- * 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 'webstomp-client/dist/webstomp' {
- declare module.exports: any;
-}
+ toString(): string,
+ sizeOfUTF8(s: string): number,
+ unmarshall(datas: any): any,
+ marshall(command: string, headers?: {}, body?: string): any
+ }
-declare module 'webstomp-client/dist/webstomp.min' {
- declare module.exports: any;
-}
+ declare type VERSIONS = {
+ V1_0: string,
+ V1_1: string,
+ V1_2: string,
+ // Versions of STOMP specifications supported
+ supportedVersions: () => string,
+ supportedProtocols: () => Array<string>
+ };
-declare module 'webstomp-client/src/client' {
- declare module.exports: any;
-}
+ declare export type Heartbeat = {
+ outgoing: number,
+ incoming: number
+ };
-declare module 'webstomp-client/src/frame' {
- declare module.exports: any;
-}
+ declare export type Subscription = {
+ id: string,
+ unsubscribe: () => void
+ };
-declare module 'webstomp-client/src/utils' {
- declare module.exports: any;
-}
+ declare export type Message = {
+ command: string,
+ body: string,
+ headers: ExtendedHeaders,
+ ack(headers?: AckHeaders): any,
+ nack(headers?: NackHeaders): any
+ };
-declare module 'webstomp-client/src/webstomp' {
- declare module.exports: any;
-}
+ declare export type Options = {
+ protocols?: Array<string>,
+ ...ClientOptions
+ };
-// Filename aliases
-declare module 'webstomp-client/dist/webstomp.js' {
- declare module.exports: $Exports<'webstomp-client/dist/webstomp'>;
-}
-declare module 'webstomp-client/dist/webstomp.min.js' {
- declare module.exports: $Exports<'webstomp-client/dist/webstomp.min'>;
-}
-declare module 'webstomp-client/src/client.js' {
- declare module.exports: $Exports<'webstomp-client/src/client'>;
-}
-declare module 'webstomp-client/src/frame.js' {
- declare module.exports: $Exports<'webstomp-client/src/frame'>;
-}
-declare module 'webstomp-client/src/utils.js' {
- declare module.exports: $Exports<'webstomp-client/src/utils'>;
-}
-declare module 'webstomp-client/src/webstomp.js' {
- declare module.exports: $Exports<'webstomp-client/src/webstomp'>;
+ declare export type ClientOptions = {
+ binary: boolean,
+ heartbeat: Heartbeat | boolean,
+ debug: boolean
+ };
+
+ declare export type ConnectionHeaders = {
+ login: string,
+ passcode: string,
+ host?: string
+ };
+
+ declare export type DisconnectHeaders = {
+ 'receipt'?: string
+ };
+
+ declare export type StandardHeaders = {
+ 'content-length'?: string,
+ 'content-type'?: string,
+ ...DisconnectHeaders
+ };
+
+ declare export type ExtendedHeaders = {
+ 'amqp-message-id'?: string,
+ 'app-id'?: string,
+ 'content-encoding'?: string,
+ 'correlation-id'?: string,
+ custom?: string,
+ destination?: string,
+ 'message-id'?: string,
+ persistent?: string,
+ redelivered?: string,
+ 'reply-to'?: string,
+ subscription?: string,
+ timestamp?: string,
+ type?: string,
+ ...StandardHeaders
+ };
+
+ declare export type UnsubscribeHeaders = {
+ id?: string,
+ ...StandardHeaders
+ };
+
+ declare export type SubscribeHeaders = {
+ ack?: string,
+ ...UnsubscribeHeaders
+ };
+
+ declare export type AckHeaders = {
+ transaction?: string,
+ ...UnsubscribeHeaders
+ };
+
+ declare export type NackHeaders = {
+ ...AckHeaders
+ };
+
+ declare function client(url: string, options?: Options): Client;
+
+ declare function over(socketType: any, options?: Options): Client;
+
+ declare export type Stomp = {
+ VERSIONS: VERSIONS,
+ client(url: string, options?: Options): Client,
+ over(socketType: any, options?: Options): Client
+ }
+
+ declare export default Stomp
+
+ declare export class Client {
+ connect(
+ headers: ConnectionHeaders,
+ connectCallback: (frame?: Frame) => any,
+ errorCallback?: (error: string) => any
+ ): void,
+ connect(
+ login: string,
+ passcode: string,
+ connectCallback: (frame?: Frame) => any,
+ errorCallback?: (error: string) => any,
+ host?: string
+ ): void,
+
+ disconnect(disconnectCallback: () => any, headers?: DisconnectHeaders): void,
+
+ send(destination: string, body?: string, headers?: ExtendedHeaders): void,
+
+ subscribe(destination: string, callback?: (message: Message) => any, headers?: SubscribeHeaders): Subscription,
+
+ unsubscribe(id: string, header?: UnsubscribeHeaders): void,
+
+ begin(transaction: string): void,
+
+ commit(transaction: string): void,
+
+ abort(transaction: string): void,
+
+ ack(messageID: string, subscription: Subscription, headers?: AckHeaders): void,
+
+ nack(messageID: string, subscription: Subscription, headers?: NackHeaders): void
+ }
}
bgstack15