Skip to content

Commit 928bedd

Browse files
committed
feat: typescript sleep
1 parent c5b84a6 commit 928bedd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

snippets/sleep.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
const { TYPES } = require("../src/common/consts/types");
12
const body = `
23
const timeout = \${1:1000}
34
await new Promise((resolve) => setTimeout(resolve, timeout))
45
`;
56
const description = "";
67

78
module.exports = {
8-
prefix: ["sleep","!sleep", "delay",'await'],
9-
type: ["javascript"],
9+
prefix: ["sleep", "!sleep", "delay", "await"],
10+
type: [TYPES.javascript, TYPES.typescript],
1011
description: description || body,
1112
body: body.trim(),
1213
};

0 commit comments

Comments
 (0)