lolopinto / ent

MIT License
52 stars 6 forks source link

Fix invalid generated TS "float" type #1828

Closed Swahvay closed 2 months ago

Swahvay commented 2 months ago

float is not a valid TS type. It needs to be number.

Per the comment on line 65 above, in the graphql.ts file knownAllowedNames is already correctly defined as such:

export const knownAllowedNames: Map<string, string> = new Map([
  ["Date", "Date"],
  ["Boolean", "boolean"],
  ["Number", "number"],
  ["String", "string"],
  // TODO not right to have this and Number
  ["Int", "number"],
  ["Float", "number"],
  ["ID", "ID"],
  ["JSON", "any"],
  ["Node", "Ent"],
]);

Fixes #1826