exporting Devices type

Signed-off-by: Alfie Jones <alfie.jones@hotmail.co.uk>
This commit is contained in:
Alfie Jones 2024-04-03 16:00:23 +01:00 committed by GitHub
parent 0734d1e733
commit a03215140c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -509,7 +509,7 @@ class TypesGenerator {
let types = await generator.generateTypes(path.join(__dirname, 'overrides.d.ts'));
const namedDevices = Object.keys(devices).map(name => ` ${JSON.stringify(name)}: DeviceDescriptor;`).join('\n');
types += [
`type Devices = {`,
`export type Devices = {`,
namedDevices,
` [key: string]: DeviceDescriptor;`,
`}`,