Fix optional parameters (#45728)

This commit is contained in:
Jason O'Neill 2020-06-26 11:26:49 -07:00 committed by GitHub
parent 385d6cbe7a
commit bf2a6e1785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
// Type definitions for node-polyglot v0.4.4
// Type definitions for node-polyglot v2.4.0
// Project: https://github.com/airbnb/polyglot.js
// Definitions by: Tim Jackson-Kiely <https://github.com/timjk>
// Liam Ross <https://github.com/liamross>
@ -22,7 +22,7 @@ declare namespace Polyglot {
phrases?: any;
locale?: string;
allowMissing?: boolean;
onMissingKey?: (key: string, options?: Polyglot.InterpolationOptions, locale?: string) => string;
onMissingKey?: (key: string, options: Polyglot.InterpolationOptions, locale: string) => string;
warn?: (message: string) => void;
interpolation?: InterpolationTokenOptions;
}