BubbleTrouble
BubbleTrouble
Explore posts from servers
DTDrizzle Team
Created by BubbleTrouble on 8/4/2024 in #help
Get type from select object ?
Is it possible to get the type from my select object ? I know its inferred in the response, which gives me the correct type. But i want to be able also set the type myself so it can be used in other files. const SourceSelectFields = { siteCode: mapboxSources.siteCode, id: mapboxSources.id, type: mapboxSources.type, url: mapboxSources.url, isFunction: mapboxSources.isFunction, tiles: sqljson_group_array(${mapboxSourceTiles.tile}).mapWith( (json: string) => JSON.parse(json) as string[] ), }; type SourceWithField = typeof SourceSelectFields //For instance something like so ?
3 replies