Skip to content

Commit

Permalink
Fixes RicoSuter#1524: typescript checking fails on Dictionary<Enum, s…
Browse files Browse the repository at this point in the history
…tring> (RicoSuter#1525)
  • Loading branch information
Shaddix authored Jun 2, 2022
1 parent 71ce421 commit d8df4f3
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class MyClass implements IMyClass {
data["PrimitiveDictionary"] = {};
for (let key in this.primitiveDictionary) {
if (this.primitiveDictionary.hasOwnProperty(key))
(<any>data["PrimitiveDictionary"])[key] = this.primitiveDictionary[key];
(<any>data["PrimitiveDictionary"])[key] = (<any>this.primitiveDictionary)[key];
}
}
if (Array.isArray(this.dateArray)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class MyClass implements IMyClass {
data["PrimitiveDictionary"] = {};
for (let key in this.primitiveDictionary) {
if (this.primitiveDictionary.hasOwnProperty(key))
(<any>data["PrimitiveDictionary"])[key] = this.primitiveDictionary[key];
(<any>data["PrimitiveDictionary"])[key] = (<any>this.primitiveDictionary)[key];
}
}
if (Array.isArray(this.dateArray)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class MyClass implements IMyClass {
data["PrimitiveDictionary"] = {};
for (let key in this.primitiveDictionary) {
if (this.primitiveDictionary.hasOwnProperty(key))
(<any>data["PrimitiveDictionary"])[key] = this.primitiveDictionary[key];
(<any>data["PrimitiveDictionary"])[key] = (<any>this.primitiveDictionary)[key];
}
}
if (Array.isArray(this.dateArray)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class MyClass implements IMyClass {
data["PrimitiveDictionary"] = {};
for (let key in this.primitiveDictionary) {
if (this.primitiveDictionary.hasOwnProperty(key))
(<any>data["PrimitiveDictionary"])[key] = this.primitiveDictionary[key];
(<any>data["PrimitiveDictionary"])[key] = (<any>this.primitiveDictionary)[key];
}
}
if (Array.isArray(this.dateArray)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class MyClass {
data["PrimitiveDictionary"] = {};
for (let key in primitiveDictionary_) {
if (primitiveDictionary_.hasOwnProperty(key))
(<any>data["PrimitiveDictionary"])[key] = primitiveDictionary_[key];
(<any>data["PrimitiveDictionary"])[key] = (<any>primitiveDictionary_)[key];
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class MyClass {
data["PrimitiveDictionary"] = {};
for (let key in primitiveDictionary_) {
if (primitiveDictionary_.hasOwnProperty(key))
(<any>data["PrimitiveDictionary"])[key] = primitiveDictionary_[key];
(<any>data["PrimitiveDictionary"])[key] = (<any>primitiveDictionary_)[key];
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class MyClass {
data["PrimitiveDictionary"] = {};
for (let key in primitiveDictionary_) {
if (primitiveDictionary_.hasOwnProperty(key))
(<any>data["PrimitiveDictionary"])[key] = primitiveDictionary_[key];
(<any>data["PrimitiveDictionary"])[key] = (<any>primitiveDictionary_)[key];
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class MyClass {
data["PrimitiveDictionary"] = {};
for (let key in primitiveDictionary_) {
if (primitiveDictionary_.hasOwnProperty(key))
(<any>data["PrimitiveDictionary"])[key] = primitiveDictionary_[key];
(<any>data["PrimitiveDictionary"])[key] = (<any>primitiveDictionary_)[key];
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if ({{ Value }}) {
{%- if NullValue != "undefined" -%}
(<any>{{ Variable }})[key] = {{ Value }}[key] !== undefined ? {{ Value }}[key] : <any>{{ NullValue }};
{%- else -%}
(<any>{{ Variable }})[key] = {{ Value }}[key];
(<any>{{ Variable }})[key] = (<any>{{ Value }})[key];
{%- endif -%}
{%- endif -%}
}
Expand Down

0 comments on commit d8df4f3

Please sign in to comment.