import { type SqlSqlToken, } from './types'; export const assertSqlSqlToken = (subject: SqlSqlToken | null): void => { if (typeof subject !== 'object' || subject === null || subject.type !== 'SLONIK_TOKEN_SQL') { throw new TypeError('Query must be constructed using `sql` tagged template literal.'); } };