Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WebpushConfig

import type { WebpushConfig } from "https://googleapis.deno.dev/v1/fcm:v1.ts";
interface WebpushConfig {
data?: {
[key: string]: string;
}
;
fcmOptions?: WebpushFcmOptions;
headers?: {
[key: string]: string;
}
;
notification?: {
[key: string]: any;
}
;
}

§Properties

§
data?: {
[key: string]: string;
}
[src]

Arbitrary key/value payload. If present, it will override google.firebase.fcm.v1.Message.data.

§

Options for features provided by the FCM SDK for Web.

§
headers?: {
[key: string]: string;
}
[src]

HTTP headers defined in webpush protocol. Refer to Webpush protocol for supported headers, e.g. "TTL": "15".

§
notification?: {
[key: string]: any;
}
[src]

Web Notification options as a JSON object. Supports Notification instance properties as defined in Web Notification API. If present, "title" and "body" fields override [google.firebase.fcm.v1.Notification.title] and [google.firebase.fcm.v1.Notification.body].