UNPKG

@jahed/firebase-rules

Version:

A type-safe Firebase Real-time Database Security Rules builder.

8 lines (7 loc) 400 B
import type { ExpressionReturnType, ExpressionSerialisedType, PrimitiveOrExpression, Serialised } from "./types.ts"; /** * Converts a `RuleExpression` to its JSON string form. * * `toJSONString(equal(a, b))` renders `"(a === b)"` */ export declare const toJSONString: <T extends ExpressionReturnType, S extends ExpressionSerialisedType>(a: PrimitiveOrExpression<T, S> | T[]) => Serialised<T, S>;