refactor: use flat options on class

This commit is contained in:
Evan You
2018-10-09 20:22:29 -04:00
parent b527705928
commit da6f0d7adc
9 changed files with 92 additions and 102 deletions

View File

@@ -95,10 +95,8 @@ describe('attribute fallthrough', () => {
}
class Child extends Component<{ foo: number }> {
static options = {
props: {
foo: Number
}
static props = {
foo: Number
}
updated() {
childUpdated()
@@ -169,10 +167,8 @@ describe('attribute fallthrough', () => {
}
class Child extends Component {
static options = {
props: {
foo: Number
}
static props = {
foo: Number
}
updated() {
childUpdated()
@@ -183,10 +179,8 @@ describe('attribute fallthrough', () => {
}
class GrandChild extends Component<{ foo: number }> {
static options = {
props: {
foo: Number
}
static props = {
foo: Number
}
updated() {
grandChildUpdated()