Skip to content

JSPromise.AsUnchecked<T> method

Creates a T struct from this instance without checking the enclosed handle type. It must be used only when the handle type is known to be correct.

C#
public T AsUnchecked<T>()
    where T : struct, IJSValue<T>
parameterdescription
TA struct that implements IJSValue interface.

Return Value

T struct created based on this instance.

See Also

Released under the MIT license