From 0a93c51c415aa7032cfaf82dff881c694f134c33 Mon Sep 17 00:00:00 2001 From: Bertie690 Date: Thu, 14 Aug 2025 21:08:26 -0400 Subject: [PATCH] Fixed doc on loading tags to work --- src/data/positional-tags/load-positional-tag.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/data/positional-tags/load-positional-tag.ts b/src/data/positional-tags/load-positional-tag.ts index 7ae396dc8f1..41b112b84c2 100644 --- a/src/data/positional-tags/load-positional-tag.ts +++ b/src/data/positional-tags/load-positional-tag.ts @@ -7,16 +7,13 @@ import type { Constructor } from "#utils/common"; /** * Load the attributes of a {@linkcode PositionalTag}. - * @param tagType - The {@linkcode PositionalTagType} to create - * @param args - The arguments needed to instantize the given tag + * @param data - An object containing the {@linkcode PositionalTagType} to create, + * as well as the arguments needed to instantize the given tag * @returns The newly created tag. * @remarks * This function does not perform any checking if the added tag is valid. */ -export function loadPositionalTag({ - tagType, - ...args -}: serializedPosTagMap[T]): posTagInstanceMap[T]; +export function loadPositionalTag(data: serializedPosTagMap[T]): posTagInstanceMap[T]; /** * Load the attributes of a {@linkcode PositionalTag}. * @param tag - The {@linkcode SerializedPositionalTag} to instantiate