-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
{
"return": {
"prefix": "rt",
"body": [
"return $1"
]
},
"then": {
"prefix": "th",
"body": [
".then(($1) => {$2})"
]
},
"TypeScript react function component 1": {
"prefix": "trfc",
"body": [
"import React from 'react';",
"",
"",
"type I${1:${TM_FILENAME_BASE}}Props = {",
"\tclassName?: string;",
"\tstyle?: React.CSSProperties;",
"};",
"type I${1:${TM_FILENAME_BASE}}State = {};",
"",
"const ${1:${TM_FILENAME_BASE}}: React.FC<I${1:${TM_FILENAME_BASE}}Props> = () => {",
"\treturn (",
"\t\t
",
"\t\t\t${1:${TM_FILENAME_BASE}}",
"\t\t
","\t\t\t${1:${TM_FILENAME_BASE}}",
"\t\t
"\t);",
"};",
"",
"export default ${1:${TM_FILENAME_BASE}};",
"",
]
},
"TypeScript react function component constructor": {
"prefix": "tsfc",
"body": [
"import React from 'react';",
"import { Base, Anime } from '@shuwen/use-anime';",
"",
"",
"export type I${1:${TM_FILENAME_BASE}}Props = {",
"\tclassName?: string;",
"\tstyle?: React.CSSProperties;",
"};",
"type I${1:${TM_FILENAME_BASE}}State = {};",
"",
"function ${1:${TM_FILENAME_BASE}}(props:I${1:${TM_FILENAME_BASE}}Props){",
"\treturn (",
"\t\t
",
"\t\t\t${1:${TM_FILENAME_BASE}}",
"\t\t
","\t\t\t${1:${TM_FILENAME_BASE}}",
"\t\t
"\t);",
"};",
"",
"",
"${1:${TM_FILENAME_BASE}}.defaultProps = defaultProps;",
"",
"",
"export default ${1:${TM_FILENAME_BASE}};",
"",
]
},
"TSLint disable next line": {
"prefix": "tdnl",
"body": "// tslint:disable-next-line $1",
},
"TSLint disable line": {
"prefix": "tdl",
"body": "// tslint:disable-line $1",
},
}
Metadata
Metadata
Assignees
Labels
No labels