@nativescript/windows 0.1.0-alpha.60 → 0.1.0-alpha.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -256,8 +256,9 @@ public static partial class Bridge
256
256
  {
257
257
  if (value is Task || value is ValueTask) return true;
258
258
  if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(ValueTask<>)) return true;
259
- var fn = t.FullName ?? "";
260
- if (fn.StartsWith("Windows.Foundation.IAsync", StringComparison.Ordinal)) return true;
259
+ if ((t.FullName ?? "").StartsWith("Windows.Foundation.IAsync", StringComparison.Ordinal)) return true;
260
+ foreach (var iface in t.GetInterfaces())
261
+ if ((iface.FullName ?? "").StartsWith("Windows.Foundation.IAsync", StringComparison.Ordinal)) return true;
261
262
  return t.GetMethod("GetAwaiter",
262
263
  BindingFlags.Public | BindingFlags.Instance,
263
264
  null, Type.EmptyTypes, null) is not null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript/windows",
3
- "version": "0.1.0-alpha.60",
3
+ "version": "0.1.0-alpha.61",
4
4
  "description": "NativeScript for using Windows v8",
5
5
  "repository": {
6
6
  "type": "git",