Support additional JS snippets

Because React + Redux + Flow = SO MUCH BOILERPLATE...
This commit is contained in:
William Carroll 2018-05-29 16:22:06 -04:00
parent fc283b7a23
commit 3d256c6b3b
3 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: exactness
# key: $x
# --
$Exact<$Call<typeof $1>>

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: redux-action
# key: rax
# --
export const ${1:$$(lower->caps yas-text)} = '`(downcase (buffer-dirname))`/${1:$(caps->kebab yas-text)}'

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: typed-redux-action
# key: trax
# --
export const ${1:$$(lower->caps yas-text)}: '`(downcase (buffer-dirname))`/${1:$(caps->kebab yas-text)}' = '`(downcase (buffer-dirname))`/${1:$(caps->kebab yas-text)}'