aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-03-20 05:01:42 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-03-20 05:01:42 -0400
commite418b10b4e515c6ebbe0b9be64e7bfd451ddd11f (patch)
tree51f364b1fde240205df6c855c05137c8b5b95dc0 /src/Utils.ts
parent6cee1e69703463cd6410d24a96c1f9eb33e996a5 (diff)
Small tweak to UndoManager
Diffstat (limited to 'src/Utils.ts')
-rw-r--r--src/Utils.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index d4b7da52c..a4db94809 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -52,4 +52,6 @@ export class Utils {
public static AddServerHandlerCallback<T>(socket: Socket, message: Message<T>, handler: (args: [T, (res: any) => any]) => any) {
socket.on(message.Message, (arg: T, fn: (res: any) => any) => handler([arg, fn]));
}
-} \ No newline at end of file
+}
+
+export type Without<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; \ No newline at end of file