From 8c29ae90720cbc7a6dfde6721559b13c0ebd52c3 Mon Sep 17 00:00:00 2001
From: Matthias Andreas Benkard <code@mail.matthias.benkard.de>
Date: Sat, 15 Feb 2020 21:04:58 +0100
Subject: Web: Move types.js to cms2/.

Change-Id: I297c74397b944e88989a8320953065e5cdd64c25
---
 .../META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js  |  2 +-
 src/main/resources/META-INF/resources/cms2/types.js            | 10 ++++++++++
 src/main/resources/META-INF/resources/types.js                 | 10 ----------
 3 files changed, 11 insertions(+), 11 deletions(-)
 create mode 100644 src/main/resources/META-INF/resources/cms2/types.js
 delete mode 100644 src/main/resources/META-INF/resources/types.js

(limited to 'src/main/resources/META-INF')

diff --git a/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js b/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js
index 3d8c2e6..4d9b40c 100644
--- a/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js
+++ b/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js
@@ -1,7 +1,7 @@
 // @flow
 
 import ProgressSpinner from "../web_modules/elix/define/ProgressSpinner.js";
-import { cast } from "../types.js";
+import { cast } from "../cms2/types.js";
 
 const template = document.createElement('template');
 template.innerHTML = `
diff --git a/src/main/resources/META-INF/resources/cms2/types.js b/src/main/resources/META-INF/resources/cms2/types.js
new file mode 100644
index 0000000..3ea0797
--- /dev/null
+++ b/src/main/resources/META-INF/resources/cms2/types.js
@@ -0,0 +1,10 @@
+// @flow
+
+export function cast/*:: <T>*/(x /*: ?Object*/) /*: T*/ {
+  if (x === null || x === undefined) {
+    throw "unexpected null or undefined";
+  } else {
+    /*:: (x: T); */
+    return x;
+  }
+}
diff --git a/src/main/resources/META-INF/resources/types.js b/src/main/resources/META-INF/resources/types.js
deleted file mode 100644
index 3ea0797..0000000
--- a/src/main/resources/META-INF/resources/types.js
+++ /dev/null
@@ -1,10 +0,0 @@
-// @flow
-
-export function cast/*:: <T>*/(x /*: ?Object*/) /*: T*/ {
-  if (x === null || x === undefined) {
-    throw "unexpected null or undefined";
-  } else {
-    /*:: (x: T); */
-    return x;
-  }
-}
-- 
cgit v1.2.3