We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fbe87c commit f346519Copy full SHA for f346519
src/core/edgedb/generator/scalars.ts
@@ -1,5 +1,6 @@
1
import { scalarToLiteralMapping } from '@edgedb/generate/dist/genutil.js';
2
import { mapEntries } from '@seedcompany/common';
3
+import { set } from 'lodash';
4
import { codecs } from '../codecs';
5
6
export const customScalars = mapEntries(codecs, (codec) => [
@@ -11,6 +12,6 @@ export function setTsTypesFromOurScalarCodecs() {
11
12
// this is used for schema interfaces & query builder
13
for (const { info } of codecs) {
14
const fqName = `${info.module}::${info.type}`;
- scalarToLiteralMapping[fqName].type = info.ts;
15
+ set(scalarToLiteralMapping, [fqName, 'type'], info.ts);
16
}
17
0 commit comments