Skip to content

Commit 2cdaf29

Browse files
committed
Work class and interface snip after export in TypeScript
`export default class SomeClass { ... }` is valid TypeScript code, and it is an useful idiom. So I think the snippet should work after `export` keyword.
1 parent 2402f45 commit 2cdaf29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neosnippets/typescript.snip

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ options head
77

88
snippet class
99
abbr class NAME {...}
10-
options head
10+
options word
1111
class ${1:#:NAME} {
1212
constructor(${2:#:Args}) {
1313
${3:#:TARGET}
@@ -41,7 +41,7 @@ options head
4141

4242
snippet interface
4343
abbr interface NAME {...}
44-
options head
44+
options word
4545
interface ${1:#:NAME} {
4646
${0:#:TARGET}
4747
}

0 commit comments

Comments
 (0)