Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(docs): typespec support for tags in v0.23+ (#38530)

Charisf04eb655c6a4
diff --git a/apps/docs/features/docs/Reference.typeSpec.ts b/apps/docs/features/docs/Reference.typeSpec.ts
index dd01b94d78c..c076ff43ca2 100644
--- a/apps/docs/features/docs/Reference.typeSpec.ts
+++ b/apps/docs/features/docs/Reference.typeSpec.ts
@@ -46,6 +46,7 @@ export interface MethodTypes {
interface Comment {
shortText?: string
text?: string
+ tags?: Array<{ tag: string; text: string }>
}
export interface FunctionParameterType {
@@ -172,6 +173,8 @@ function isNewTypedoc(node: any) {
interface TypedocComment {
summary: CommentKind[]
blockTags: CommentBlockTag[]
+ /** Includes tags like `@experimental` **/
+ modifierTags: string[]
}
type CommentKind = CommentKindText | CommentKindCode
@@ -208,6 +211,10 @@ function normalizeComment(original: TypedocComment | Comment | undefined): Comme
comment.shortText = original.summary.map((part) => part.text).join('')
}
+ if ('modifierTags' in original) {
+ comment.tags = original.modifierTags.map((tag) => ({ tag: tag.replace(/^@/, ''), text: '' }))
+ }
+
return comment
}