Appearance
@valoranchi/riot-client / raw / applyCrosshairProfileToSettings
Function: applyCrosshairProfileToSettings() ​
applyCrosshairProfileToSettings<
T>(settings,raw,options): {index:number;name:string;ok:true;settings:T; } | {ok:false;reason:"unsupported"|"invalid-profile"|"profile-not-found"; }
Defined in: src/collection/CrosshairProfiles.ts:128
Type Parameters ​
T ​
T extends PreferenceBlob
Parameters ​
settings ​
T
raw ​
Record<string, unknown>
options ​
asNew ​
boolean
select ​
boolean
Returns ​
{ index: number; name: string; ok: true; settings: T; } | { ok: false; reason: "unsupported" | "invalid-profile" | "profile-not-found"; }