diff --git a/packages/cli/src/webfinger/lib.ts b/packages/cli/src/webfinger/lib.ts index e11bd53f8..12066e810 100644 --- a/packages/cli/src/webfinger/lib.ts +++ b/packages/cli/src/webfinger/lib.ts @@ -21,14 +21,14 @@ export function convertUrlIfHandle(handleOrUrl: string): URL { /** * Converts a handle in the format `@username@domain` to a URL. - * The resulting URL will be in the format `https://domain/@username`. + * The resulting URL will be in the format `acct:username@domain`. * @param handle The handle to convert, in the format `@username@domain`. * @returns A URL object representing the handle. * @throws {Error} If the handle format is invalid. * @example * ```ts * const url = convertHandleToUrl("@username@domain.com"); - * console.log(url.toString()); // "https://domain.com/@username" + * console.log(url.toString()); // "acct:username@domain.com" * ``` */ export function convertHandleToUrl(handle: string): URL { diff --git a/packages/denokv/src/mod.ts b/packages/denokv/src/mod.ts index 11e6f6dfc..9ba6cf143 100644 --- a/packages/denokv/src/mod.ts +++ b/packages/denokv/src/mod.ts @@ -38,7 +38,7 @@ export class DenoKvStore implements KvStore { } /** - * {@inheritDoc KvStore.set} + * {@inheritDoc KvStore.get} */ async get(key: KvKey): Promise { const entry = await this.#kv.get(key); diff --git a/packages/fedify/src/federation/context.ts b/packages/fedify/src/federation/context.ts index 013a4f343..354f523fb 100644 --- a/packages/fedify/src/federation/context.ts +++ b/packages/fedify/src/federation/context.ts @@ -116,7 +116,7 @@ export interface Context { * @param cls The class of the object. * @param values The values to pass to the object dispatcher. * @returns The object's URI. - * @throws {RouteError} If no object dispatcher is available for the class. + * @throws {RouterError} If no object dispatcher is available for the class. * @throws {TypeError} If values are invalid. * @since 0.7.0 */ @@ -383,7 +383,7 @@ export interface Context { ): Promise; /** - * Sends an activity to the outboxes of the sender's followers. + * Sends an activity to the inboxes of the sender's followers. * @param sender The sender's identifier or the sender's username. * @param recipients In this case, it must be `"followers"`. * @param activity The activity to send. @@ -429,7 +429,7 @@ export interface Context { * @param name The name of the collection, which can be a string or a symbol. * @param values The values of the URI parameters. * @return The URI of the collection. - * @throws {RouteError} If no object dispatcher is available for the name. + * @throws {RouterError} If no object dispatcher is available for the name. * @throws {TypeError} If values are invalid. * @since 1.8.0 */ diff --git a/packages/fedify/src/federation/federation.ts b/packages/fedify/src/federation/federation.ts index be5075635..644314104 100644 --- a/packages/fedify/src/federation/federation.ts +++ b/packages/fedify/src/federation/federation.ts @@ -468,7 +468,7 @@ export interface Federatable { * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). * The path must have no variables. * @returns An object to register inbox listeners. - * @throws {RouteError} Thrown if the path pattern is invalid. + * @throws {RouterError} Thrown if the path pattern is invalid. */ setInboxListeners( inboxPath: diff --git a/packages/fedify/src/testing/context.ts b/packages/fedify/src/testing/context.ts index ddcc06a26..c5d5fac1d 100644 --- a/packages/fedify/src/testing/context.ts +++ b/packages/fedify/src/testing/context.ts @@ -50,7 +50,7 @@ export function createContext( sendActivity, routeActivity, } = values; - function throwRouteError(): URL { + function throwRouterError(): URL { throw new RouterError("Not implemented"); } return { @@ -64,17 +64,17 @@ export function createContext( contextLoader: contextLoader ?? mockDocumentLoader, tracerProvider: tracerProvider ?? trace.getTracerProvider(), clone: clone ?? ((data) => createContext({ ...values, data })), - getNodeInfoUri: getNodeInfoUri ?? throwRouteError, - getActorUri: getActorUri ?? throwRouteError, - getObjectUri: getObjectUri ?? throwRouteError, - getCollectionUri: getCollectionUri ?? throwRouteError, - getOutboxUri: getOutboxUri ?? throwRouteError, - getInboxUri: getInboxUri ?? throwRouteError, - getFollowingUri: getFollowingUri ?? throwRouteError, - getFollowersUri: getFollowersUri ?? throwRouteError, - getLikedUri: getLikedUri ?? throwRouteError, - getFeaturedUri: getFeaturedUri ?? throwRouteError, - getFeaturedTagsUri: getFeaturedTagsUri ?? throwRouteError, + getNodeInfoUri: getNodeInfoUri ?? throwRouterError, + getActorUri: getActorUri ?? throwRouterError, + getObjectUri: getObjectUri ?? throwRouterError, + getCollectionUri: getCollectionUri ?? throwRouterError, + getOutboxUri: getOutboxUri ?? throwRouterError, + getInboxUri: getInboxUri ?? throwRouterError, + getFollowingUri: getFollowingUri ?? throwRouterError, + getFollowersUri: getFollowersUri ?? throwRouterError, + getLikedUri: getLikedUri ?? throwRouterError, + getFeaturedUri: getFeaturedUri ?? throwRouterError, + getFeaturedTagsUri: getFeaturedTagsUri ?? throwRouterError, parseUri: parseUri ?? ((_uri) => { throw new Error("Not implemented"); }), diff --git a/packages/testing/src/context.ts b/packages/testing/src/context.ts index 7ae82d9a9..799874e32 100644 --- a/packages/testing/src/context.ts +++ b/packages/testing/src/context.ts @@ -76,7 +76,7 @@ function createContext( sendActivity, routeActivity, } = values; - function throwRouteError(): URL { + function throwRouterError(): URL { throw new RouterError("Not implemented"); } return { @@ -90,17 +90,17 @@ function createContext( contextLoader: contextLoader ?? mockDocumentLoader, tracerProvider: tracerProvider ?? noopTracerProvider, clone: clone ?? ((data) => createContext({ ...values, data })), - getNodeInfoUri: getNodeInfoUri ?? throwRouteError, - getActorUri: getActorUri ?? throwRouteError, - getObjectUri: getObjectUri ?? throwRouteError, - getCollectionUri: getCollectionUri ?? throwRouteError, - getOutboxUri: getOutboxUri ?? throwRouteError, - getInboxUri: getInboxUri ?? throwRouteError, - getFollowingUri: getFollowingUri ?? throwRouteError, - getFollowersUri: getFollowersUri ?? throwRouteError, - getLikedUri: getLikedUri ?? throwRouteError, - getFeaturedUri: getFeaturedUri ?? throwRouteError, - getFeaturedTagsUri: getFeaturedTagsUri ?? throwRouteError, + getNodeInfoUri: getNodeInfoUri ?? throwRouterError, + getActorUri: getActorUri ?? throwRouterError, + getObjectUri: getObjectUri ?? throwRouterError, + getCollectionUri: getCollectionUri ?? throwRouterError, + getOutboxUri: getOutboxUri ?? throwRouterError, + getInboxUri: getInboxUri ?? throwRouterError, + getFollowingUri: getFollowingUri ?? throwRouterError, + getFollowersUri: getFollowersUri ?? throwRouterError, + getLikedUri: getLikedUri ?? throwRouterError, + getFeaturedUri: getFeaturedUri ?? throwRouterError, + getFeaturedTagsUri: getFeaturedTagsUri ?? throwRouterError, parseUri: parseUri ?? ((_uri) => { throw new Error("Not implemented"); }), diff --git a/packages/vocab-runtime/src/docloader.ts b/packages/vocab-runtime/src/docloader.ts index d0a3640a5..165fd5ba7 100644 --- a/packages/vocab-runtime/src/docloader.ts +++ b/packages/vocab-runtime/src/docloader.ts @@ -269,7 +269,7 @@ export interface GetDocumentLoaderOptions extends DocumentLoaderFactoryOptions { * Creates a JSON-LD document loader that utilizes the browser's `fetch` API. * * The created loader preloads the below frequently used contexts by default - * (unless `options.ignorePreloadedContexts` is set to `true`): + * (unless `options.skipPreloadedContexts` is set to `true`): * * - * - diff --git a/packages/vocab-runtime/src/langstr.ts b/packages/vocab-runtime/src/langstr.ts index 64fc41a9a..3682b22fc 100644 --- a/packages/vocab-runtime/src/langstr.ts +++ b/packages/vocab-runtime/src/langstr.ts @@ -11,8 +11,8 @@ export class LanguageString extends String { /** * Constructs a new `LanguageString`. * @param value A string value written in the given language. - * @param locale The language of the string. If a string is given, it will - * be parsed as a `Intl.Locale` object. + * @param language The language of the string. If a string is given, it will + * be parsed as a `Intl.Locale` object. */ constructor(value: string, language: Intl.Locale | string) { super(value); diff --git a/packages/vocab-tools/src/schema.ts b/packages/vocab-tools/src/schema.ts index 8e5f8db03..e984e64f1 100644 --- a/packages/vocab-tools/src/schema.ts +++ b/packages/vocab-tools/src/schema.ts @@ -283,7 +283,7 @@ async function loadSchema(path: string): Promise { /** * Loads all schema files in the directory. * @param dir The path of the directory to load schema files from. - * @returns A map from the qualified URI of a type to its {@link SchemaFile}. + * @returns A map from the qualified URI of a type to its {@link TypeSchema}. * @throws {@link AggregateError} if any schema file is invalid. It contains * all {@link SchemaError}s of the invalid schema files. */ diff --git a/packages/webfinger/src/lookup.ts b/packages/webfinger/src/lookup.ts index 46d150fdb..276d43937 100644 --- a/packages/webfinger/src/lookup.ts +++ b/packages/webfinger/src/lookup.ts @@ -57,7 +57,6 @@ export interface LookupWebFingerOptions { /** * AbortSignal for cancelling the request. * @since 1.8.0 - * @ */ signal?: AbortSignal; }