Function whfsType
- whfsType<const Type extends (keyof WHFSTypes) | string & {}>(
ns: string extends Type ? Type : keyof WHFSTypes,
): [Type] extends [keyof WHFSTypes]
? WHFSTypeAccessor<
WHFSTypes[Type]["GetFormat"],
WHFSTypes[Type]["SetFormat"],
WHFSTypes[Type]["ExportFormat"],
>
: WHFSTypeAccessor<
InstanceData,
{ [key: string]: CodecImportMemberType },
{ [key: string]: CodecExportMemberType },
>Type Parameters
- const Type extends (keyof WHFSTypes) | string & {}
Returns [Type] extends [keyof WHFSTypes]
? WHFSTypeAccessor<
WHFSTypes[Type]["GetFormat"],
WHFSTypes[Type]["SetFormat"],
WHFSTypes[Type]["ExportFormat"],
>
: WHFSTypeAccessor<
InstanceData,
{ [key: string]: CodecImportMemberType },
{ [key: string]: CodecExportMemberType },
>