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