mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 01:20:09 +00:00
Fix IColorable.getColorOption (#551)
* Fix IColorable.getColorOption * nit
This commit is contained in:
@@ -83,6 +83,13 @@ export interface IColorable {
|
||||
getColorOption(): ColorOption | null
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if an object is an instance of {@link IColorable}.
|
||||
*/
|
||||
export const isColorable = (obj: unknown): obj is IColorable => {
|
||||
return typeof obj === "object" && obj !== null && "setColorOption" in obj && "getColorOption" in obj
|
||||
}
|
||||
|
||||
/**
|
||||
* An object that can be pinned.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user