https://github.com/yamachu/types-hybridwebview
https://github.com/yamachu/types-hybridwebview
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yamachu/types-hybridwebview
- Owner: yamachu
- License: mit
- Created: 2024-11-25T14:51:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-25T15:00:49.000Z (over 1 year ago)
- Last Synced: 2025-01-26T12:43:54.273Z (over 1 year ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @yamachu/types-hybridwebview
Unofficial [.NET MAUI HybridWebView](https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/hybridwebview?view=net-maui-10.0) type definitions.
## Installation
```bash
$ npm install @yamachu/types-hybridwebview
```
## Usage
To use the latest version of the HybridWebView types:
```ts
///
window.HybridWebView.postMessage("Hello from myscript.ts");
```
If you want to use specific versioned HybridWebView types, you can do so like this:
```ts
///
interface Window {
HybridWebView: HybridWebView9_0.HybridWebView; // e.g. `HybridWebView9_0` is namespace, you can find these definitions in ./src/*.d.ts
}
window.HybridWebView.postMessage("Hello from myscript.ts");
```
## Contributing
If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.
## License
This project is licensed under the MIT License.
See the LICENSE file for details.