Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yamachu/types-hybridwebview


https://github.com/yamachu/types-hybridwebview

Last synced: 25 days ago
JSON representation

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.