blockly > isSerializable
isSerializable() function
Type guard that checks whether the given object is a ISerializable.
Signature:
export declare function isSerializable(obj: any): obj is ISerializable;
Parameters
Parameter |
Type |
Description |
obj |
any |
|
Returns:
obj is ISerializable
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["`isSerializable()` is a type guard function in Blockly."],["It checks if a given object implements the `ISerializable` interface."],["The function accepts any object as input (`obj`) and returns a boolean indicating whether the object is an `ISerializable`."]]],[]]