From 7d71ffdae2ac961bf5fa08a16da85288a6efff85 Mon Sep 17 00:00:00 2001 From: Leonard Thieu Date: Tue, 18 Sep 2018 06:26:45 -0400 Subject: [PATCH] [jquery] Fix issue with resolving `Symbol` when used with ES5. --- types/jquery/index.d.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/types/jquery/index.d.ts b/types/jquery/index.d.ts index 896113edf3..7f31f818ab 100644 --- a/types/jquery/index.d.ts +++ b/types/jquery/index.d.ts @@ -5855,10 +5855,23 @@ interface JQuery extends Iterable { [n: number]: TElement; } -// ES5 compatibility +// #region ES5 compatibility + // tslint:disable-next-line:no-empty-interface interface Iterable { } +interface SymbolConstructor { + /** + * A String value that is used in the creation of the default string description of an object. + * Called by the built-in method Object.prototype.toString. + */ + readonly toStringTag: symbol; +} + +declare var Symbol: SymbolConstructor; + +// #endregion + declare namespace JQuery { type TypeOrArray = T | T[]; type Node = Element | Text | Comment | DocumentFragment;