chore(api): update @since tag to 2.0.0 (#395)

This commit is contained in:
Lucas Fernandes Nogueira
2023-05-23 19:44:05 -07:00
committed by GitHub
parent 7e3034904c
commit 9bf98f68e7
14 changed files with 227 additions and 113 deletions
+4 -4
View File
@@ -18,7 +18,7 @@ import {
/**
* Options to send a notification.
*
* @since 1.0.0
* @since 2.0.0
*/
interface Options {
/**
@@ -300,7 +300,7 @@ type Permission = "granted" | "denied" | "default";
* const permissionGranted = await isPermissionGranted();
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
async function isPermissionGranted(): Promise<boolean> {
if (window.Notification.permission !== "default") {
@@ -323,7 +323,7 @@ async function isPermissionGranted(): Promise<boolean> {
*
* @returns A promise resolving to whether the user granted the permission or not.
*
* @since 1.0.0
* @since 2.0.0
*/
async function requestPermission(): Promise<Permission> {
return window.Notification.requestPermission();
@@ -345,7 +345,7 @@ async function requestPermission(): Promise<Permission> {
* }
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
function sendNotification(options: Options | string): void {
if (typeof options === "string") {