-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the generator to use attribute fullName match Update the generator to get typeName to be used for type query
- Loading branch information
Showing
5 changed files
with
130 additions
and
53 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/Blazor.JavaScriptInterop.Extensions/BackgroundTasksExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) David Pine. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
// TODO: Get this working... | ||
|
||
using Microsoft.JSInterop.Attributes; | ||
|
||
namespace Microsoft.JSInterop.Extensions; | ||
|
||
[JavaScriptInterop(TypeName = "IdleDeadline", Url = "https://developer.mozilla.org/en-US/docs/Web/API/Background_Tasks_API")] | ||
public static partial class BackgroundTasksExtensions | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) David Pine. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
|
||
namespace Microsoft.JSInterop.Attributes; | ||
|
||
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] | ||
public sealed class JavaScriptInteropAttribute : Attribute | ||
{ | ||
public string? TypeName { get; set; } | ||
|
||
public string? Url { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters