HergBot / musqrat

A lightweight, strongly typed wrapper for using MySQL in Node.JS
0 stars 0 forks source link

Result objects should only show available fields in Intellisense #8

Open xHergz opened 3 years ago

xHergz commented 3 years ago

When you select specific fields from a table intellisense shows you all the fields from the table when trying to use the results. If possible, maybe we should limit that to only the fields selected.

Example:

const result = await Password.select<[IUser]>("Password_Hash", "Salt", "Version").exec();
result[0]. // Wait for intellisense

image

Expected: Only Password_Hash, Salt, and Version show up