blockly > isPaster
isPaster() function
Signature:
export declare function isPaster(obj: any): obj is IPaster<ICopyData, ICopyable<ICopyData>>;
Parameters
Parameter |
Type |
Description |
obj |
any |
|
Returns:
obj is IPaster<ICopyData, ICopyable<ICopyData>>
True if the given object is a paster.
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."],[[["The `isPaster()` function determines if a given object is a paster, returning true if it is and false otherwise."],["This function accepts any object as input and uses type guards to check if it conforms to the `IPaster` interface."],["A paster, according to this context, is an object that manages the pasting of copied data, potentially adhering to interfaces like `ICopyData` and `ICopyable` for data handling."]]],["The `isPaster()` function determines if a given object is a \"paster.\" It accepts any object as input (`obj`). The function's return value indicates whether the provided object conforms to the `IPaster` interface, using type guards, and further specifies that it utilizes `ICopyData` and `ICopyable` for its operations. If it is a paster then the return will be true. Otherwise, it will be false.\n"]]