Last active
June 28, 2017 14:33
-
-
Save XaveScor/aa93728ce0adfb1cafa8828c32974ad5 to your computer and use it in GitHub Desktop.
flow bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type DataType = | |
| {'grant_type': 'silent'} | |
| {'grant_type': 'password', 'username': string, 'password': string} | |
type BodyType = { | |
'client_id': string, | |
'client_secret': string, | |
'scope': string, | |
} & DataType | |
... | |
request(data: DataType): Promise<string> { | |
... | |
const body: BodyType = { // wrong here | |
...data, | |
'client_id': this.receivedURL.clientId, | |
'client_secret': this.receivedURL.clientSecret, | |
'scope': this.receivedURL.scope, | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment