/opt/canhelp/node_modules/kysely/dist/esm/operation-node
Edit: /opt/canhelp/node_modules/kysely/dist/esm/operation-node/output-node.js (620B)
///
import { freeze } from '../util/object-utils.js';
/**
* @internal
*/
export const OutputNode = freeze({
is(node) {
return node.kind === 'OutputNode';
},
create(selections) {
return freeze({
kind: 'OutputNode',
selections: freeze(selections),
});
},
cloneWithSelections(output, selections) {
return freeze({
...output,
selections: output.selections
? freeze([...output.selections, ...selections])
: freeze(selections),
});
},
});