Skip to content

Commit 1db3648

Browse files
authored
docs: Add JSDoc comment to type guard function (#1596)
1 parent 6f79189 commit 1db3648

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"next-seo": patch
3+
---
4+
5+
Add JSDoc comment to internal type guard function

src/utils/stringify.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ const safeJsonLdReplacer: JsonReplacer = (() => {
3838
};
3939
})();
4040

41-
// Utility: Assert never
41+
/**
42+
* Type guard to ensure exhaustive type checking.
43+
* @internal
44+
*/
4245
function isNever(_: never): void {}
4346

4447
/**

0 commit comments

Comments
 (0)