Skip to content

Commit

Permalink
Merge pull request #19 from linonetwo/fix-overwrited-I
Browse files Browse the repository at this point in the history
Fix overwrited I in Interface
  • Loading branch information
infeng authored Apr 22, 2019
2 parents 19c9272 + f6fe1bf commit 60aa0f4
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"body": [
"import * as React from 'react';",
"",
"export interface ${1:IApp}Props {",
"export interface I${1:App}Props {",
"}",
"",
"export default class ${1:} extends React.Component<${1:}Props, any> {",
"export default class ${1:} extends React.Component<I${1:}Props, any> {",
" public render() {",
" return (",
" <div>",
Expand All @@ -25,14 +25,14 @@
"body": [
"import * as React from 'react';",
"",
"export interface ${1:IApp}Props {",
"export interface I${1:App}Props {",
"}",
"",
"export interface ${1:IApp}State {",
"export interface I${1:App}State {",
"}",
"",
"export default class ${1:} extends React.Component<${1:}Props, ${1:}State> {",
" constructor(props: ${1:}Props) {",
"export default class ${1:} extends React.Component<I${1:}Props, ${1:}State> {",
" constructor(props: I${1:}Props) {",
" super(props);",
"",
" this.state = {",
Expand All @@ -54,10 +54,10 @@
"React Component without import and export": {
"prefix": "tsrcjc",
"body": [
"export interface ${1:IApp}Props {",
"export interface I${1:App}Props {",
"}",
"",
"class ${1:} extends React.Component<${1:}Props, any> {",
"class ${1:} extends React.Component<I${1:}Props, any> {",
" public render() {",
" return (",
" <div>",
Expand All @@ -75,10 +75,10 @@
"body": [
"import * as React from 'react';",
"",
"export interface ${1:IApp}Props {",
"export interface I${1:App}Props {",
"}",
"",
"export default class ${1:} extends React.PureComponent<${1:}Props, any> {",
"export default class ${1:} extends React.PureComponent<I${1:}Props, any> {",
" public render() {",
" return (",
" <div>",
Expand All @@ -94,10 +94,10 @@
"React PureComponent without import and export": {
"prefix": "tsrpcjc",
"body": [
"export interface ${1:IApp}Props {",
"export interface I${1:App}Props {",
"}",
"",
"class ${1:} extends React.PureComponent<${1:}Props, any> {",
"class ${1:} extends React.PureComponent<I${1:}Props, any> {",
" public render() {",
" return (",
" <div>",
Expand All @@ -115,10 +115,10 @@
"body": [
"import * as React from 'react';",
"",
"export interface ${1:IApp}Props {",
"export interface I${1:App}Props {",
"}",
"",
"export function ${1:} (props: ${1:}Props) {",
"export function ${1:} (props: I${1:}Props) {",
" return (",
" <div>",
" ${0}",
Expand All @@ -134,14 +134,14 @@
"body": [
"import * as React from 'react';",
"",
"interface ${1:IApp}Props {$2",
"interface I${1:App}Props {$2",
"}",
"",
"const $1: React.FunctionComponent<$1Props> = (props) => {",
"const ${1:}: React.FunctionComponent<I${1:}Props> = (props) => {",
" return $0;",
"};",
"",
"export default $1;"
"export default ${1:};"
],
"description": "Create a React Stateless Functional Component."
},
Expand Down Expand Up @@ -258,10 +258,10 @@
"import * as React from 'react';",
"import { connect } from 'react-redux'",
"",
"export interface ${1:IApp}Props {",
"export interface I${1:App}Props {",
"}",
"",
"class ${1:} extends React.Component<${1:}Props, any> {",
"class ${1:} extends React.Component<I${1:}Props, any> {",
" public render() {",
" return (",
" <div>",
Expand Down

0 comments on commit 60aa0f4

Please sign in to comment.