kysely
Version:
Type safe SQL query builder
18 lines (17 loc) • 403 B
JavaScript
/// <reference types="./unary-operation-node.d.ts" />
import { freeze } from '../util/object-utils.js';
/**
* @internal
*/
export const UnaryOperationNode = freeze({
is(node) {
return node.kind === 'UnaryOperationNode';
},
create(operator, operand) {
return freeze({
kind: 'UnaryOperationNode',
operator,
operand,
});
},
});