Оказывается, просто пакет @types/winrt-uwp
на npm еще не обновлен с новыми API.Я мог бы просто использовать что-то вроде этого, чтобы получить канал:
const pnm: any = Windows.Networking.PushNotifications.PushNotificationChannelManager;
const dpnm = pnm.getDefault();
const notifPromise: any = dpnm.createRawPushNotificationChannelWithAlternateKeyForApplicationAsync(buffer, 'notif');
notifPromise.then(subscription => {
console.log(subscription);
}