Skip to content

WorkspaceLayoutStateComponent.defineKey method

WorkspaceLayoutStateComponent › defineKey

Defines a typed key.

Signature:

defineKey(definition: WorkspaceLayoutStateKeyDefinition<T>): WorkspaceLayoutStateKey<T>

Parameters:

ParameterTypeDescription
definitionWorkspaceLayoutStateKeyDefinition<T>The key definition.

Returns: WorkspaceLayoutStateKey<T> — The key handle.