2 ms·
Not exactly (there is no duplication), a string constant in typescript is it's own type: const sql = 'SELECT ...'; type SQL = typeof sql; // type SQL =
by ricksharp 6y ago
Not exactly (there is no duplication), a string constant in typescript is it's own type:
const sql = 'SELECT ...';
type SQL = typeof sql;
// type SQL = "SELECT ..."