aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.ts
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-04-13 17:37:15 -0400
committeryipstanley <stanley_yip@brown.edu>2019-04-13 17:37:15 -0400
commit0a3fb59c91ad0498fe0302522ea775f71483d9e7 (patch)
treed5ad95a3ff978b89b1978017f921f58aec2eb884 /src/Utils.ts
parent191283a0e61e1f1b81429e6be6c5c1ef3da1a1b1 (diff)
parenta23b160d19beff9163f970f7ae678c2aed9ce14e (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into interaction_changes
Diffstat (limited to 'src/Utils.ts')
-rw-r--r--src/Utils.ts11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index b0e66787e..c629bc263 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -2,6 +2,7 @@ import v4 = require('uuid/v4');
import v5 = require("uuid/v5");
import { Socket } from 'socket.io';
import { Message, Types } from './server/Message';
+import { Document } from './fields/Document';
export class Utils {
@@ -86,14 +87,12 @@ export class Utils {
}
}
-export function returnTrue() {
- return true;
-}
+export function returnTrue() { return true; }
-export function returnFalse() {
- return false;
-}
+export function returnFalse() { return false; }
export function emptyFunction() { }
+export function emptyDocFunction(doc: Document) { }
+
export type Without<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; \ No newline at end of file