@wtf/project-docs 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/README.md +2 -0
  2. package/api/@wtf/project-astro/config/functions/baseConfig.md +1 -1
  3. package/api/@wtf/project-astro/config/functions/baseOf.md +1 -1
  4. package/api/@wtf/project-astro/config/functions/siteOf.md +1 -1
  5. package/api/@wtf/project-astro/config/type-aliases/BaseOptions.md +6 -6
  6. package/api/@wtf/project-astro/config/type-aliases/Env.md +1 -1
  7. package/api/@wtf/project-astro/errors/classes/BrokenLinksError.md +5 -5
  8. package/api/@wtf/project-astro/errors/classes/InvalidRedirectError.md +6 -6
  9. package/api/@wtf/project-astro/errors/classes/RedirectedLinksError.md +5 -5
  10. package/api/@wtf/project-astro/errors/classes/SiteError.md +4 -4
  11. package/api/@wtf/project-astro/index/type-aliases/AstroPlatform.md +1 -1
  12. package/api/@wtf/project-astro/index/type-aliases/BrokenLink.md +3 -3
  13. package/api/@wtf/project-astro/index/type-aliases/IgnoredLine.md +4 -4
  14. package/api/@wtf/project-astro/index/type-aliases/RedirectInput.md +2 -2
  15. package/api/@wtf/project-astro/index/type-aliases/RedirectMatch.md +3 -3
  16. package/api/@wtf/project-astro/index/type-aliases/RedirectRule.md +5 -5
  17. package/api/@wtf/project-astro/index/type-aliases/RedirectStatus.md +1 -1
  18. package/api/@wtf/project-astro/index/type-aliases/RedirectedLink.md +2 -2
  19. package/api/@wtf/project-astro/index/type-aliases/Redirects.md +3 -3
  20. package/api/@wtf/project-astro/index/type-aliases/RouteParams.md +3 -3
  21. package/api/@wtf/project-astro/links/functions/brokenLinksIn.md +1 -1
  22. package/api/@wtf/project-astro/links/functions/links.md +1 -1
  23. package/api/@wtf/project-astro/links/functions/redirectedLinksIn.md +1 -1
  24. package/api/@wtf/project-astro/links/type-aliases/LinksOptions.md +2 -2
  25. package/api/@wtf/project-astro/links/variables/LINKS.md +1 -1
  26. package/api/@wtf/project-astro/pages/functions/fixSearchUrlsIn.md +1 -1
  27. package/api/@wtf/project-astro/pages/functions/moveConflictingPages.md +1 -1
  28. package/api/@wtf/project-astro/pages/functions/pages.md +1 -1
  29. package/api/@wtf/project-astro/pages/functions/prefixedLocaleOf.md +1 -1
  30. package/api/@wtf/project-astro/pages/functions/redirectBaseToLocaleIn.md +1 -1
  31. package/api/@wtf/project-astro/pages/functions/slashFolderLinksIn.md +1 -1
  32. package/api/@wtf/project-astro/pages/type-aliases/I18n.md +1 -1
  33. package/api/@wtf/project-astro/pages/type-aliases/PagesOptions.md +2 -2
  34. package/api/@wtf/project-astro/pages/variables/PAGES.md +1 -1
  35. package/api/@wtf/project-astro/preview/functions/files.md +1 -1
  36. package/api/@wtf/project-astro/preview/functions/listen.md +1 -1
  37. package/api/@wtf/project-astro/preview/functions/notFound.md +1 -1
  38. package/api/@wtf/project-astro/preview/functions/pagesOf.md +1 -1
  39. package/api/@wtf/project-astro/preview/functions/previewOf.md +1 -1
  40. package/api/@wtf/project-astro/preview/type-aliases/FilesOptions.md +2 -2
  41. package/api/@wtf/project-astro/preview/type-aliases/Handler.md +1 -1
  42. package/api/@wtf/project-astro/preview/type-aliases/ListenOptions.md +4 -4
  43. package/api/@wtf/project-astro/preview/type-aliases/Listening.md +5 -5
  44. package/api/@wtf/project-astro/preview/type-aliases/Pages.md +3 -3
  45. package/api/@wtf/project-astro/preview/type-aliases/Preview.md +4 -4
  46. package/api/@wtf/project-astro/preview/type-aliases/PreviewOptions.md +3 -3
  47. package/api/@wtf/project-astro/redirects/functions/formatRedirects.md +1 -1
  48. package/api/@wtf/project-astro/redirects/functions/matchRedirect.md +1 -1
  49. package/api/@wtf/project-astro/redirects/functions/parseRedirects.md +1 -1
  50. package/api/@wtf/project-astro/redirects/variables/MAX_PARTS.md +1 -1
  51. package/api/@wtf/project-astro/redirects/variables/MAX_RULES.md +1 -1
  52. package/api/@wtf/project-astro/redirects/variables/MAX_SIZE.md +1 -1
  53. package/api/@wtf/project-astro/routes/functions/routeParams.md +1 -1
  54. package/api/@wtf/project-astro/routes/type-aliases/RouteParamsOptions.md +2 -2
  55. package/api/@wtf/project-astro/schema/functions/astroSchemaWith.md +1 -1
  56. package/api/@wtf/project-astro/schema/type-aliases/AstroSection.md +1 -1
  57. package/api/@wtf/project-astro/schema/type-aliases/JsonSchema.md +12 -12
  58. package/api/@wtf/project-astro/schema/type-aliases/OptionsSchema.md +1 -1
  59. package/api/@wtf/project-astro/schema/variables/astroProperties.md +1 -1
  60. package/api/@wtf/project-astro/schema/variables/astroSchema.md +1 -1
  61. package/api/@wtf/project-config/define/functions/defineConfig.md +1 -1
  62. package/api/@wtf/project-config/env/functions/envNameOf.md +1 -1
  63. package/api/@wtf/project-config/env/functions/envPrefixOf.md +1 -1
  64. package/api/@wtf/project-config/env/functions/jsonSchemaOf.md +1 -1
  65. package/api/@wtf/project-config/env/functions/variablesOf.md +1 -1
  66. package/api/@wtf/project-config/env/functions/withEnvironment.md +1 -1
  67. package/api/@wtf/project-config/env/type-aliases/Environment.md +1 -1
  68. package/api/@wtf/project-config/env/type-aliases/EnvironmentValue.md +3 -3
  69. package/api/@wtf/project-config/env/type-aliases/WithEnvironment.md +3 -3
  70. package/api/@wtf/project-config/errors/classes/ConfigError.md +4 -4
  71. package/api/@wtf/project-config/errors/classes/ConfigFileMismatchError.md +6 -6
  72. package/api/@wtf/project-config/errors/classes/ConfigInCodeError.md +5 -5
  73. package/api/@wtf/project-config/errors/classes/ConfigPathError.md +5 -5
  74. package/api/@wtf/project-config/errors/classes/EnvPlaceholderUnsetError.md +6 -6
  75. package/api/@wtf/project-config/errors/classes/InvalidConfigFileError.md +5 -5
  76. package/api/@wtf/project-config/errors/classes/InvalidSectionError.md +7 -7
  77. package/api/@wtf/project-config/errors/classes/NamedError.md +12 -12
  78. package/api/@wtf/project-config/errors/classes/NoConfigFileError.md +5 -5
  79. package/api/@wtf/project-config/errors/classes/NoConfigValueError.md +6 -6
  80. package/api/@wtf/project-config/errors/classes/SyncSchemaError.md +5 -5
  81. package/api/@wtf/project-config/errors/classes/UnwritableConfigFileError.md +5 -5
  82. package/api/@wtf/project-config/errors/type-aliases/NamedErrorCode.md +1 -1
  83. package/api/@wtf/project-config/errors/type-aliases/NamedErrorDetails.md +9 -9
  84. package/api/@wtf/project-config/index/type-aliases/ConfigDefaults.md +3 -3
  85. package/api/@wtf/project-config/index/type-aliases/ConfigEnvironment.md +4 -4
  86. package/api/@wtf/project-config/index/type-aliases/ConfigIssue.md +3 -3
  87. package/api/@wtf/project-config/index/type-aliases/ConfigNames.md +4 -4
  88. package/api/@wtf/project-config/index/type-aliases/ConfigPath.md +1 -1
  89. package/api/@wtf/project-config/index/type-aliases/ConfigPlatform.md +1 -1
  90. package/api/@wtf/project-config/index/type-aliases/ConfigSection.md +1 -1
  91. package/api/@wtf/project-config/index/type-aliases/ConfigSource.md +3 -3
  92. package/api/@wtf/project-config/index/type-aliases/ConfigWrite.md +10 -10
  93. package/api/@wtf/project-config/index/type-aliases/ImportModule.md +1 -1
  94. package/api/@wtf/project-config/index/type-aliases/JsonSchema.md +1 -1
  95. package/api/@wtf/project-config/index/type-aliases/LocatedConfig.md +4 -4
  96. package/api/@wtf/project-config/index/type-aliases/NamespaceConfig.md +2 -2
  97. package/api/@wtf/project-config/index/type-aliases/ResolvedConfig.md +9 -9
  98. package/api/@wtf/project-config/index/type-aliases/SectionSchema.md +1 -1
  99. package/api/@wtf/project-config/index/type-aliases/SectionsOf.md +1 -1
  100. package/api/@wtf/project-config/index/type-aliases/ValidateSection.md +1 -1
  101. package/api/@wtf/project-config/load/functions/ignoredWarning.md +1 -1
  102. package/api/@wtf/project-config/load/functions/importFileModule.md +1 -1
  103. package/api/@wtf/project-config/load/functions/loadConfig.md +1 -1
  104. package/api/@wtf/project-config/load/type-aliases/LoadLayers.md +3 -3
  105. package/api/@wtf/project-config/load/type-aliases/LoadOptions.md +3 -3
  106. package/api/@wtf/project-config/load/type-aliases/LoadPlatform.md +1 -1
  107. package/api/@wtf/project-config/locate/functions/configFilesOf.md +1 -1
  108. package/api/@wtf/project-config/locate/functions/configNamesOf.md +1 -1
  109. package/api/@wtf/project-config/locate/functions/jsonFilesOf.md +1 -1
  110. package/api/@wtf/project-config/locate/functions/locateConfig.md +1 -1
  111. package/api/@wtf/project-config/locate/functions/projectRootOf.md +1 -1
  112. package/api/@wtf/project-config/locate/type-aliases/LocateNames.md +2 -2
  113. package/api/@wtf/project-config/locate/type-aliases/LocateOptions.md +2 -2
  114. package/api/@wtf/project-config/locate/type-aliases/NamespaceNames.md +2 -2
  115. package/api/@wtf/project-config/locate/variables/DEFAULT_NAMESPACE.md +1 -1
  116. package/api/@wtf/project-config/named/functions/factoryOf.md +1 -1
  117. package/api/@wtf/project-config/named/functions/namedSchema.md +1 -1
  118. package/api/@wtf/project-config/named/functions/namedSetSchema.md +1 -1
  119. package/api/@wtf/project-config/named/functions/resolveNamed.md +1 -1
  120. package/api/@wtf/project-config/named/functions/resolveNamedSet.md +1 -1
  121. package/api/@wtf/project-config/named/type-aliases/LoadModule.md +1 -1
  122. package/api/@wtf/project-config/named/type-aliases/ModuleReference.md +3 -3
  123. package/api/@wtf/project-config/named/type-aliases/NamedCheckOptions.md +5 -5
  124. package/api/@wtf/project-config/named/type-aliases/NamedEntries.md +1 -1
  125. package/api/@wtf/project-config/named/type-aliases/NamedFactory.md +1 -1
  126. package/api/@wtf/project-config/named/type-aliases/NamedOptions.md +1 -1
  127. package/api/@wtf/project-config/named/type-aliases/NamedReference.md +1 -1
  128. package/api/@wtf/project-config/named/type-aliases/NamedResolveOptions.md +3 -3
  129. package/api/@wtf/project-config/named/type-aliases/NamedSchema.md +1 -1
  130. package/api/@wtf/project-config/named/type-aliases/NamedSchemaOptions.md +4 -4
  131. package/api/@wtf/project-config/named/type-aliases/NamedSet.md +1 -1
  132. package/api/@wtf/project-config/named/type-aliases/NamedSetOptions.md +2 -2
  133. package/api/@wtf/project-config/named/type-aliases/NamedSetSchemaOptions.md +3 -3
  134. package/api/@wtf/project-config/named/type-aliases/NamedSets.md +1 -1
  135. package/api/@wtf/project-config/named/type-aliases/NamedUse.md +1 -1
  136. package/api/@wtf/project-config/path/functions/configPathOf.md +1 -1
  137. package/api/@wtf/project-config/path/functions/textOfConfigPath.md +1 -1
  138. package/api/@wtf/project-config/path/functions/valueAt.md +1 -1
  139. package/api/@wtf/project-config/placeholder/functions/expandPlaceholders.md +1 -1
  140. package/api/@wtf/project-config/placeholder/functions/expandString.md +1 -1
  141. package/api/@wtf/project-config/schema/functions/namespaceSchema.md +1 -1
  142. package/api/@wtf/project-config/schema/functions/sectionIdOf.md +1 -1
  143. package/api/@wtf/project-config/schema/type-aliases/NamespaceSchemaOptions.md +3 -3
  144. package/api/@wtf/project-config/schema/variables/JSON_SCHEMA_DRAFT.md +1 -1
  145. package/api/@wtf/project-config/section/functions/issuesOf.md +1 -1
  146. package/api/@wtf/project-config/section/functions/issuesOfSync.md +1 -1
  147. package/api/@wtf/project-config/section/functions/mergeSection.md +1 -1
  148. package/api/@wtf/project-config/section/functions/sectionOf.md +1 -1
  149. package/api/@wtf/project-config/section/type-aliases/Checked.md +3 -3
  150. package/api/@wtf/project-config/write/functions/setConfigValue.md +1 -1
  151. package/api/@wtf/project-config/write/functions/unsetConfigValue.md +1 -1
  152. package/api/@wtf/project-config/write/type-aliases/WriteOptions.md +2 -2
  153. package/api/@wtf/project-oxfmt/config/functions/oxfmtConfig.md +1 -1
  154. package/api/@wtf/project-oxfmt/config/type-aliases/OxfmtOptions.md +1 -1
  155. package/api/@wtf/project-oxfmt/config/variables/OXFMT_DEFAULTS.md +6 -6
  156. package/api/@wtf/project-oxfmt/config/variables/default.md +1 -1
  157. package/api/@wtf/project-oxfmt/schema/variables/oxfmtSchema.md +1 -1
  158. package/api/@wtf/project-oxlint/config/functions/oxlintConfig.md +1 -1
  159. package/api/@wtf/project-oxlint/config/type-aliases/OxlintOptions.md +1 -1
  160. package/api/@wtf/project-oxlint/config/variables/OXLINT_DEFAULTS.md +17 -17
  161. package/api/@wtf/project-oxlint/config/variables/default.md +1 -1
  162. package/api/@wtf/project-oxlint/schema/variables/oxlintSchema.md +1 -1
  163. package/api/@wtf/project-resolve/condition/variables/SOURCE_CONDITION.md +1 -1
  164. package/api/@wtf/project-resolve/env/functions/isHook.md +1 -1
  165. package/api/@wtf/project-resolve/env/functions/optionsWithoutHook.md +1 -1
  166. package/api/@wtf/project-resolve/env/functions/withoutHook.md +1 -1
  167. package/api/@wtf/project-resolve/env/type-aliases/Env.md +1 -1
  168. package/api/@wtf/project-resolve/errors/classes/ResolveError.md +4 -4
  169. package/api/@wtf/project-resolve/errors/classes/UnreadableWorkspaceError.md +6 -6
  170. package/api/@wtf/project-resolve/errors/classes/WorkspaceError.md +5 -5
  171. package/api/@wtf/project-resolve/hooks/functions/candidatesOf.md +1 -1
  172. package/api/@wtf/project-resolve/hooks/functions/sourcesHookOf.md +1 -1
  173. package/api/@wtf/project-resolve/hooks/functions/sourcesOf.md +1 -1
  174. package/api/@wtf/project-resolve/hooks/variables/resolveTypeScript.md +1 -1
  175. package/api/@wtf/project-resolve/node/functions/nodePlatform.md +5 -5
  176. package/api/@wtf/project-resolve/register/variables/REGISTERED.md +1 -1
  177. package/api/@wtf/project-resolve/workspace/functions/filesOf.md +1 -1
  178. package/api/@wtf/project-resolve/workspace/functions/packagesOf.md +1 -1
  179. package/api/@wtf/project-resolve/workspace/functions/workspaceAt.md +1 -1
  180. package/api/@wtf/project-resolve/workspace/functions/workspaceOf.md +1 -1
  181. package/api/@wtf/project-resolve/workspace/functions/workspaceRootAbove.md +1 -1
  182. package/api/@wtf/project-resolve/workspace/functions/workspaceRootOf.md +1 -1
  183. package/api/@wtf/project-resolve/workspace/type-aliases/Agent.md +1 -1
  184. package/api/@wtf/project-resolve/workspace/type-aliases/DirectoryEntry.md +4 -4
  185. package/api/@wtf/project-resolve/workspace/type-aliases/FileContents.md +3 -3
  186. package/api/@wtf/project-resolve/workspace/type-aliases/PackageManager.md +4 -4
  187. package/api/@wtf/project-resolve/workspace/type-aliases/PackageManagerName.md +1 -1
  188. package/api/@wtf/project-resolve/workspace/type-aliases/ProcessWorkspaceOptions.md +1 -1
  189. package/api/@wtf/project-resolve/workspace/type-aliases/Workspace.md +5 -5
  190. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceDirectoryHandle.md +6 -6
  191. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFileHandle.md +3 -3
  192. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFiles.md +6 -6
  193. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceOptions.md +2 -2
  194. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePackage.md +4 -4
  195. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePaths.md +7 -7
  196. package/api/@wtf/project-storybook/config/functions/escapeAttribute.md +1 -1
  197. package/api/@wtf/project-storybook/config/functions/folderOf.md +1 -1
  198. package/api/@wtf/project-storybook/config/functions/metaTags.md +1 -1
  199. package/api/@wtf/project-storybook/config/functions/refsOf.md +1 -1
  200. package/api/@wtf/project-storybook/config/functions/storybookConfig.md +1 -1
  201. package/api/@wtf/project-storybook/config/type-aliases/ComposedRef.md +3 -3
  202. package/api/@wtf/project-storybook/config/type-aliases/StorybookConfig.md +8 -8
  203. package/api/@wtf/project-storybook/config/type-aliases/StorybookOptions.md +13 -13
  204. package/api/@wtf/project-storybook/config/type-aliases/StorybookRef.md +4 -4
  205. package/api/@wtf/project-storybook/config/type-aliases/VersionLabel.md +4 -4
  206. package/api/@wtf/project-storybook/manager/functions/registerVersion.md +1 -1
  207. package/api/@wtf/project-storybook/manager/type-aliases/VersionOptions.md +2 -2
  208. package/api/@wtf/project-storybook/schema/type-aliases/StorybookSection.md +1 -1
  209. package/api/@wtf/project-storybook/schema/variables/storybookSchema.md +1 -1
  210. package/api/@wtf/project-storybook/versions/functions/labelOf.md +1 -1
  211. package/api/@wtf/project-storybook/versions/functions/versionsOf.md +1 -1
  212. package/api/@wtf/project-storybook/versions/type-aliases/Label.md +5 -5
  213. package/api/@wtf/project-storybook/versions/type-aliases/ListedVersion.md +4 -4
  214. package/api/@wtf/project-storybook/versions/variables/META.md +5 -5
  215. package/api/@wtf/project-typedoc/README.md +1 -1
  216. package/api/@wtf/project-typedoc/config/functions/gitRevisionOf.md +1 -1
  217. package/api/@wtf/project-typedoc/config/functions/typedocConfig.md +1 -1
  218. package/api/@wtf/project-typedoc/config/type-aliases/TypedocConfig.md +1 -1
  219. package/api/@wtf/project-typedoc/config/type-aliases/TypedocOptions.md +7 -7
  220. package/api/@wtf/project-typedoc/config/type-aliases/TypedocPlatform.md +2 -2
  221. package/api/@wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md +1 -1
  222. package/api/@wtf/project-typedoc/plugins/functions/linkTrackedSources.md +1 -1
  223. package/api/@wtf/project-typedoc/plugins/functions/preventMediaFiles.md +1 -1
  224. package/api/@wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md +4 -4
  225. package/api/@wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md +3 -3
  226. package/api/@wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md +4 -4
  227. package/api/@wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md +1 -1
  228. package/api/@wtf/project-typedoc/schema/type-aliases/TypedocSection.md +2 -2
  229. package/api/@wtf/project-typedoc/schema/variables/typedocSchema.md +1 -1
  230. package/api/@wtf/project-vite/config/functions/baseConfig.md +4 -4
  231. package/api/@wtf/project-vite/config/functions/buildsSite.md +1 -1
  232. package/api/@wtf/project-vite/config/functions/compress.md +1 -1
  233. package/api/@wtf/project-vite/config/functions/conditionsOf.md +1 -1
  234. package/api/@wtf/project-vite/config/functions/fromDist.md +1 -1
  235. package/api/@wtf/project-vite/config/type-aliases/BaseOptions.md +3 -3
  236. package/api/@wtf/project-vite/config/type-aliases/CompressOptions.md +4 -4
  237. package/api/@wtf/project-vite/config/variables/CLIENT_CONDITIONS.md +1 -1
  238. package/api/@wtf/project-vite/config/variables/COMPRESSIBLE.md +1 -1
  239. package/api/@wtf/project-vite/config/variables/THRESHOLD.md +1 -1
  240. package/api/@wtf/project-vite/schema/type-aliases/ViteSection.md +1 -1
  241. package/api/@wtf/project-vite/schema/variables/viteSchema.md +1 -1
  242. package/api/@wtf/project-vitest/browser/functions/browserConfig.md +1 -1
  243. package/api/@wtf/project-vitest/browser/functions/browserRootConfig.md +1 -1
  244. package/api/@wtf/project-vitest/browser/type-aliases/BrowserOptions.md +4 -4
  245. package/api/@wtf/project-vitest/config/functions/fromDist.md +1 -1
  246. package/api/@wtf/project-vitest/config/functions/integrationConfig.md +1 -1
  247. package/api/@wtf/project-vitest/config/functions/packageConfig.md +1 -1
  248. package/api/@wtf/project-vitest/config/functions/rootConfig.md +1 -1
  249. package/api/@wtf/project-vitest/config/type-aliases/PackageOptions.md +2 -2
  250. package/api/@wtf/project-vitest/config/type-aliases/RootConfigOptions.md +2 -2
  251. package/api/@wtf/project-vitest/config/type-aliases/RootOptions.md +8 -8
  252. package/api/@wtf/project-vitest/config/type-aliases/VitestPlatform.md +4 -4
  253. package/api/@wtf/project-vitest/config/type-aliases/VitestRootPlatform.md +1 -1
  254. package/api/@wtf/project-vitest/config/variables/GUARD_TIMEOUT.md +1 -1
  255. package/api/@wtf/project-vitest/config/variables/integration.md +9 -9
  256. package/api/@wtf/project-vitest/process/functions/childEnv.md +1 -1
  257. package/api/@wtf/project-vitest/process/type-aliases/Env.md +1 -1
  258. package/api/@wtf/project-vitest/schema/type-aliases/VitestSection.md +1 -1
  259. package/api/@wtf/project-vitest/schema/variables/vitestSchema.md +1 -1
  260. package/api/@wtf/project-vitest/storybook/functions/storybookConfig.md +1 -1
  261. package/api/@wtf/project-vitest/storybook/type-aliases/StorybookOptions.md +2 -2
  262. package/api/@wtf/project-wpt/builtins/functions/builtins.md +1 -1
  263. package/api/@wtf/project-wpt/builtins/functions/intrinsics.md +1 -1
  264. package/api/@wtf/project-wpt/checkout/functions/checkoutFolderOf.md +1 -1
  265. package/api/@wtf/project-wpt/checkout/functions/checkoutTests.md +1 -1
  266. package/api/@wtf/project-wpt/checkout/functions/checkoutWpt.md +1 -1
  267. package/api/@wtf/project-wpt/checkout/functions/execOf.md +1 -1
  268. package/api/@wtf/project-wpt/checkout/functions/fileOf.md +1 -1
  269. package/api/@wtf/project-wpt/checkout/type-aliases/CheckedOutTests.md +3 -3
  270. package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutOptions.md +8 -8
  271. package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutTestsOptions.md +2 -2
  272. package/api/@wtf/project-wpt/checkout/variables/HARNESS.md +1 -1
  273. package/api/@wtf/project-wpt/checkout/variables/REWRITES.md +1 -1
  274. package/api/@wtf/project-wpt/checkout/variables/WPT_REPOSITORY.md +1 -1
  275. package/api/@wtf/project-wpt/errors/classes/HarnessFailedError.md +4 -4
  276. package/api/@wtf/project-wpt/errors/classes/InvalidCommitError.md +4 -4
  277. package/api/@wtf/project-wpt/errors/classes/InvalidExpectationsError.md +4 -4
  278. package/api/@wtf/project-wpt/errors/classes/NoSuiteError.md +4 -4
  279. package/api/@wtf/project-wpt/errors/classes/NotInWptError.md +5 -5
  280. package/api/@wtf/project-wpt/errors/classes/StaleExpectationError.md +4 -4
  281. package/api/@wtf/project-wpt/errors/classes/SubtestFailedError.md +4 -4
  282. package/api/@wtf/project-wpt/errors/classes/UnexpectedPassError.md +4 -4
  283. package/api/@wtf/project-wpt/errors/classes/WptError.md +4 -4
  284. package/api/@wtf/project-wpt/errors/classes/WptFetchError.md +4 -4
  285. package/api/@wtf/project-wpt/expectations/functions/checkHarness.md +1 -1
  286. package/api/@wtf/project-wpt/expectations/functions/checkSubtest.md +1 -1
  287. package/api/@wtf/project-wpt/expectations/functions/expectationOf.md +1 -1
  288. package/api/@wtf/project-wpt/expectations/functions/expectationsIssues.md +1 -1
  289. package/api/@wtf/project-wpt/expectations/functions/readExpectations.md +1 -1
  290. package/api/@wtf/project-wpt/expectations/functions/staleOf.md +1 -1
  291. package/api/@wtf/project-wpt/expectations/type-aliases/ReadExpectations.md +3 -3
  292. package/api/@wtf/project-wpt/index/type-aliases/CreateRealm.md +1 -1
  293. package/api/@wtf/project-wpt/index/type-aliases/Exec.md +1 -1
  294. package/api/@wtf/project-wpt/index/type-aliases/Expectations.md +1 -1
  295. package/api/@wtf/project-wpt/index/type-aliases/FileExpectation.md +4 -4
  296. package/api/@wtf/project-wpt/index/type-aliases/FileResult.md +4 -4
  297. package/api/@wtf/project-wpt/index/type-aliases/Globals.md +1 -1
  298. package/api/@wtf/project-wpt/index/type-aliases/HarnessResult.md +4 -4
  299. package/api/@wtf/project-wpt/index/type-aliases/HarnessStatus.md +1 -1
  300. package/api/@wtf/project-wpt/index/type-aliases/HoldRejections.md +1 -1
  301. package/api/@wtf/project-wpt/index/type-aliases/Realm.md +3 -3
  302. package/api/@wtf/project-wpt/index/type-aliases/SubtestResult.md +5 -5
  303. package/api/@wtf/project-wpt/index/type-aliases/SubtestStatus.md +1 -1
  304. package/api/@wtf/project-wpt/index/type-aliases/WptFile.md +3 -3
  305. package/api/@wtf/project-wpt/index/type-aliases/WptFiles.md +9 -9
  306. package/api/@wtf/project-wpt/index/type-aliases/WptPaths.md +4 -4
  307. package/api/@wtf/project-wpt/index/type-aliases/WptPlatform.md +2 -2
  308. package/api/@wtf/project-wpt/index/type-aliases/WptSystem.md +6 -6
  309. package/api/@wtf/project-wpt/index/type-aliases/WptTest.md +3 -3
  310. package/api/@wtf/project-wpt/meta/functions/idOf.md +1 -1
  311. package/api/@wtf/project-wpt/meta/functions/metaOf.md +1 -1
  312. package/api/@wtf/project-wpt/meta/functions/runsOutsideWindow.md +1 -1
  313. package/api/@wtf/project-wpt/meta/functions/scriptPathsOf.md +1 -1
  314. package/api/@wtf/project-wpt/meta/functions/testsOf.md +1 -1
  315. package/api/@wtf/project-wpt/meta/type-aliases/Meta.md +6 -6
  316. package/api/@wtf/project-wpt/node/functions/nodeSystem.md +1 -1
  317. package/api/@wtf/project-wpt/node/type-aliases/NodeSystemPlatform.md +1 -1
  318. package/api/@wtf/project-wpt/node/variables/nodeFiles.md +1 -1
  319. package/api/@wtf/project-wpt/node/variables/nodeRealm.md +1 -1
  320. package/api/@wtf/project-wpt/node/variables/nodeRejections.md +1 -1
  321. package/api/@wtf/project-wpt/run/functions/runTest.md +1 -1
  322. package/api/@wtf/project-wpt/run/type-aliases/RunOptions.md +8 -8
  323. package/api/@wtf/project-wpt/run/type-aliases/RunPlatform.md +1 -1
  324. package/api/@wtf/project-wpt/run/variables/LONG_TIMEOUT.md +1 -1
  325. package/api/@wtf/project-wpt/run/variables/TIMEOUT.md +1 -1
  326. package/api/@wtf/project-wpt/run/variables/WPT_ORIGIN.md +1 -1
  327. package/api/@wtf/project-wpt/schema/type-aliases/WptConfig.md +2 -2
  328. package/api/@wtf/project-wpt/schema/type-aliases/WptSuiteConfig.md +2 -2
  329. package/api/@wtf/project-wpt/schema/variables/wptSchema.md +1 -1
  330. package/api/@wtf/project-wpt/suite/functions/wptSuite.md +1 -1
  331. package/api/@wtf/project-wpt/suite/type-aliases/WptSuiteOptions.md +8 -8
  332. package/guides/getting-started.md +1 -1
  333. package/guides/presets.md +2 -1
  334. package/guides/typedoc.md +256 -0
  335. package/package.json +1 -1
@@ -6,7 +6,7 @@
6
6
  type RunOptions = object;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-wpt/src/run.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/run.ts#L52)
9
+ Defined in: [packages/project-wpt/src/run.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/run.ts#L52)
10
10
 
11
11
  How a test file runs.
12
12
 
@@ -18,7 +18,7 @@ How a test file runs.
18
18
  readonly files: Pick<WptFiles, "readFile" | "readBytes">;
19
19
  ```
20
20
 
21
- Defined in: [packages/project-wpt/src/run.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/run.ts#L66)
21
+ Defined in: [packages/project-wpt/src/run.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/run.ts#L66)
22
22
 
23
23
  The file system the checkout is read by.
24
24
 
@@ -30,7 +30,7 @@ The file system the checkout is read by.
30
30
  readonly folder: string;
31
31
  ```
32
32
 
33
- Defined in: [packages/project-wpt/src/run.ts:68](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/run.ts#L68)
33
+ Defined in: [packages/project-wpt/src/run.ts:68](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/run.ts#L68)
34
34
 
35
35
  The folder of the checkout of the WPT, as ./checkout gives it.
36
36
 
@@ -42,7 +42,7 @@ The folder of the checkout of the WPT, as ./checkout gives it.
42
42
  readonly optional globals?: (file) => Globals;
43
43
  ```
44
44
 
45
- Defined in: [packages/project-wpt/src/run.ts:70](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/run.ts#L70)
45
+ Defined in: [packages/project-wpt/src/run.ts:70](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/run.ts#L70)
46
46
 
47
47
  The globals the file's context has besides its built-ins: the implementation under test.
48
48
 
@@ -64,7 +64,7 @@ The globals the file's context has besides its built-ins: the implementation und
64
64
  readonly platform: RunPlatform;
65
65
  ```
66
66
 
67
- Defined in: [packages/project-wpt/src/run.ts:57](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/run.ts#L57)
67
+ Defined in: [packages/project-wpt/src/run.ts:57](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/run.ts#L57)
68
68
 
69
69
  The platform whose timers the file's timers, and the file's time, run by, and whose paths the
70
70
  files of the checkout are of.
@@ -77,7 +77,7 @@ files of the checkout are of.
77
77
  readonly realm: CreateRealm;
78
78
  ```
79
79
 
80
- Defined in: [packages/project-wpt/src/run.ts:59](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/run.ts#L59)
80
+ Defined in: [packages/project-wpt/src/run.ts:59](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/run.ts#L59)
81
81
 
82
82
  Makes the realm the file runs in: in Node, `nodeRealm` of ./node, a `node:vm` context.
83
83
 
@@ -89,7 +89,7 @@ Makes the realm the file runs in: in Node, `nodeRealm` of ./node, a `node:vm` co
89
89
  readonly rejections: HoldRejections;
90
90
  ```
91
91
 
92
- Defined in: [packages/project-wpt/src/run.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/run.ts#L64)
92
+ Defined in: [packages/project-wpt/src/run.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/run.ts#L64)
93
93
 
94
94
  Gives a listener each rejection no one handles, until it is stopped: in Node,
95
95
  `nodeRejections` of ./node.
@@ -102,6 +102,6 @@ Gives a listener each rejection no one handles, until it is stopped: in Node,
102
102
  readonly optional timeout?: number;
103
103
  ```
104
104
 
105
- Defined in: [packages/project-wpt/src/run.ts:72](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/run.ts#L72)
105
+ Defined in: [packages/project-wpt/src/run.ts:72](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/run.ts#L72)
106
106
 
107
107
  How long it may take, in milliseconds: [TIMEOUT](../variables/TIMEOUT.md), or [LONG\_TIMEOUT](../variables/LONG_TIMEOUT.md) if long.
@@ -6,6 +6,6 @@
6
6
  type RunPlatform = Pick<WptPlatform, "setTimeout" | "clearTimeout" | "path">;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-wpt/src/run.ts:49](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/run.ts#L49)
9
+ Defined in: [packages/project-wpt/src/run.ts:49](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/run.ts#L49)
10
10
 
11
11
  The members of the platform a run takes: its timers, and the paths of the checkout.
@@ -6,6 +6,6 @@
6
6
  const LONG_TIMEOUT: 60000 = 60_000;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-wpt/src/run.ts:46](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/run.ts#L46)
9
+ Defined in: [packages/project-wpt/src/run.ts:46](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/run.ts#L46)
10
10
 
11
11
  How long a file of `// META: timeout=long` may take, in milliseconds: six times as long.
@@ -6,6 +6,6 @@
6
6
  const TIMEOUT: 10000 = 10_000;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-wpt/src/run.ts:43](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/run.ts#L43)
9
+ Defined in: [packages/project-wpt/src/run.ts:43](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/run.ts#L43)
10
10
 
11
11
  How long a file may take, in milliseconds: 10 seconds, as the WPT gives one.
@@ -6,6 +6,6 @@
6
6
  const WPT_ORIGIN: "http://web-platform.test:8000" = 'http://web-platform.test:8000';
7
7
  ```
8
8
 
9
- Defined in: [packages/project-wpt/src/run.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/run.ts#L40)
9
+ Defined in: [packages/project-wpt/src/run.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/run.ts#L40)
10
10
 
11
11
  The origin a test file is at, as the WPT's server has it.
@@ -6,7 +6,7 @@
6
6
  type WptConfig = Pick<WptSuiteOptions, "commit" | "repository"> & object;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-wpt/src/schema.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/schema.ts#L64)
9
+ Defined in: [packages/project-wpt/src/schema.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/schema.ts#L64)
10
10
 
11
11
  The suites of the WPT of a repo, as its configuration keeps them: the commit of the WPT its
12
12
  tests are pinned to, its repository, and each suite's options by its name.
@@ -24,4 +24,4 @@ tests are pinned to, its repository, and each suite's options by its name.
24
24
 
25
25
  | Name | Type | Description | Defined in |
26
26
  | ------ | ------ | ------ | ------ |
27
- | `suites?` | `Readonly`\<`Record`\<`string`, [`WptSuiteConfig`](WptSuiteConfig.md)\>\> | Each suite's options, by its name. | [packages/project-wpt/src/schema.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/schema.ts#L66) |
27
+ | `suites?` | `Readonly`\<`Record`\<`string`, [`WptSuiteConfig`](WptSuiteConfig.md)\>\> | Each suite's options, by its name. | [packages/project-wpt/src/schema.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/schema.ts#L66) |
@@ -6,7 +6,7 @@
6
6
  type WptSuiteConfig = WptPaths & Pick<WptSuiteOptions, "run" | "timeout"> & Partial<Pick<WptSuiteOptions, "commit" | "repository">> & object;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-wpt/src/schema.ts:44](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/schema.ts#L44)
9
+ Defined in: [packages/project-wpt/src/schema.ts:44](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/schema.ts#L44)
10
10
 
11
11
  A suite's options, as a configuration keeps them, of `wptSuite()`'s that JSON holds: its tests,
12
12
  what they fetch, the name of its run, the file of its expectations from the root of the project,
@@ -16,4 +16,4 @@ and how long a file may take. A suite of its own commit or repository gives them
16
16
 
17
17
  | Name | Type | Description | Defined in |
18
18
  | ------ | ------ | ------ | ------ |
19
- | `expectations?` | `string` | The JSON file of the suite's known failures, by its path from the root of the project. | [packages/project-wpt/src/schema.ts:48](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/schema.ts#L48) |
19
+ | `expectations?` | `string` | The JSON file of the suite's known failures, by its path from the root of the project. | [packages/project-wpt/src/schema.ts:48](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/schema.ts#L48) |
@@ -6,7 +6,7 @@
6
6
  const wptSchema: StandardSchemaV1<WptConfig> & StandardJSONSchemaV1<WptConfig>;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-wpt/src/schema.ts:128](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/schema.ts#L128)
9
+ Defined in: [packages/project-wpt/src/schema.ts:128](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/schema.ts#L128)
10
10
 
11
11
  The schema of a repo's suites of the WPT, [WptConfig](../type-aliases/WptConfig.md): the `commit` and the `repository`
12
12
  of the WPT, and each suite's `files`, `dirs`, `resources`, `run`, `expectations` and `timeout`,
@@ -10,7 +10,7 @@ function wptSuite(
10
10
  ): void;
11
11
  ```
12
12
 
13
- Defined in: [packages/project-wpt/src/suite.ts:107](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/suite.ts#L107)
13
+ Defined in: [packages/project-wpt/src/suite.ts:107](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/suite.ts#L107)
14
14
 
15
15
  A suite of the WPT, by its `name`: each test file of its `files` and `dirs`, at its `commit`,
16
16
  run against the `globals` it maps in, each subtest a test, green when only what its
@@ -6,7 +6,7 @@
6
6
  type WptSuiteOptions = WptPaths & object;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-wpt/src/suite.ts:62](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/suite.ts#L62)
9
+ Defined in: [packages/project-wpt/src/suite.ts:62](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/suite.ts#L62)
10
10
 
11
11
  What a suite runs, and against what.
12
12
 
@@ -14,10 +14,10 @@ What a suite runs, and against what.
14
14
 
15
15
  | Name | Type | Description | Defined in |
16
16
  | ------ | ------ | ------ | ------ |
17
- | `commit` | `string` | The commit of the WPT the suite's tests are pinned to, its full hash: what moves it is a change of the repo, reviewed. | [packages/project-wpt/src/suite.ts:67](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/suite.ts#L67) |
18
- | `expectations?` | \| `string` \| `URL` \| [`Expectations`](../../index/type-aliases/Expectations.md) | The known failures of the suite, or of its run: a JSON file, by its path from `root` or its URL, or the object; none by default. | [packages/project-wpt/src/suite.ts:84](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/suite.ts#L84) |
19
- | `globals()?` | (`file`) => [`Globals`](../../index/type-aliases/Globals.md) | The globals of each test file's context, over its built-ins: the implementation under test, made anew of each file. `undefined` of a name takes a built-in out. | [packages/project-wpt/src/suite.ts:74](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/suite.ts#L74) |
20
- | `repository?` | `string` | The git repository of the WPT, as a mirror: the WPT's own on GitHub by default. | [packages/project-wpt/src/suite.ts:69](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/suite.ts#L69) |
21
- | `root?` | `string` \| `URL` | The folder of the project, whose `node_modules/.cache/wpt` keeps the checkouts, and from which a path of `expectations` is read: the platform's working folder by default. | [packages/project-wpt/src/suite.ts:89](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/suite.ts#L89) |
22
- | `run?` | `string` | The name of the run, of a suite run against more than one implementation, each a `wptSuite` of its own, each of its own `expectations`: `doubles`, `node`. Its tests are named by it. | [packages/project-wpt/src/suite.ts:79](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/suite.ts#L79) |
23
- | `timeout?` | `number` | How long each file may take, in milliseconds, in place of the WPT's 10 s, or 60 s if long. | [packages/project-wpt/src/suite.ts:91](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.2.0/packages/project-wpt/src/suite.ts#L91) |
17
+ | `commit` | `string` | The commit of the WPT the suite's tests are pinned to, its full hash: what moves it is a change of the repo, reviewed. | [packages/project-wpt/src/suite.ts:67](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/suite.ts#L67) |
18
+ | `expectations?` | \| `string` \| `URL` \| [`Expectations`](../../index/type-aliases/Expectations.md) | The known failures of the suite, or of its run: a JSON file, by its path from `root` or its URL, or the object; none by default. | [packages/project-wpt/src/suite.ts:84](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/suite.ts#L84) |
19
+ | `globals()?` | (`file`) => [`Globals`](../../index/type-aliases/Globals.md) | The globals of each test file's context, over its built-ins: the implementation under test, made anew of each file. `undefined` of a name takes a built-in out. | [packages/project-wpt/src/suite.ts:74](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/suite.ts#L74) |
20
+ | `repository?` | `string` | The git repository of the WPT, as a mirror: the WPT's own on GitHub by default. | [packages/project-wpt/src/suite.ts:69](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/suite.ts#L69) |
21
+ | `root?` | `string` \| `URL` | The folder of the project, whose `node_modules/.cache/wpt` keeps the checkouts, and from which a path of `expectations` is read: the platform's working folder by default. | [packages/project-wpt/src/suite.ts:89](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/suite.ts#L89) |
22
+ | `run?` | `string` | The name of the run, of a suite run against more than one implementation, each a `wptSuite` of its own, each of its own `expectations`: `doubles`, `node`. Its tests are named by it. | [packages/project-wpt/src/suite.ts:79](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/suite.ts#L79) |
23
+ | `timeout?` | `number` | How long each file may take, in milliseconds, in place of the WPT's 10 s, or 60 s if long. | [packages/project-wpt/src/suite.ts:91](https://gitlab.com/wetryfun/project/project/-/blob/docs-v5.3.0/packages/project-wpt/src/suite.ts#L91) |
@@ -97,7 +97,7 @@ export default defineConfig({ ...preset })
97
97
  ```
98
98
 
99
99
  Each topic has a guide of its own: the [presets](presets.md), the [tests](vitest.md), where they
100
- run ([testing](testing.md)), and [Vite](vite.md).
100
+ run ([testing](testing.md)), [Vite](vite.md), and the [API documentation](typedoc.md).
101
101
 
102
102
  ## Write a package the presets fit
103
103
 
package/guides/presets.md CHANGED
@@ -79,7 +79,8 @@ which the config file loads and spreads in: see [Configuration](config.md).
79
79
  ## Build the reference with TypeDoc
80
80
 
81
81
  `typedocConfig()` of `@wtf/project-typedoc/config` is the config for a docs package,
82
- `packages/docs`. It writes the reference of the workspace's packages as markdown in `api/`, with an
82
+ `packages/docs`. This section shows the config; [API documentation](typedoc.md) walks through the
83
+ docs package, what your sources need, the pages it writes and its plugins. It writes the reference of the workspace's packages as markdown in `api/`, with an
83
84
  `llms.txt` built from the package's `llms-template.md`. Each source links to its file in your
84
85
  repository, and any warning fails the build. The config file is the entry point: it builds the
85
86
  platform, Node's here, whose `spawn` runs git and whose `argv` holds the arguments of the
@@ -0,0 +1,256 @@
1
+ # API documentation
2
+
3
+ This guide shows you how to turn the JSDoc of your workspace's packages into an API reference in
4
+ markdown, with `@wtf/project-typedoc`. You get a page for each package, each of its subpaths and
5
+ each export, an `llms.txt` for agents, and a link from each export to its line of source in your
6
+ repository. A broken link or any other warning fails the build, so the reference never names what
7
+ is not there.
8
+
9
+ ## Set up a docs package
10
+
11
+ The reference is built by a docs package of its own, `packages/docs`, which holds your guides and
12
+ the `api/` folder TypeDoc writes. Add the preset, TypeDoc and its two markdown plugins, which are
13
+ peers of the preset, and the platform its config file builds:
14
+
15
+ ```sh
16
+ pnpm add --save-dev --filter @scope/docs @wtf/project-typedoc typedoc typedoc-plugin-markdown \
17
+ typedoc-plugin-llms-txt @wtf/platform-node @wtf/platform-fs-node
18
+ ```
19
+
20
+ Give it a script that runs TypeDoc, and a `typedoc.config.mjs` of `typedocConfig()`:
21
+
22
+ ```json
23
+ {
24
+ "name": "@scope/docs",
25
+ "private": true,
26
+ "type": "module",
27
+ "scripts": { "typedoc": "typedoc" }
28
+ }
29
+ ```
30
+
31
+ ```ts
32
+ // packages/docs/typedoc.config.mjs
33
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
34
+ import { nodePlatform } from '@wtf/platform-node/platform'
35
+ import { typedocConfig } from '@wtf/project-typedoc/config'
36
+
37
+ export default typedocConfig({
38
+ platform: nodePlatform({ fetch, storage: nodeStorage() }),
39
+ docs: import.meta.url,
40
+ repository: 'https://gitlab.com/group/project',
41
+ entryPoints: ['../core', '../cli']
42
+ })
43
+ ```
44
+
45
+ The config file is the entry point: it builds the platform, Node's here, and gives it to the
46
+ preset, which reads nothing of the process itself. `typedocConfig()` is async, and TypeDoc awaits
47
+ what the file exports. Next to it, the docs package holds `llms-template.md`, the template of
48
+ `api/llms.txt` that typedoc-plugin-llms-txt fills in.
49
+
50
+ Then build the reference from the root:
51
+
52
+ ```sh
53
+ pnpm run build
54
+ pnpm --filter @scope/docs run typedoc
55
+ ```
56
+
57
+ ### Its options
58
+
59
+ `typedocConfig()` takes `TypedocOptions`:
60
+
61
+ | Option | What it is |
62
+ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
63
+ | `platform` | What the config runs on: `spawn`, which runs git; `argv`, the command line of the run; `path`; and `dirs.cwd`, which a relative `docs` is resolved from |
64
+ | `docs` | The docs package: the URL of its `typedoc.config.mjs`, as `import.meta.url`, or its folder. The repo's root is two folders up, as in `packages/docs` |
65
+ | `repository` | Your repository's web page on GitLab: each export links to `<repository>/-/blob/<revision>/<path>#L<line>` |
66
+ | `entryPoints` | The packages to document, each by its folder from the docs package |
67
+ | `categories` | The folders of hand-written docs in the docs package, `['guides']` by default |
68
+ | `plugins` | TypeDoc plugins of your own, each a function of TypeDoc's application or a module by its name; none by default |
69
+ | `packageOptions` | TypeDoc's options for each package, laid over the ones the preset gives each package |
70
+
71
+ Any other option is TypeDoc's, or one of its plugins', and replaces the preset's, as
72
+ `llmsTxtHeader` and `llmsTxtQuickReference` of typedoc-plugin-llms-txt. Add your plugins in
73
+ `plugins`, not in TypeDoc's own `plugin`: that one would replace the preset's whole list, its
74
+ markdown plugins too.
75
+
76
+ The preset documents each folder of `entryPoints` as a package (`entryPointStrategy: 'packages'`),
77
+ one module for each of its subpaths, and leaves out private, protected and `@internal` members.
78
+ It writes `api/` whole on each run (`cleanOutputDir`), so no page of an earlier build stays
79
+ behind. A warning is an error (`treatWarningsAsErrors`), an invalid `{@link}` among them.
80
+
81
+ ### From the wtf configuration
82
+
83
+ The options can live in the `typedoc` section of your `wtf` configuration, where `typedocSchema` of
84
+ `@wtf/project-typedoc/schema` checks them. The section holds any option but `platform`, which is
85
+ the config file's own. Load the configuration in the config file and spread the section in:
86
+
87
+ ```ts
88
+ // packages/docs/typedoc.config.mjs
89
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
90
+ import { nodePlatform } from '@wtf/platform-node/platform'
91
+ import { loadConfig } from '@wtf/project-config/load'
92
+ import { sectionOf } from '@wtf/project-config/section'
93
+ import { typedocConfig } from '@wtf/project-typedoc/config'
94
+ import { typedocSchema } from '@wtf/project-typedoc/schema'
95
+
96
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
97
+ const config = await loadConfig({ platform })
98
+ export default typedocConfig({
99
+ platform,
100
+ docs: import.meta.url,
101
+ repository: 'https://gitlab.com/group/project',
102
+ entryPoints: ['../core'],
103
+ ...(await sectionOf(config, 'typedoc', typedocSchema))
104
+ })
105
+ ```
106
+
107
+ [Configuration](config.md) says how a section is loaded, and how the environment overrides it.
108
+
109
+ ## What your packages need
110
+
111
+ TypeDoc writes the reference from your doc comments, so each package needs two things.
112
+
113
+ **A comment on each entry module.** Its `@packageDocumentation` comment is the text of the
114
+ module's page. The module of your package's root, `.`, also needs `@module index`. Without it the
115
+ root module has no name: the package's page lists it as an empty link, and its pages land in the
116
+ package's own folder, beside the package's page, instead of a folder of their own.
117
+
118
+ ```ts
119
+ // packages/core/src/index.ts, the module of the package's root
120
+ /**
121
+ * The types of the core: the options of a run ({@link RunOptions}). Types only, with no code.
122
+ *
123
+ * @packageDocumentation
124
+ * @module index
125
+ */
126
+
127
+ /** The options of a run. */
128
+ export type RunOptions = {
129
+ /** The folder the run starts in. */
130
+ readonly cwd: string
131
+ }
132
+ ```
133
+
134
+ **A JSDoc on each export.** An export with no comment is listed with its signature alone. A
135
+ `{@link}` that TypeDoc cannot resolve fails the build.
136
+
137
+ ## What it writes
138
+
139
+ The reference is markdown, in `api/` of the docs package:
140
+
141
+ | File | What it is |
142
+ | ----------------------------------------------- | ------------------------------------------------------------------------------- |
143
+ | `api/README.md` | The list of the packages |
144
+ | `api/llms.txt` | A map of the reference for agents, of `llms-template.md` |
145
+ | `api/@scope/core/README.md` | The package's page: its README, then the list of its modules |
146
+ | `api/@scope/core/<subpath>/README.md` | The page of a subpath, as `config/README.md` of `./config` |
147
+ | `api/@scope/core/index/README.md` | The page of the package's root, `.`, named by `@module index` |
148
+ | `api/@scope/core/<subpath>/functions/<name>.md` | The page of each export, in `functions`, `type-aliases`, `variables`, `classes` |
149
+
150
+ Every package gets a module of its own, even one with a single entry point
151
+ (`alwaysCreateEntryPointModule`), so the layout, and every link into it, stays the same as a
152
+ package grows.
153
+
154
+ A docs site reads these pages as they are. The page of a root module is named `index`, which a site
155
+ builder takes for the page of its folder: in an Astro site, route it as
156
+ [Build a page named index](astro.md#build-a-page-named-index) shows.
157
+
158
+ ## Where each source links
159
+
160
+ Each "Defined in:" links to its file in `repository`, at a git revision, the first of these that
161
+ applies:
162
+
163
+ 1. `--gitRevision <ref>`, passed to `typedoc`, read from the platform's `argv`;
164
+ 2. the commit of HEAD;
165
+ 3. in a repo with no commit yet, its branch; outside git, `main`.
166
+
167
+ When you build the reference you publish, pass a ref that does not move, as the version's
168
+ `v1.2.0`, so each link keeps pointing at the code that version was built from:
169
+
170
+ ```sh
171
+ pnpm --filter @scope/docs run typedoc --gitRevision v1.2.0
172
+ ```
173
+
174
+ `gitRevisionOf()` of `@wtf/project-typedoc/config` gives the same revision, as a test that checks
175
+ your config needs it:
176
+
177
+ ```ts
178
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
179
+ import { nodePlatform } from '@wtf/platform-node/platform'
180
+ import { gitRevisionOf } from '@wtf/project-typedoc/config'
181
+
182
+ /** The repo's root. */
183
+ declare const root: string
184
+
185
+ const revision = await gitRevisionOf(root, nodePlatform({ fetch, storage: nodeStorage() }))
186
+ ```
187
+
188
+ The preset turns TypeDoc's own git off and names the revision itself, so a git worktree links the
189
+ same as a checkout. The links take GitLab's form. For another host, give `sourceLinkTemplate` both
190
+ as an option and in `packageOptions`, as each package's conversion reads its own.
191
+
192
+ ## The plugins
193
+
194
+ `typedocConfig()` gives TypeDoc three plugins of `@wtf/project-typedoc/plugins`, each with its
195
+ options set from yours. You set their options yourself only when you write a TypeDoc config
196
+ without the preset.
197
+
198
+ - **`cleanGeneratedMarkdown({ platform, docs, categories })`** tidies each page TypeDoc writes. A
199
+ link from a README into your guides, as `../docs/guides/setup.md` from `packages/core`, is right
200
+ from the package and wrong from `api/`: it is rewritten to the guide from the page. A "Defined
201
+ in:" of a file in `node_modules` names just its package, and three blank lines become two.
202
+ `docs` is the docs package's folder, and `categories` its folders of guides, `['guides']` by
203
+ default.
204
+ - **`preventMediaFiles({ platform, root, exclude })`** stops TypeDoc copying files into
205
+ `api/_media/`. TypeDoc copies each file a page links to, as a guide or a source file; those ship
206
+ where they are. A file outside `root`, the docs package, or in a folder of `exclude`, is never
207
+ copied, and its link stays as it was written.
208
+ - **`linkTrackedSources({ platform, root })`** links a "Defined in:" only when git tracks its file.
209
+ With TypeDoc's git off, every file gets a link, a declaration in `node_modules` too, to a page
210
+ that is not there. It asks git, by the platform's `spawn`, for the files of the repo at `root`,
211
+ and unlinks the rest.
212
+
213
+ Without the preset, give each one its options and list it in TypeDoc's `plugin`:
214
+
215
+ ```ts
216
+ // packages/docs/typedoc.config.mjs, without the preset
217
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
218
+ import { nodePlatform } from '@wtf/platform-node/platform'
219
+ import {
220
+ cleanGeneratedMarkdown,
221
+ linkTrackedSources,
222
+ preventMediaFiles
223
+ } from '@wtf/project-typedoc/plugins'
224
+
225
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
226
+ const docs = platform.path.fromFileUrl(new URL('.', import.meta.url))
227
+ const root = platform.path.resolve(docs, '../..')
228
+
229
+ export default {
230
+ entryPoints: ['../core'],
231
+ entryPointStrategy: 'packages',
232
+ out: './api',
233
+ plugin: [
234
+ preventMediaFiles({ platform, root: docs, exclude: ['guides'] }),
235
+ cleanGeneratedMarkdown({ platform, docs, categories: ['guides'] }),
236
+ linkTrackedSources({ platform, root }),
237
+ 'typedoc-plugin-markdown'
238
+ ]
239
+ }
240
+ ```
241
+
242
+ ## Keep `api/` out of your branches
243
+
244
+ `api/` is generated, and TypeDoc writes it whole on each run. Build it where you publish the docs
245
+ package, with `api` in the package's `files`, and never commit it on a branch: a reference
246
+ committed there goes stale at the next change of a doc comment, and turns a review into a review of
247
+ generated pages. Ignore it in git:
248
+
249
+ ```text
250
+ # .gitignore
251
+ packages/docs/api/
252
+ ```
253
+
254
+ If you keep the published reference in git as well, as this repo does, have the step that
255
+ publishes it stage it by force, `git add --force packages/docs/api`, so it is committed with the
256
+ version it documents and with nothing else.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wtf/project-docs",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "Guides and API reference for the @wtf/project packages: the shared TypeScript, oxlint, oxfmt, Vite, Vitest, TypeDoc and Astro configs of a pnpm workspace, the resolve hook that runs its TypeScript from source, the runner of the Web Platform Tests, the Astro integrations that make a site serve on GitLab Pages, and the loader of a project's wtf configuration.",
5
5
  "homepage": "https://gitlab.com/wetryfun/project/project/-/tree/main/packages/project-docs",
6
6
  "bugs": {