diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 3737dfe8..93c04bac 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -1,8 +1,6 @@ name: package on: - push: - branches: [ main ] workflow_dispatch: jobs: diff --git a/src/cs/Bootsharp.Publish.Test/Pack/DeclarationTest.cs b/src/cs/Bootsharp.Publish.Test/Pack/DeclarationTest.cs index f6150c3f..9792131d 100644 --- a/src/cs/Bootsharp.Publish.Test/Pack/DeclarationTest.cs +++ b/src/cs/Bootsharp.Publish.Test/Pack/DeclarationTest.cs @@ -447,12 +447,12 @@ export namespace n { export interface Item { } export interface Container { - items: Map; + items: Record; } } export namespace n.Class { - export function combine(items: Map): n.Container; + export function combine(items: Record): n.Container; } """); } @@ -471,12 +471,12 @@ export namespace n { export interface Item { } export interface Container { - items: Map; + items: Record; } } export namespace n.Class { - export function combine(items: Map): n.Container; + export function combine(items: Record): n.Container; } """); } diff --git a/src/cs/Bootsharp.Publish/Common/TypeConverter/TypeConverter.cs b/src/cs/Bootsharp.Publish/Common/TypeConverter/TypeConverter.cs index fa05b3cd..0b838f7c 100644 --- a/src/cs/Bootsharp.Publish/Common/TypeConverter/TypeConverter.cs +++ b/src/cs/Bootsharp.Publish/Common/TypeConverter/TypeConverter.cs @@ -56,7 +56,7 @@ private string ConvertDictionary (Type type) { var keyType = type.GenericTypeArguments[0]; var valueType = type.GenericTypeArguments[1]; - return $"Map<{Convert(keyType)}, {Convert(valueType)}>"; + return $"Record<{Convert(keyType)}, {Convert(valueType)}>"; } private string ConvertAwaitable (Type type)