Skip to content

Commit

Permalink
Separate name and definition of union types to prevent Array naming i…
Browse files Browse the repository at this point in the history
…ssues (#521)

* seperate name and defintion of number and date union types with string

* remove leftover log

* update dependencies for pgtyped to work

* remove traces of personal testing

* remove pnpm lock

---------

Co-authored-by: Leif Niemczik <[email protected]>
  • Loading branch information
leifniem and Leif Niemczik authored Sep 24, 2023
1 parent d1d60ab commit 1a518d2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/cli/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ import path from 'path';

const String: Type = { name: 'string' };
const Number: Type = { name: 'number' };
const NumberOrString: Type = { name: 'number | string' };
const NumberOrString: Type = {
name: 'NumberOrString',
definition: 'number | string',
};
const Boolean: Type = { name: 'boolean' };
const Date: Type = { name: 'Date' };
const DateOrString: Type = { name: 'Date | string' };
const DateOrString: Type = {
name: 'DateOrString',
definition: 'Date | string',
};
const Bytes: Type = { name: 'Buffer' };
const Void: Type = { name: 'undefined' };
const Json: Type = {
Expand Down

0 comments on commit 1a518d2

Please sign in to comment.