forked from supabase/supabase-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypedoc.base.mjs
More file actions
62 lines (60 loc) · 1.48 KB
/
Copy pathtypedoc.base.mjs
File metadata and controls
62 lines (60 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Shared TypeDoc options for all @supabase/* packages.
//
// Registers the custom block tags consumed by the supabase.com docs generator so
// TypeDoc recognizes them (no "unknown block tag" warnings) and preserves them in
// the generated spec.json.
//
// TypeDoc's `blockTags` option *replaces* the defaults rather than extending them,
// so this list is TypeDoc's default set (OptionDefaults.blockTags, v0.27.x) plus the
// custom tags at the end. We inline the defaults instead of importing
// `OptionDefaults` from 'typedoc' because this file lives at the workspace root,
// where pnpm does not link the `typedoc` package (it is only installed per-package).
// If TypeDoc is upgraded and adds new default block tags, append them here.
const DEFAULT_BLOCK_TAGS = [
'@defaultValue',
'@deprecated',
'@example',
'@param',
'@privateRemarks',
'@remarks',
'@returns',
'@see',
'@throws',
'@typeParam',
'@author',
'@callback',
'@category',
'@categoryDescription',
'@default',
'@document',
'@extends',
'@augments',
'@yields',
'@group',
'@groupDescription',
'@import',
'@inheritDoc',
'@jsx',
'@license',
'@module',
'@mergeModuleWith',
'@prop',
'@property',
'@return',
'@satisfies',
'@since',
'@template',
'@type',
'@typedef',
'@summary',
]
const CUSTOM_BLOCK_TAGS = [
'@subcategory',
'@exampleResponse',
'@exampleSql',
'@exampleDescription',
'@reference',
]
export default {
blockTags: [...DEFAULT_BLOCK_TAGS, ...CUSTOM_BLOCK_TAGS],
}