From 42b37a617919c6ae76d7eabfb4468528e6de3258 Mon Sep 17 00:00:00 2001 From: Artyom Sovetnikov <2056864+Elringus@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:08:10 +0300 Subject: [PATCH 1/2] fix map type --- src/cs/Bootsharp.Publish.Test/Pack/DeclarationTest.cs | 8 ++++---- .../Common/TypeConverter/TypeConverter.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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) From e309898ff61ee72c596cb8562a56fd7a544a939b Mon Sep 17 00:00:00 2001 From: Artyom Sovetnikov <2056864+Elringus@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:09:12 +0300 Subject: [PATCH 2/2] dont auto publish --- .github/workflows/package.yml | 2 -- 1 file changed, 2 deletions(-) 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: