You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While writing the docs I realized that the filenames are not really friendly.
It's not obvious that schema-definition.d.ts is where you edit the schema, plus it kinda conflicts with generated/schema-definition.js
The *-db names are not adequately grouped
There are too many files on this level. The only file that really needs to be at the top of generated if models.d.ts. (Since it's the only one that deals with type imports.
Everything should be exported from index.js. There's a potential gotcha -- do we then need to have more d.ts files? Need to check that.
While we're at it, change the class names to be ApplicationDatabase, ModelsDatabase and TransactionDatabase, with matching filenames.
So, new structure:
[outputPath]
model-types.d.ts
generated
index.js
models.d.ts
database-classes
application-database.js
models-database.js
transaction-database.js
schema
schema-definition.js
schema-cast-map.js
search
search-indexes.js
The text was updated successfully, but these errors were encountered:
While writing the docs I realized that the filenames are not really friendly.
schema-definition.d.ts
is where you edit the schema, plus it kinda conflicts withgenerated/schema-definition.js
*-db
names are not adequately groupedgenerated
ifmodels.d.ts
. (Since it's the only one that deals with type imports.index.js
. There's a potential gotcha -- do we then need to have mored.ts
files? Need to check that.ApplicationDatabase
,ModelsDatabase
andTransactionDatabase
, with matching filenames.So, new structure:
The text was updated successfully, but these errors were encountered: