mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 01:20:09 +00:00
9 lines
283 B
TypeScript
9 lines
283 B
TypeScript
import { IColorable } from "@/interfaces"
|
|
|
|
/**
|
|
* 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
|
|
}
|