-
-
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.
Pushing changes from the other night, before closing visual studio.
- Loading branch information
1 parent
96885c5
commit 241a2ba
Showing
3 changed files
with
101 additions
and
9 deletions.
There are no files selected for viewing
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,77 @@ | ||
{ | ||
"$schema": "https://aka.ms/codetour-schema", | ||
"title": "The ILocalStorageService interface", | ||
"steps": [ | ||
{ | ||
"file": "src/Blazor.LocalStorage.WebAssembly/ILocalStorageService.cs", | ||
"description": "The `ILocalStorageService` type is exposed in the file-scoped `Microsoft.JSInterop` namespace as a convenience.", | ||
"line": 4, | ||
"selection": { | ||
"start": { | ||
"line": 4, | ||
"character": 1 | ||
}, | ||
"end": { | ||
"line": 4, | ||
"character": 31 | ||
} | ||
} | ||
}, | ||
{ | ||
"file": "src/Blazor.LocalStorage.WebAssembly/ILocalStorageService.cs", | ||
"description": "The `JSAutoGenericInterop` attribute is source-generated by the `Blazor.SourceGenerator` project. When you decorate types with this attribute, it will signal to the source-generator to create Blazor JavaSciprt interop for the given `TypeName` and its corresponding `Implementation`.", | ||
"line": 6, | ||
"selection": { | ||
"start": { | ||
"line": 6, | ||
"character": 2 | ||
}, | ||
"end": { | ||
"line": 6, | ||
"character": 22 | ||
} | ||
} | ||
}, | ||
{ | ||
"file": "src/Blazor.LocalStorage.WebAssembly/ILocalStorageService.cs", | ||
"description": "The `TypeName` is set to the `\"Storage\"` type, this corresponds directly to the `Storage` interface from the [_lib.dom.d.ts_ at line 14,276](https://github.com/microsoft/TypeScript/blob/main/lib/lib.dom.d.ts#L14276-L14310).", | ||
"line": 7 | ||
}, | ||
{ | ||
"file": "src/Blazor.LocalStorage.WebAssembly/ILocalStorageService.cs", | ||
"description": "The `GenericMethodDescriptors` property allows the consumer to specify method descriptors that are used to determine which corresponding generated APIs support generics.", | ||
"line": 10, | ||
"selection": { | ||
"start": { | ||
"line": 10, | ||
"character": 5 | ||
}, | ||
"end": { | ||
"line": 10, | ||
"character": 29 | ||
} | ||
} | ||
}, | ||
{ | ||
"file": "src/Blazor.LocalStorage.WebAssembly/ILocalStorageService.cs", | ||
"description": "The `\"getItem\"` API exists on the `Storage` interface. When it's added as a generic method descriptor, we're telling the source-generator we want the return type to be generic.", | ||
"line": 12 | ||
}, | ||
{ | ||
"file": "src/Blazor.LocalStorage.WebAssembly/ILocalStorageService.cs", | ||
"description": "The `Implementation` is resolved as the `window.localStorage`. In a browser, open dev tools, and in the **Console** you can type `window.localStorage` to see that this implementation is available.", | ||
"line": 8 | ||
}, | ||
{ | ||
"file": "src/Blazor.LocalStorage.WebAssembly/ILocalStorageService.cs", | ||
"description": "The `\"setItem:value\"` method descriptor tells the source-generator to look for a method named `setItem` and when source-generating its parameters, the parameter with a name of `value` should be generic.", | ||
"line": 13 | ||
}, | ||
{ | ||
"file": "src/Blazor.LocalStorage.WebAssembly/ILocalStorageService.cs", | ||
"description": "The `interface` is declared as `partial`. This is required as the source-generator will generate the all of the APIs for this interface.", | ||
"line": 15 | ||
} | ||
], | ||
"ref": "main" | ||
} |
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