chore(deps): update dependency flow-bin to v0.134.0 [skip netlify] (#2533)

* chore(deps): update dependency flow-bin to v0.134.0 [skip netlify]

* Fix flow errors

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Young Min Kin <mail@ylem.kim>
This commit is contained in:
renovate[bot]
2020-09-26 12:19:42 +09:00
committed by GitHub
parent 7418057e3a
commit 16a34c3b35
19 changed files with 43 additions and 36 deletions

View File

@@ -158,7 +158,7 @@ export default class Settings {
* This is for the second category of `errorCode`s listed in the README.
*/
useStrictBehavior(errorCode: string, errorMsg: string,
token?: Token | AnyParseNode) {
token?: Token | AnyParseNode): boolean {
let strict = this.strict;
if (typeof strict === "function") {
// Allow return value of strict function to be boolean or string
@@ -196,7 +196,7 @@ export default class Settings {
* If `context` has a `url` field, a `protocol` field will automatically
* get added by this function (changing the specified object).
*/
isTrusted(context: AnyTrustContext) {
isTrusted(context: AnyTrustContext): boolean {
if (context.url && !context.protocol) {
context.protocol = utils.protocolFromUrl(context.url);
}