Repository navigation
Conversation
converts data-types to TS
495d9fd to
80014bd
Compare
80014bd to
137bc03
Compare
| import range from './range'; | ||
|
|
||
| const kSetDialectNames: SetDialectNamesSymbol = Symbol.for( | ||
| 'sequelize.internal.data-types.set-dialect-names', |
There was a problem hiding this comment.
It's a nit but I'd rather internal symbols were exported under an explicitly internal namespace rather than using the Symbol registry.
As I understand it this using the registry so third-party dialects can access the symbol?
If so I'd rather we exposed it under import { SetDialectNamesSymbol } from 'sequelize/dialect-toolbox'. What do you think?
There was a problem hiding this comment.
As I understand it this using the registry so third-party dialects can access the symbol?
More or less. I intentionally wasn't exporting it since its not intended for user apis, but that'd be work too.
|
|
||
| const warn = BaseTypes.ABSTRACT.warn.bind( | ||
| undefined, | ||
| 'http://www.postgresql.org/docs/9.4/static/datatype.html', |
There was a problem hiding this comment.
| 'http://www.postgresql.org/docs/9.4/static/datatype.html', | |
| 'https://www.postgresql.org/docs/9.4/static/datatype.html', |
| return 'BOOLEAN'; | ||
| } | ||
|
|
||
| protected override _sanitize(value: RawTypeOf<DataTypes['BOOLEAN']>): any { |
There was a problem hiding this comment.
Is override removed when d.ts files are generated? Otherwise it won't be compatible with TS < 4.3
There was a problem hiding this comment.
Uncertain, its not needed here though so I think I'll just remove it.
137bc03 to
e794607
Compare
e794607 to
826d7b4
Compare
Refactors postgres-specific dialect types to be TS and to work with the new DataTypes format.
826d7b4 to
2f5cf3e
Compare
6de690b to
210279c
Compare
|
Closing in favor of #14505. |
Note: This is a child PR of #13799 - it should only be merged into that branch when both this pr and that pr have been approved.
(note: omitted the PR checklist as it isn't really relevant here)
Description Of Change
converts postgres-specific data-types to TS.
Also refactors the data-types to work with the (proposed) format from the master pr, #13799.