Skip to content

@valoranchi/riot-client / raw / renameCrosshairProfileInSettings

Function: renameCrosshairProfileInSettings() ​

renameCrosshairProfileInSettings<T>(settings, index, newName): { name: string; ok: true; settings: T; } | { ok: false; reason: "unsupported" | "profile-not-found" | "invalid-name"; }

Defined in: src/collection/CrosshairProfiles.ts:212

Type Parameters ​

T ​

T extends PreferenceBlob

Parameters ​

settings ​

T

index ​

number

newName ​

string

Returns ​

{ name: string; ok: true; settings: T; } | { ok: false; reason: "unsupported" | "profile-not-found" | "invalid-name"; }

Not affiliated with Riot Games