Function: safeCast()
safeCast<
T
>(value
):T
Explicitly and safely cast a value to a specific type when inference or satisfies isn't going to work as expected (often useful for the config property with definePlan)
Type Parameters
• T
Parameters
• value: T
Returns
T
Defined in
lexical-builder-core/dist/safeCast.d.ts:13