Better projects
This commit is contained in:
@@ -45,7 +45,7 @@ return {
|
||||
|
||||
s(etr('const ', 'const declaration'), {
|
||||
c(1, {
|
||||
sn(nil, fmta('const #~ = #~;', { i(1, 'variableName'), i(2, 'value') })),
|
||||
sn(nil, fmta('const #~ = #~;', { i(1), i(2) })),
|
||||
sn(
|
||||
nil,
|
||||
fmta(
|
||||
@@ -60,6 +60,38 @@ return {
|
||||
}),
|
||||
}),
|
||||
|
||||
s(etr('ref ', 'ref'), {
|
||||
c(1, {
|
||||
sn(nil, fmta('const #~ = ref(#~);', { i(1), i(2) })),
|
||||
sn(
|
||||
nil,
|
||||
fmta(
|
||||
[[
|
||||
const #~ = ref<#~>(#~);
|
||||
]],
|
||||
{ i(1), i(2), i(3) }
|
||||
)
|
||||
),
|
||||
}),
|
||||
}),
|
||||
|
||||
s(etr('com ', 'computed'), {
|
||||
c(1, {
|
||||
sn(nil, fmta('const #~ = computed(() => #~);', { i(1), i(2) })),
|
||||
sn(
|
||||
nil,
|
||||
fmta(
|
||||
[[
|
||||
const #~ = computed(() => {
|
||||
#~
|
||||
})
|
||||
]],
|
||||
{ i(1), i(2) }
|
||||
)
|
||||
),
|
||||
}),
|
||||
}),
|
||||
|
||||
s(
|
||||
etr('fn ', 'function block'),
|
||||
fmta(
|
||||
@@ -126,3 +158,4 @@ return {
|
||||
}),
|
||||
}),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user