Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jan 29, 2025
1 parent 0f98af8 commit 7db6607
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import {PropertyType} from "./PropertyType";
*/
export interface ReferencePropertyType extends PropertyType {
target?: string
template?: Map<string, string>
template?: Record<string, string>
}

Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {PropertyType} from "./PropertyType";
export interface StructDefinitionType extends DefinitionType {
base?: boolean
discriminator?: string
mapping?: Map<string, string>
mapping?: Record<string, string>
parent?: ReferencePropertyType
properties?: Map<string, PropertyType>
properties?: Record<string, PropertyType>
}

4 changes: 2 additions & 2 deletions tests/Generator/resource/typescript/complex/TypeSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {DefinitionType} from "./DefinitionType";
* TypeSchema specification
*/
export interface TypeSchema {
definitions?: Map<string, DefinitionType>
import?: Map<string, string>
definitions?: Record<string, DefinitionType>
import?: Record<string, string>
root?: string
}

6 changes: 3 additions & 3 deletions tests/Generator/resource/typescript/default/News.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {Author} from "./Author";
*/
export interface News {
config?: Meta
inlineConfig?: Map<string, string>
mapTags?: Map<string, string>
mapReceiver?: Map<string, Author>
inlineConfig?: Record<string, string>
mapTags?: Record<string, string>
mapReceiver?: Record<string, Author>
tags?: Array<string>
receiver?: Array<Author>
read?: boolean
Expand Down

0 comments on commit 7db6607

Please sign in to comment.