Initial commit - Event Planner application
This commit is contained in:
24
node_modules/kysely/dist/esm/operation-node/output-node.js
generated
vendored
Normal file
24
node_modules/kysely/dist/esm/operation-node/output-node.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/// <reference types="./output-node.d.ts" />
|
||||
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),
|
||||
});
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user