Skip to content

Commit 878d684

Browse files
committed
Fix generated TS types
1 parent 8838d29 commit 878d684

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

backend/FwLite/FwLiteShared/Services/IPreferencesService.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
using Microsoft.JSInterop;
2+
using Reinforced.Typings.Attributes;
3+
14
namespace FwLiteShared.Services;
25

36
/// <summary>
@@ -6,7 +9,11 @@ namespace FwLiteShared.Services;
69
/// </summary>
710
public interface IPreferencesService
811
{
12+
[JSInvokable]
13+
[TsFunction(Type = "Promise<string | null>")]
914
string? Get(string key);
15+
[JSInvokable]
1016
void Set(string key, string value);
17+
[JSInvokable]
1118
void Remove(string key);
1219
}

0 commit comments

Comments
 (0)