mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 14:29:28 +02:00
Fixed doc on loading tags to work
This commit is contained in:
parent
73993f25c9
commit
0a93c51c41
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user