Move Body type into shared flux types

pull/10616/head
Alex P 2018-06-15 16:06:35 -07:00
parent 27d70504fc
commit 2489aacd99
2 changed files with 4 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import BodyDelete from 'src/flux/components/BodyDelete'
import {funcNames} from 'src/flux/constants'
import {Service} from 'src/types'
import {FlatBody, Suggestion} from 'src/types/flux'
import {Body, Suggestion} from 'src/types/flux'
interface Props {
service: Service
@ -20,10 +20,6 @@ interface Props {
onDeleteBody: (bodyID: string) => void
}
interface Body extends FlatBody {
id: string
}
class BodyBuilder extends PureComponent<Props> {
public render() {
const {body, onDeleteBody} = this.props

View File

@ -106,6 +106,9 @@ export interface FlatBody {
funcs?: Func[]
declarations?: FlatDeclaration[]
}
export interface Body extends FlatBody {
id: string
}
export interface Func {
type: string