Skip to content

Export types#181

Open
JELoohuis wants to merge 23 commits intoathombv:masterfrom
JELoohuis:export-types
Open

Export types#181
JELoohuis wants to merge 23 commits intoathombv:masterfrom
JELoohuis:export-types

Conversation

@JELoohuis
Copy link
Copy Markdown

@JELoohuis JELoohuis commented Apr 10, 2026

Depends on athombv/node-data-types#42

Some of the generated types were incomplete, so I rewrote the generation to document more of the properties available at runtime, as well as adding some additional types based on the JS sources and runtime introspection.

I enabled type checking for the definition file and added the SDK types, since these are used by the ZCLNode.

Some broken enum8 attributes in the Metering cluster definition, where the function was not properly called, were also fixed.

@RobinBol RobinBol self-assigned this Apr 10, 2026
Comment thread .eslintrc.json Outdated
Comment thread package.json Outdated
Comment thread scripts/generate-types.mts Outdated
Comment thread scripts/generate-types.mts Outdated
Comment thread scripts/generate-types.mts Outdated
Comment thread scripts/generate-types.mts Outdated
Comment thread scripts/generate-types.mts Outdated
Comment thread index.d.ts Outdated
Comment thread index.d.ts Outdated
Comment thread index.d.ts Outdated
Comment thread index.d.ts Outdated
@JELoohuis JELoohuis requested a review from RobinBol April 24, 2026 12:54
@JELoohuis JELoohuis marked this pull request as draft April 24, 2026 13:06
@JELoohuis JELoohuis marked this pull request as ready for review April 24, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants