diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-04-13 17:37:15 -0400 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-04-13 17:37:15 -0400 |
commit | 0a3fb59c91ad0498fe0302522ea775f71483d9e7 (patch) | |
tree | d5ad95a3ff978b89b1978017f921f58aec2eb884 /src/Utils.ts | |
parent | 191283a0e61e1f1b81429e6be6c5c1ef3da1a1b1 (diff) | |
parent | a23b160d19beff9163f970f7ae678c2aed9ce14e (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.ts | 11 |
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 |