Fixed doc on loading tags to work

This commit is contained in:
Bertie690 2025-08-14 21:08:26 -04:00
parent 73993f25c9
commit 0a93c51c41

View File

@ -7,16 +7,13 @@ import type { Constructor } from "#utils/common";
/** /**
* Load the attributes of a {@linkcode PositionalTag}. * Load the attributes of a {@linkcode PositionalTag}.
* @param tagType - The {@linkcode PositionalTagType} to create * @param data - An object containing the {@linkcode PositionalTagType} to create,
* @param args - The arguments needed to instantize the given tag * as well as the arguments needed to instantize the given tag
* @returns The newly created tag. * @returns The newly created tag.
* @remarks * @remarks
* This function does not perform any checking if the added tag is valid. * This function does not perform any checking if the added tag is valid.
*/ */
export function loadPositionalTag<T extends PositionalTagType>({ export function loadPositionalTag<T extends PositionalTagType>(data: serializedPosTagMap[T]): posTagInstanceMap[T];
tagType,
...args
}: serializedPosTagMap[T]): posTagInstanceMap[T];
/** /**
* Load the attributes of a {@linkcode PositionalTag}. * Load the attributes of a {@linkcode PositionalTag}.
* @param tag - The {@linkcode SerializedPositionalTag} to instantiate * @param tag - The {@linkcode SerializedPositionalTag} to instantiate