Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yamachu/types-hybridwebview
https://github.com/yamachu/types-hybridwebview
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yamachu/types-hybridwebview
- Owner: yamachu
- License: mit
- Created: 2024-11-25T14:51:42.000Z (28 days ago)
- Default Branch: main
- Last Pushed: 2024-11-25T15:00:49.000Z (28 days ago)
- Last Synced: 2024-11-25T16:19:35.710Z (28 days 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-9.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.