Packages > @fluidframework/tree > WithType

WithType Interface

Adds a type symbol to a type for stronger typing.

Signature

/** @sealed */
export interface WithType<TName extends string = string>

Type Parameters

Parameter Constraint Default Description
TName string string

Remarks

An implementation detail of TreeNode ’s strong typing setup: not intended for direct use outside of this package.

Properties

Property Modifiers Type Description
[typeNameSymbol] readonly TName Type symbol, marking a type in a way to increase type safety via strong type checking.

Property Details

[typeNameSymbol]

Type symbol, marking a type in a way to increase type safety via strong type checking.

Signature

get [typeNameSymbol](): TName;

Type: TName