mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 16:03:27 +00:00
10 lines
228 B
TypeScript
10 lines
228 B
TypeScript
import { deepEqual } from 'fast-equals'
|
|
|
|
export function isWindmillTooBigObject(obj: any): boolean {
|
|
return (
|
|
typeof obj === 'object' &&
|
|
deepEqual(Object.keys(obj), ['reason']) &&
|
|
obj['reason'] == 'WINDMILL_TOO_BIG'
|
|
)
|
|
}
|