summaryrefslogtreecommitdiff
path: root/src/text/parse/elements/search.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/text/parse/elements/search.ts')
-rw-r--r--src/text/parse/elements/search.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/text/parse/elements/search.ts b/src/text/parse/elements/search.ts
index 12ee8ecbb8..4bd19ee3fa 100644
--- a/src/text/parse/elements/search.ts
+++ b/src/text/parse/elements/search.ts
@@ -2,7 +2,13 @@
* Search
*/
-module.exports = text => {
+export type TextElementSearch = {
+ type: "search"
+ content: string
+ query: string
+};
+
+export default function(text: string) {
const match = text.match(/^(.+?) 検索(\n|$)/);
if (!match) return null;
return {
@@ -10,4 +16,4 @@ module.exports = text => {
content: match[0],
query: match[1]
};
-};
+}